diff options
author | Karel Zak | 2019-02-05 12:06:00 +0100 |
---|---|---|
committer | Karel Zak | 2019-02-05 12:06:00 +0100 |
commit | 004356f05018e3bfcaddd2652846659a4d8481f3 (patch) | |
tree | 929322081416c99c0b9d15b7c0fa12b7a9058da8 /Documentation/TODO | |
parent | Merge branch 'patch-1' of https://github.com/edupont/util-linux (diff) | |
download | kernel-qcow2-util-linux-004356f05018e3bfcaddd2652846659a4d8481f3.tar.gz kernel-qcow2-util-linux-004356f05018e3bfcaddd2652846659a4d8481f3.tar.xz kernel-qcow2-util-linux-004356f05018e3bfcaddd2652846659a4d8481f3.zip |
col: make flush_line() a little bit robust
The code is horrible. The core of the problem are signed integers
and no check for the limits.
This patch fixes c->c_column = cur_col; where c_column is "short"
and "cur_col" is int. Let's use "int" for all the variables. It's
really not perfect as for bigger lines it can segfault again...
The patch also removes some unnecessary static variables.
Addresses: https://github.com/karelzak/util-linux/issues/749
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'Documentation/TODO')
0 files changed, 0 insertions, 0 deletions