]> git.ipfire.org Git - thirdparty/coreutils.git/commit
dd: do not access uninitialized
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 18:20:21 +0000 (10:20 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 31 Jan 2022 20:07:39 +0000 (12:07 -0800)
commit604f8a6c4d58a646c8722fdf7cad9ee67479d8f7
treea2b2cb52c81dca6bc3f5c0a55dee19ae44ae3a24
parentd0e3b0ae1a59ae83a4e5fb649b7b446a3a365022
dd: do not access uninitialized

* src/dd.c (parse_integer): Avoid undefined behavior
that accesses an uninitialized ā€˜n’ when e == LONGINT_INVALID.
Return more-accurate error code when INTMAX_MAX < n.
src/dd.c