]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Fix dehumanize_number() to correctly detect overflows
authorGuillem Jover <guillem@hadrons.org>
Sun, 14 Jul 2013 23:44:30 +0000 (01:44 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 21 Oct 2013 03:29:37 +0000 (05:29 +0200)
commit61b2dbb8f5ee52c4a50918e0a9c40300678bae50
treef9ba183c163077ff9478b016b5939d04f58215c5
parent119417462e21b71a2c5818a7ba8837e1caaa2b7a
Fix dehumanize_number() to correctly detect overflows

Do not allow numbers greated than INT64_MAX and smaller than INT64_MIN.
Clarify the positive sign value by prefixing it with an explicit +.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=66909
src/dehumanize_number.c
test/humanize.c