chiark / gitweb /
utmp-wtmp: don't try to read past end of string
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Mar 2013 03:19:19 +0000 (23:19 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 29 Mar 2013 03:24:55 +0000 (23:24 -0400)
commit268888765352e4dcf07e40917fef6ab41b7deba1
treed8f121440e794a9f9df44493369367eaedf1456d
parentc8c9c69f390ea9cf8e700515757d18fc08d8c4fe
utmp-wtmp: don't try to read past end of string

systemd-199/src/shared/utmp-wtmp.c:228: buffer_size_warning: Calling
strncpy with a maximum size argument of 32 bytes on destination array
"store.ut_line" of size 32 bytes might leave the destination string
unterminated.

The destination string is unterminated on purpose, but we must
remember that.
src/shared/utmp-wtmp.c