diff options
author | Tobias Stoeckmann | 2016-10-03 22:05:03 +0200 |
---|---|---|
committer | Karel Zak | 2016-10-06 14:56:39 +0200 |
commit | e8c20678f3700105ea9299ad481ce3d70419bb9e (patch) | |
tree | ac28008b4628ebcadaf424279f5df877bd4cabe7 /text-utils/rev.c | |
parent | docs: update infor about TIOCSTI (diff) | |
download | kernel-qcow2-util-linux-e8c20678f3700105ea9299ad481ce3d70419bb9e.tar.gz kernel-qcow2-util-linux-e8c20678f3700105ea9299ad481ce3d70419bb9e.tar.xz kernel-qcow2-util-linux-e8c20678f3700105ea9299ad481ce3d70419bb9e.zip |
libblkid: Avoid strlen if only first char is checked
A strlen() call can lead to out of boundary read access if the
superblock in question has no nul-bytes after the string. This
could be avoided by using strnlen() but the calls in question
merely existed to check if the string length is not 0.
By changing the calls as proposed with this diff, these files are
in sync with other superblock files, which do exactly the same.
Diffstat (limited to 'text-utils/rev.c')
0 files changed, 0 insertions, 0 deletions