aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-07-21 11:50:36 +0000
committerWerner Koch <[email protected]>2014-07-21 11:50:36 +0000
commitbab9cdd971f35ff47e153c00034c95e7ffeaa09a (patch)
tree8d9f2cbea143b478f25e457fd16dfda853dabc72 /g10/keyedit.c
parentPost beta release update (diff)
downloadgnupg-bab9cdd971f35ff47e153c00034c95e7ffeaa09a.tar.gz
gnupg-bab9cdd971f35ff47e153c00034c95e7ffeaa09a.zip
gpg: Cap size of attribute packets at 16MB.
* g10/parse-packet.c (parse_attribute): Avoid xmalloc failure and cap size of packet. -- Tavis Ormandy reported a fatal error for attribute packets with a zero length payload. This is due to a check in Libgcrypt's xmalloc which rejects a malloc(0) instead of silently allocating 1 byte. The fix is obvious. In addition we cap the size of attribute packets similar to what we do with user id packets. OpenPGP keys are not the proper way to store movies.
Diffstat (limited to 'g10/keyedit.c')
0 files changed, 0 insertions, 0 deletions