]> git.ipfire.org Git - thirdparty/coreutils.git/commit
stty: ensure arbitrary data is not displayed
authorPádraig Brady <P@draigBrady.com>
Sun, 19 Mar 2023 22:22:18 +0000 (22:22 +0000)
committerPádraig Brady <P@draigBrady.com>
Sun, 19 Mar 2023 22:25:50 +0000 (22:25 +0000)
commiteb745e3b95a79bdad98aaa9c4e753145f995c313
tree8a3d8f7764d52658635975a0d809224fedd3e58b
parent82bb131c551039971d6668dedc1975a770df88b9
stty: ensure arbitrary data is not displayed

* src/stty.c (main): Use static structures to ensure
they're initialized (to zero), so that random data is
not displayed, or compared resulting in a inaccurate
failure reported to users.  This was seen on musl libc
where some parts of the termios c_cc array were
not initialized by tcgetattr().
Reported by Bruno Haible.
src/stty.c