On Mon, Jul 18, 2011 at 07:37:22PM +0200, Marc-Antoine Perennou wrote: > An element declared as size_t cannot be detected as negative (len < 0) > is always false. > This can lead to an infinite loop causing a segmentation fault. > Check if len is equal to -1 or -2 instead > > Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@xxxxxxxxxxxx> > --- > sys-utils/dmesg.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Applied, thanks. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html