linux-kernel-test/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 [XFS] Portability changes: remove prdev, stick to one diagnostic 2006-06-09 15:29:40 +10:00
ktrace.c [XFS] Add a debug flag for allocations which are known to be larger than 2006-09-28 11:03:05 +10:00
ktrace.h [XFS] Fix sparse warnings in ktrace.[ch] 2005-11-02 15:07:23 +11:00
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 [XFS] UUID endianess fix. uu_timelow is a 32bit field and needs to be 2006-03-14 13:24:46 +11:00
uuid.h [XFS] Update license/copyright notices to match the prefered SGI 2005-11-02 14:58:39 +11:00