Whamcloud - gitweb
Check fgets(3) return value
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 20 Oct 2007 18:08:40 +0000 (22:08 +0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 29 Oct 2007 14:59:01 +0000 (10:59 -0400)
commitd9039ae0ff3f7929ede576058b3ad3e9c62a47c4
tree82d1a8afb50d9c461011198de0fd40ac016e7f6b
parent84d51a2e99277dfb728edc7c5e06273a49d197f5
Check fgets(3) return value

When fgets() function fails, contents of the buffer is undefined.  That
is, fgets() return value needs to be checked, to avoid undefined behavior.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/debugfs.c
lib/ext2fs/ismounted.c
misc/util.c