Omar Sandoval
ee2dd07f57
libelf: handle PN_XNUM in elf_getphdrnum before shdr 0 is cached
...
__elf_getphdrnum_rdlock() handles PN_XNUM by getting sh_info from
elf->state.elf{32,64}.scns.data[0].shdr.e{32,64}. However, that is only
a cache that may or may not have been populated by elf_begin() or
elf{32,64}_getshdr(); if it hasn't been cached yet, elf_getphdrnum()
returns 65535 (the value of PN_XNUM) instead. We should explicitly get
the shdr if it isn't cached.
Signed-off-by: Omar Sandoval <osandov@fb.com >
2020-03-23 11:23:24 +01:00
..
2016-01-06 14:27:10 +01:00
2020-03-23 11:23:24 +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
2019-06-28 23:14:27 +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
2018-11-13 16:53:40 +01:00
2020-03-20 18:08:10 +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
2019-02-28 22:41:14 +01:00
2015-09-23 15:50:55 +02:00
2020-03-23 11:23:24 +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
2016-10-13 11:24:03 +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
2019-04-14 22:25:50 +02: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
2019-06-28 23:14:27 +02: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