commit | 4628b0ea03a0d029cccbcda1cbfc450b4c5ad1bf | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mark@klomp.org> | Wed May 01 15:52:24 2019 +0200 |
committer | Mark Wielaard <mark@klomp.org> | Sat May 04 21:31:08 2019 +0200 |
tree | 4572cae7f6625262b4c01d5f7811657b3c8cb3cc | |
parent | 1d8f5d30a92285fd4e7895a1d00587ac487412e3 [diff] |
libelf: Add n_namesz offset overflow check to gelf_get_note. During fuzzing of the new xlate_notes testcase I noticed that gelf_get_note didn't check whether the n_namesz of a note was too big. This could lead to offset wrapping around. Causing an infinite loop going over all ELF notes. Fix by adding an overflow check before updating offset. Signed-off-by: Mark Wielaard <mark@klomp.org>