diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2018-03-30 09:25:07 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2018-03-30 09:25:07 +0000 |
commit | 187692fc65df0f68e4089df7578f3ad930aeaf24 (patch) | |
tree | 7214fb735580f4df7531a5b6b165ffe607ebdf09 /sbin/badsect | |
parent | 1b19d9614f9191be3c3ec524f1e2d30dd2abfa65 (diff) |
Fix overflow in list value parsing.
On 64 bit systems an integer overflow between strtol and int casting
could occur, resulting in out of boundary writes. Using strtonum fixes
this issue and leads to better error messages.
ok schwarze
Diffstat (limited to 'sbin/badsect')
0 files changed, 0 insertions, 0 deletions