aboutsummaryrefslogtreecommitdiffstats
path: root/g10/test-stubs.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2018-08-10 06:29:06 +0000
committerNIIBE Yutaka <[email protected]>2018-08-10 06:29:06 +0000
commit1b309d9f6199a91caa0ca0b97b92d599e00b736e (patch)
treecd1713dc5519c9279108c232226cc23a0199fc01 /g10/test-stubs.c
parentgpg: Set a limit for a WKD import of 256 KiB. (diff)
downloadgnupg-1b309d9f6199a91caa0ca0b97b92d599e00b736e.tar.gz
gnupg-1b309d9f6199a91caa0ca0b97b92d599e00b736e.zip
g10: Fix undefined behavior when EOF in parsing packet for S2K.
* g10/parse-packet.c (parse_symkeyenc): Use iobuf_get_noeof. (parse_key): Likewise. -- When EOF comes at parsing s2k.count, it is possible the value will be (unsigned long)-1. Then, the result of S2K_DECODE_COUNT will be undefined. This patch fixes undefined behavior. Reported-by: Philippe Antoine GnuPG-bug-id: 4093 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/test-stubs.c')
0 files changed, 0 insertions, 0 deletions