e2fsprogs/lib/ext2fs
Dmitry V. Levin d9039ae0ff 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>
2007-10-29 10:59:01 -04:00
..
tdb Add tdb from Samba into libext2fs library. 2007-04-04 21:26:37 -04:00
Makefile.in Remove configure --enable-swapfs and associated support #defines 2007-08-11 03:22:00 -04:00
Makefile.pq Many files: 1997-11-14 05:23:04 +00:00
alloc.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
alloc_sb.c Add support for on-line resizing ala the resize inode. This patch 2004-12-15 14:39:16 -05:00
alloc_stats.c Fix bug where ext2fs_mkdir wasn't correctly bumping the number of 2002-02-03 01:28:52 -05:00
alloc_tables.c Create new ext2fs library inlines: ext2fs_group_{first,last}_block() 2006-09-12 14:56:16 -04:00
badblocks.c Fix type punning bugs in ext2fs_get_mem() and ext2fs_free_mem() 2006-11-14 00:34:34 -05:00
bb_compat.c Many files: 2001-05-14 11:35:52 +00:00
bb_inode.c Add fs->now to override time(0) in libext2fs 2005-09-24 20:14:51 -04:00
bitmaps.c libext2fs: 32-bit bitmap refactorization, part 3 2007-07-23 04:32:48 -04:00
bitops.c libext2fs: 32-bit bitmap refactorization, part 1 2007-07-22 22:59:50 -04:00
bitops.h Remove configure --enable-swapfs and associated support #defines 2007-08-11 03:22:00 -04:00
block.c Fix resize inode handling on big endian systems, by adding new routines 2005-01-06 00:04:24 -05:00
bmap.c Clean up libext2fs by byte swapping iff WORDS_BIGENDIAN 2007-08-11 01:59:13 -04:00
bmove.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
brel.h Many files: 2001-01-11 04:54:39 +00:00
brel_ma.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
check_desc.c Fix test in ext2fs_check_desc() for inode table within block group 2007-07-22 16:00:43 -04:00
closefs.c libext2fs: Add EXT2_DESC_SIZE and EXT2_DESC_PER_BLOCK macros 2007-10-14 22:08:35 -04:00
dblist.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
dblist_dir.c ext2fs_dblist_dir_iterate: Fix ABORT propagation logic 2007-09-23 11:39:24 -04:00
dir_iterate.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
dirblock.c Clean up libext2fs by byte swapping iff WORDS_BIGENDIAN 2007-08-11 01:59:13 -04:00
dirhash.c Add directory hashed signed/unsigned hint to superblock 2006-11-11 22:32:35 -05:00
dosio.c ChangeLog, wordwrap.pl: 2001-06-01 23:49:46 +00:00
dosio.h Many files: 1997-08-11 20:29:22 +00:00
dupfs.c dupfs.c (ext2fs_dup_handle): Make sure the new filesystem handle 2005-01-05 03:16:09 -05:00
e2image.h Many files: 2001-05-03 04:02:29 +00:00
expanddir.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
ext2_err.et.in Add new TDB error codes 2007-04-06 13:50:48 -04:00
ext2_ext_attr.h Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
ext2_fs.h libext2fs: Add EXT2_DESC_SIZE and EXT2_DESC_PER_BLOCK macros 2007-10-14 22:08:35 -04:00
ext2_io.h Add I/O statistics to e2fsck 2007-08-03 20:07:09 -04:00
ext2_types.h.in Fix asm_types.h type conflicts 2006-04-09 08:41:55 -04:00
ext2fs.h libext2fs: cleanup usage of unsigned int or __u32 and replace it with blk_t 2007-10-14 21:54:28 -04:00
ext2fs.pc.in Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
ext2fsP.h Add support to e2fsck to reindex directories to use hash trees. 2002-07-20 00:28:07 -04:00
ext3_extents.h Check in ext4 extent headers into the source tree 2006-11-12 22:54:35 -05:00
ext_attr.c Clean up libext2fs by byte swapping iff WORDS_BIGENDIAN 2007-08-11 01:59:13 -04:00
fileio.c Add support for backing up the journal inode location in the 2003-08-21 00:40:26 -04:00
finddev.c finddev.c (scan_dir): Fix memory leak; we weren't calling 2001-07-29 12:01:09 -04:00
flushb.c Re-add FreeBSD support. 2003-12-28 18:21:26 +01:00
freefs.c libext2fs: 32-bit bitmap refactorization, part 1 2007-07-22 22:59:50 -04:00
gen_bitmap.c libext2fs: 32-bit bitmap refactorization, part 3 2007-07-23 04:32:48 -04:00
get_pathname.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
getsectsize.c getsectsize.c (BLKSSZGET): Clean up test for when to manually 2005-06-19 23:11:09 -04:00
getsize.c ext2fs_get_device_size(): Fix potential fd descriptor leak in an error case 2007-04-18 21:37:42 -04:00
icount.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
imager.c libext2fs: 32-bit bitmap refactorization, part 3 2007-07-23 04:32:48 -04:00
ind_block.c Clean up libext2fs by byte swapping iff WORDS_BIGENDIAN 2007-08-11 01:59:13 -04:00
initialize.c libext2fs: Add EXT2_DESC_SIZE and EXT2_DESC_PER_BLOCK macros 2007-10-14 22:08:35 -04:00
inline.c Many files: 2001-05-14 11:35:52 +00:00
inode.c Clean up libext2fs by byte swapping iff WORDS_BIGENDIAN 2007-08-11 01:59:13 -04:00
inode_io.c Add support for backing up the journal inode location in the 2003-08-21 00:40:26 -04:00
io_manager.c Add support for passing options to the io layer using the URL syntax. For 2004-11-30 14:07:11 -05:00
irel.h Many files: 2001-01-11 04:54:39 +00:00
irel_ma.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
ismounted.c Check fgets(3) return value 2007-10-29 10:59:01 -04:00
jfs_compat.h Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
jfs_dat.h ChangeLog, Makefile.in, ext2_err.et.in, ext2fs.h, jfs_dat.h, mkjournal.c: 2000-10-24 18:33:16 +00:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
kernel-jbd.h Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
kernel-list.h Lots of small random portability fixes to make e2fsprogs build 2002-02-12 02:34:44 -05:00
link.c link.c (ext2fs_link): When adding a new link to a directory, 2002-07-29 19:26:33 -04:00
llseek.c On non-linux systems, use lseek64() if it is present in 2004-09-17 17:47:12 -04:00
lookup.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
mkdir.c Add fs->now to override time(0) in libext2fs 2005-09-24 20:14:51 -04:00
mkjournal.c Add default journal size function 2007-06-21 11:59:06 -04:00
namei.c Fix gcc -Wall complaints in libext2fs 2006-11-14 23:14:12 -05:00
native.c ChangeLog, Makefile.in, swapfs.c, unix.c: 2001-06-11 07:00:04 +00:00
newdir.c ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() 2003-08-01 09:41:07 -04:00
nt_io.c Many files: 2001-05-14 11:35:52 +00:00
openfs.c libext2fs: Add EXT2_DESC_SIZE and EXT2_DESC_PER_BLOCK macros 2007-10-14 22:08:35 -04:00
read_bb.c Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
read_bb_file.c Fix various gcc -Wall complaints. 2005-12-10 21:50:30 -05:00
res_gdt.c Fix various gcc -Wall complaints. 2005-12-10 21:50:30 -05:00
rw_bitmaps.c Remove PowerPC bitmap hackery since it's not been needed since Linux 2.1 2007-08-11 01:59:13 -04:00
sparse.c Add support for on-line resizing ala the resize inode. This patch 2004-12-15 14:39:16 -05:00
swapfs.c Remove configure --enable-swapfs and associated support #defines 2007-08-11 03:22:00 -04:00
tdb.c Add tdb from Samba into libext2fs library. 2007-04-04 21:26:37 -04:00
tdb.h Add tdb from Samba into libext2fs library. 2007-04-04 21:26:37 -04:00
tdbtool.c Add tdb from Samba into libext2fs library. 2007-04-04 21:26:37 -04:00
test_io.c Add I/O statistics to e2fsck 2007-08-03 20:07:09 -04:00
tst_badblocks.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_bitops.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
tst_byteswap.c Fix various gcc -Wall complaints. 2002-03-07 23:52:56 -05:00
tst_getsectsize.c mke2fs.c (PRS, set_fs_defaults): If the sector size of the 2003-05-21 17:28:29 -04:00
tst_getsize.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_iscan.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00
tst_super_size.c Add test to make sure the ext2 superblock structure is 1024 bytes 2007-05-31 12:39:02 -04:00
tst_types.c Fix gcc -Wall warnings, especially on 64-bit systems 2007-05-25 11:18:11 -04:00
unix_io.c Add I/O statistics to e2fsck 2007-08-03 20:07:09 -04:00
unlink.c Ex2fs_unlink() will return an error if both the name and inode number are 2005-01-07 22:09:49 -05:00
valid_blk.c valid_blk.c (ext2fs_inode_has_valid_blocks): Fix bug which 2002-08-20 01:14:30 -04:00
version.c Stop after the second '.' when parsing version numbers 2007-07-08 12:37:13 -04:00
write_bb_file.c Fix signed vs unsigned printf format strings for block and inode numbers 2006-09-12 14:56:15 -04:00