summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2024-02-21 22:19:32 +0100
committerMark Wielaard <[email protected]>2024-02-27 16:00:07 +0100
commit05bea78f46f6a0cbe13402dca0b5a363ecf66cb1 (patch)
tree1e80af120cfa44b739404c43075af46bea6f764b /tests
parent22085a89e31b6d4a9c528210a4c959a46a4b83f5 (diff)
readelf: Use unsigned loop variables in handle_verneed and handle_verdef
Prevent signed underflow by changing loop variables to unsigned and doing count checks before decrementing. This isn't really a bug, but prevents UB detected by ubsan on fuzzed input. The bad (fuzzed) input data does get detected anyway. * src/readelf.c (handle_verneed): Use unsigned cnt, cnt2. (handle_verdef): Likewise. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions