]> git.ipfire.org Git - thirdparty/coreutils.git/commit
nl: fix integer-overflow bug
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2019 19:37:12 +0000 (12:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Oct 2019 19:41:51 +0000 (12:41 -0700)
commitac2b4a43e679a3984dbdb42f141ef0af9c0f7903
tree65335a9abc3a089b28e94f8a06f8fe89e744ec42
parentbb23a7563f9abcfc68c2caa443b0cbb6d6206fd1
nl: fix integer-overflow bug

Problem reported by Roland Illig (Bug#37585)
* src/nl.c (print_lineno): Don’t rely on undefined behavior when
checking for integer overflow.
src/nl.c