summaryrefslogtreecommitdiffstats
path: root/text-utils/rev.c
diff options
context:
space:
mode:
authorTobias Stoeckmann2016-10-03 22:05:03 +0200
committerKarel Zak2016-10-06 14:56:39 +0200
commite8c20678f3700105ea9299ad481ce3d70419bb9e (patch)
treeac28008b4628ebcadaf424279f5df877bd4cabe7 /text-utils/rev.c
parentdocs: update infor about TIOCSTI (diff)
downloadkernel-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