Home GnuPG
Diffusion GnuPG 4bc3a2e954af

g13: Fix pointer wrap check.
4bc3a2e954afUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

g13: Fix pointer wrap check.

* g13/utils.c (find_tuple, next_tuple): Cast pointer to size_t before
doing an overflow check.

Detected by Stack 0.3:

  bug: anti-simplify
model: |
  %cmp4 = icmp ult i8* %add.ptr3, %s.0, !dbg !568
  -->  false
stack:
  - /home/wk/s/gnupg/g13/utils.c:127:0
ncore: 1
core:
  - /home/wk/s/gnupg/g13/utils.c:127:0
    - pointer overflow

Details

Provenance
wernerAuthored on Mar 15 2015, 1:33 PM
Parents
rG3a35c9740ab7: agent: Remove useless conditions in command.c.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG4bc3a2e954af: g13: Fix pointer wrap check. (authored by Werner Koch <wk@gnupg.org>).Mar 15 2015, 1:33 PM