]> git.ipfire.org Git - thirdparty/util-linux.git/commit
rev: Avoid out of boundary read
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 3 Oct 2016 20:06:23 +0000 (22:06 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Oct 2016 12:56:39 +0000 (14:56 +0200)
commitb56b13684e01ab56738e602b35a2c133e8f9b92a
tree640c7b4f3e88051c818ba4cb9b8e372c0349c051
parent2571cf0f9bfa769bdf9c8fba25684fa0330a2b57
rev: Avoid out of boundary read

Check if the length of the parsed string is at least 1,
otherwise an out of boundary read would occur.
text-utils/rev.c