Tobias Stoeckmann
5fcd60e264
Reject files larger than 16384 bytes in read_sigfile.
...
If signature files are larger than SIZE_MAX, not enough memory could
be allocated for this file. The script repo-add rejects files which
are larger than 16384 bytes, therefore handle these as errors here,
too.
While at it, I also rearranged the code to avoid a quite harmless
TOCTOU race condition between stat() and fopen().
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
2016-08-30 18:10:40 +10:00
..
2016-02-23 13:09:39 +10:00
2012-04-25 20:02:36 -04:00
2016-08-30 18:10:40 +10:00
2016-01-04 13:27:08 +10:00
2016-01-15 14:47:36 +10:00
2016-01-15 14:47:36 +10:00
2016-08-30 18:10:40 +10:00
2016-05-05 13:52:23 +10:00
2016-08-30 18:10:40 +10:00
2016-01-04 13:27:08 +10:00
2014-01-15 15:54:56 +10:00
2011-10-17 12:03:02 -05:00
2016-08-30 18:10:40 +10:00
2016-08-30 18:10:40 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-05-05 13:52:23 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-08-30 18:10:40 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:59:19 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-02-23 12:41:36 +10:00
2016-01-04 13:27:08 +10:00
2016-02-23 12:15:43 +10:00
2016-01-04 13:27:08 +10:00
2015-10-18 10:59:23 +10:00
2015-10-18 10:59:23 +10:00
2015-12-04 11:06:49 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2015-10-18 10:59:23 +10:00
2012-01-07 11:27:41 -06:00
2011-08-11 20:17:21 -05:00
2016-02-23 12:15:43 +10:00
2016-05-05 13:52:23 +10:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2014-01-28 20:19:25 +10:00
2016-02-26 15:18:43 +10:00
2016-01-04 13:27:08 +10:00
2012-01-07 11:27:41 -06:00
2011-08-15 07:07:13 -05:00
2016-01-04 13:27:08 +10:00
2016-01-04 13:27:08 +10:00
2016-02-23 12:15:43 +10:00
2016-01-04 13:27:08 +10:00
2016-02-23 12:41:36 +10:00
2016-01-04 13:27:08 +10:00
2013-01-04 21:49:37 +10:00
2013-01-04 21:49:37 +10:00
2016-05-05 13:52:23 +10:00
2016-02-23 12:41:36 +10:00
2016-01-04 13:27:08 +10:00