diff options
| author | Mark Wielaard <[email protected]> | 2014-11-22 17:33:05 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2014-11-26 20:12:52 +0100 |
| commit | 2deeb7c51020df07d752107cdc6822d70ae1da4e (patch) | |
| tree | 02375a5709a669a99fb1dfbc2d4d89ee6dab8b74 /src | |
| parent | 9f8c08e68243561a54a09e38fd472b4fc2c17d5d (diff) | |
libelf: elf_getphdrnum sanity check the returned phnum result.
The internal __elf_getphdrnum_rdlock might return an inconsistent phnum.
Return a sanitized value, or return an error to users that rely on phnum
to be consistent. That way iterating over all phdrs using elf_getphdr
will return consistent results.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
