]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libsmartcols: make cell data printing more robust
authorKarel Zak <kzak@redhat.com>
Tue, 12 Dec 2023 19:11:22 +0000 (20:11 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 12 Dec 2023 19:11:22 +0000 (20:11 +0100)
commit2d9e5c9eb6692b796ec62b713efe0c522e1afb05
treefe934dd1e0cc5ddc1b76a2737c8ed1b793814d89
parent294aa16fab0ff3db6e15727a110c2689848c16d2
libsmartcols: make cell data printing more robust

* use zero terminated data in continuous sample

* don't call strlen() for empty strings

* make sure library check for data size during printing

  Unfortunately, previous library versions support cell data buffer
  update without inform library about a change.

Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/samples/continuous.c
libsmartcols/src/cell.c
libsmartcols/src/print.c