diff options
| author | Ulf Hermann <[email protected]> | 2017-04-20 16:04:54 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-04-27 16:38:48 +0200 |
| commit | eb956e080ff54dd219231f70f727b6b10eecfe42 (patch) | |
| tree | b44fc953aac29eb701e744bfe62289d231584586 /tests/hash.c | |
| parent | 28149ca8173a49c6c4fcc3a3eb919bb2420517be (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/hash.c')
0 files changed, 0 insertions, 0 deletions
