summaryrefslogtreecommitdiff
path: root/src/cryptsetup
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-10 17:27:16 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-10 17:36:52 +0100
commit2d49a208f8ad9d1c4e79fa4302451e35d06de707 (patch)
treeb5e272a774f7f3d26e6ed876445e58bf409ada8e /src/cryptsetup
parentb374689c02c681671a3c3c0b0fd3add32386b442 (diff)
parse-util: really refuse parsing negative values as positive ones, even on x86-32
strtoull() doesn't make it particularly easy to detect passed-in negative numbers, as it silently converts them to positive ones without generating any error. Since we are not interested in negative values we should hence explicitly filter them out by looking at the string directly and returning ERANGE if we see a leading "-". Fixes: #1829
Diffstat (limited to 'src/cryptsetup')
0 files changed, 0 insertions, 0 deletions