android_kernel_xiaomi_sm8350/fs/xfs/support
Lachlan McIlroy dc74eaad8c [XFS] Prevent buffer overrun in cmn_err().
The message buffer used by cmn_err() is only 256 bytes and some CXFS
messages were exceeding this length. Since we were using vsprintf() and
not checking for buffer overruns we were clobbering memory beyond the
buffer. The size of the buffer has been increased to 1024 bytes so we can
capture these larger messages and we are now using vsnprintf() to prevent
overrunning the buffer size.

SGI-PV: 958599
SGI-Modid: xfs-linux-melb:xfs-kern:27561a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Geoffrey Wehrman <gwehrman@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
2007-02-10 18:34:38 +11:00
..
debug.c [XFS] Prevent buffer overrun in cmn_err(). 2007-02-10 18:34:38 +11:00
debug.h
ktrace.c
ktrace.h
move.c [XFS] rename uio_read() to xfs_uio_read() 2006-11-11 18:04:41 +11:00
move.h [XFS] rename uio_read() to xfs_uio_read() 2006-11-11 18:04:41 +11:00
uuid.c
uuid.h