summaryrefslogtreecommitdiffstats
path: root/tests/run-elf_cntl_gelf_getshdr.sh
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-04-20 16:04:54 +0200
committerMark Wielaard <[email protected]>2017-04-27 16:38:48 +0200
commiteb956e080ff54dd219231f70f727b6b10eecfe42 (patch)
treeb44fc953aac29eb701e744bfe62289d231584586 /tests/run-elf_cntl_gelf_getshdr.sh
parent28149ca8173a49c6c4fcc3a3eb919bb2420517be (diff)
Protect against integer overflow on shnum
If shnum is 0, the many "shnum - 1" would result in an overflow. Check it for 0, and only subtract once, rather than on every usage. Signed-off-by: Ulf Hermann <[email protected]>
Diffstat (limited to 'tests/run-elf_cntl_gelf_getshdr.sh')
0 files changed, 0 insertions, 0 deletions