1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-02-28 09:21:53 -05:00
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-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
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-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: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
2015-10-18 10:59:23 +10:00
2015-10-18 10:59:23 +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
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-02-26 15:18:43 +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