Mark Wielaard
86cedebad3
libelf: Set dst to zero on failure in __elf_getphdrnum_rdlock
...
GCC with -flto finds some (very) unlikely error paths. It flags callers
of __elf_getphdrnum_chk_rdlock with *dst not yet set because an internal
call to __elf_getphdrnum_rdlock might not initialize *dst either in one
particular failure path. The sanity check that __elf_getphdrnum_chk_rdlock
then performs might happen against uninitialized data. So just set *dst
to zero on failure in __elf_getphdrnum_rdlock so any caller can simply
check either the result/error code or whether *dst is zero or not.
Signed-off-by: Mark Wielaard <mark@klomp.org >
2020-11-06 18:39:40 +01:00
..
2016-01-06 14:27:10 +01:00
2020-11-06 18:39:40 +01:00
2016-01-06 14:27:10 +01:00
2019-06-28 23:14:27 +02:00
2015-09-23 15:50:00 +02:00
2015-09-23 15:50:55 +02:00
2019-02-28 23:17:43 +01:00
2016-01-06 14:27:10 +01:00
2015-09-23 20:49:54 +02:00
2015-09-23 15:50:55 +02:00
2016-01-06 14:27:10 +01:00
2015-09-23 15:50:55 +02:00
2019-06-28 23:14:27 +02:00
2015-09-23 15:50:55 +02:00
2019-06-28 23:14:27 +02:00
2020-08-19 23:47:40 +02:00
2019-02-28 22:41:14 +01:00
2019-02-28 22:41:14 +01:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2016-01-06 14:27:10 +01:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2019-06-28 23:14:27 +02:00
2012-06-05 23:12:05 +02:00
2018-02-10 03:19:26 +01:00
2020-11-06 18:39:40 +01:00
2020-11-06 18:39:40 +01:00
2016-08-15 09:58:12 +02:00
2017-10-13 16:22:06 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2019-06-28 23:14:27 +02:00
2017-04-19 17:11:08 +02:00
2019-06-28 23:14:27 +02:00
2019-06-28 23:14:27 +02:00
2020-11-06 18:39:40 +01:00
2015-09-23 15:50:55 +02:00
2020-11-06 18:39:40 +01:00
2018-09-13 14:30:30 +02:00
2015-09-23 20:49:54 +02:00
2017-10-13 16:22:06 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2019-02-28 22:41:14 +01:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2016-06-28 20:19:24 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 20:49:54 +02:00
2012-06-05 23:12:05 +02:00
2020-05-14 14:30:57 +02:00
2019-06-28 23:14:27 +02:00
2019-02-28 22:41:14 +01:00
2018-11-13 13:46:40 +01:00
2020-10-28 12:44:34 +01:00
2016-01-06 14:27:10 +01:00
2015-09-23 15:50:55 +02:00
2019-02-28 22:41:14 +01:00
2015-09-23 15:50:55 +02:00
2016-01-06 14:27:10 +01:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 20:49:54 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2019-05-04 21:31:08 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2016-12-07 15:19:08 +01:00
2016-12-07 15:19:08 +01:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2012-06-05 23:12:05 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2012-06-05 23:12:05 +02:00
2014-01-23 11:31:53 +01:00
2014-01-23 11:31:53 +01:00
2012-06-05 23:12:05 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2019-02-28 23:38:56 +01:00
2016-01-06 14:27:10 +01:00
2015-09-23 15:50:55 +02:00
2015-09-23 15:50:55 +02:00
2016-12-07 15:19:08 +01:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2012-06-05 23:12:05 +02:00
2018-10-29 00:57:57 +01:00
2016-01-06 14:27:10 +01:00
2020-11-06 18:39:40 +01:00
2019-01-31 23:51:17 +01:00
2019-02-28 22:41:14 +01:00
2012-06-05 23:12:05 +02:00
2019-05-04 21:31:08 +02:00
2015-05-06 13:43:22 +02:00