]> git.ipfire.org Git - thirdparty/coreutils.git/commit
numfmt: avoid unlikely integer overflow
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2019 19:38:15 +0000 (12:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2019 19:41:51 +0000 (12:41 -0700)
commitba1ea8caeebe9e93a40a5f05d6ff3df2afdc63ab
treecac96a845df2dd95aaa5defacb5d07f575f538c2
parentac2b4a43e679a3984dbdb42f141ef0af9c0f7903
numfmt: avoid unlikely integer overflow

* src/numfmt.c (parse_format_string): Report overflow if
pad < -LONG_MAX, since that can’t be negated.
src/numfmt.c