Werner Koch
9a1e195348
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.
Resolved conflicts:
g10/parse-packet.c - indentation. Use plain fprintf.
2014-07-21 14:46:41 +02:00
..
2013-11-27 09:32:43 +01:00
2011-08-04 12:22:04 +02:00
2014-06-24 14:37:26 +02:00
2009-12-21 16:19:09 +00:00
2014-06-24 09:13:38 +02:00
2011-12-02 19:28:02 +01:00
2012-05-24 10:55:11 +02:00
2007-11-19 16:03:50 +00:00
2009-09-03 11:29:25 +00:00
2014-06-20 20:24:52 +02:00
2013-12-11 10:33:25 +01:00
2007-11-19 16:03:50 +00:00
2007-11-19 16:03:50 +00:00
2007-11-19 16:03:50 +00:00
2013-10-11 09:18:01 +02:00
2014-06-03 08:05:54 +02:00
2013-04-23 18:06:46 +02:00
2007-07-04 19:49:40 +00:00
2007-11-19 16:03:50 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2014-06-02 11:56:06 +02:00
2013-05-07 21:17:04 +02:00
2014-06-24 09:53:46 +02:00
2013-01-03 20:21:20 +01:00
2013-08-19 11:22:11 +02:00
2007-12-04 15:00:14 +00:00
2014-06-24 09:53:04 +02:00
2007-07-04 19:49:40 +00:00
2013-01-03 20:21:20 +01:00
2009-12-21 16:19:09 +00:00
2013-10-11 09:18:01 +02:00
2014-06-27 09:50:54 +02:00
2011-07-01 10:33:43 +02:00
2012-05-24 10:55:11 +02:00
2009-07-20 11:02:20 +00:00
2009-04-03 10:34:22 +00:00
2007-07-04 19:49:40 +00:00
2014-06-25 14:33:34 +02:00
2014-06-24 09:53:04 +02:00
2014-06-02 17:33:18 +02:00
2014-06-24 13:52:02 +02:00
2007-11-19 16:03:50 +00:00
2014-06-03 08:55:31 +02:00
2007-07-04 19:49:40 +00:00
2000-07-31 08:04:16 +00:00
2014-06-03 08:44:08 +02:00
2013-08-06 10:04:12 +02:00
2009-09-03 20:51:55 +00:00
2014-07-21 14:46:41 +02:00
2013-10-11 09:18:01 +02:00
2014-06-03 08:55:31 +02:00
2008-10-03 20:00:46 +00:00
2014-06-24 10:08:39 +02:00
2011-06-13 14:35:30 +02:00
2007-07-04 19:49:40 +00:00
2010-05-12 10:53:02 +00:00
2007-07-04 19:49:40 +00:00
2009-06-05 14:11:03 +00:00
2000-07-31 08:04:16 +00:00
2009-06-24 14:03:09 +00:00
2008-12-12 12:01:20 +00:00
2008-12-12 08:54:50 +00:00
2010-03-12 17:24:06 +00:00
2010-02-12 15:15:34 +00:00
2009-06-05 14:11:03 +00:00
2014-06-03 08:44:08 +02:00
2013-10-11 09:18:01 +02:00
2009-05-26 09:29:02 +00:00
2009-08-06 20:12:00 +00:00
2008-12-11 17:44:52 +00:00
2008-10-20 13:53:23 +00:00
2013-10-11 09:25:58 +02:00
2013-10-11 09:25:58 +02:00
2007-11-19 16:03:50 +00:00
2013-10-11 09:25:58 +02:00
2012-01-19 23:03:56 -05:00
2008-10-20 13:53:23 +00:00