e2fsprogs/lib
Eric Sandeen 5830d6be9c Detect overflows in loop counters
For loops such as:

for (i=1; i <= fs->super->s_blocks_count; i++) {
        <do_stuff>
}

if i is an int and s_blocks_count is (2^32-1), the condition is never false.
Change these loops to:

for (i=1; i <= fs->super->s_blocks_count && i > 0; i++) {
        <do_stuff>
}

to stop the loop when we overflow i

Signed-off-by: Eric Sandeen <esandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-08-30 02:16:55 -04:00
..
blkid blkid.8.in: Fix description of the -l option to be more accurate 2006-08-19 21:12:15 -04:00
e2p Rename EXT3_EXTENTS_FL to EXT4_EXTENTS_FL and make it visible to the user 2006-08-05 18:50:22 -04:00
et Create the generated files read-only to remind developers not to edit them. 2006-08-05 14:41:00 -04:00
ext2fs Detect overflows in loop counters 2006-08-30 02:16:55 -04:00
ss Create the generated files read-only to remind developers not to edit them. 2006-08-05 14:41:00 -04:00
uuid Set FD_CLOEXEC on the /dev/random file descriptor used by libuuid 2006-01-06 18:10:02 -05:00
ChangeLog Protect ext2_ext_attr.h from multiple inclusion 2006-06-28 11:29:56 -04:00
Makefile.bsd-lib Fix the subdirs logic so it works with GNU make 3.80 2006-03-10 21:39:40 -05:00
Makefile.checker Fix the subdirs logic so it works with GNU make 3.80 2006-03-10 21:39:40 -05:00
Makefile.darwin-lib Fix the subdirs logic so it works with GNU make 3.80 2006-03-10 21:39:40 -05:00
Makefile.elf-lib Fix the subdirs logic so it works with GNU make 3.80 2006-03-10 21:39:40 -05:00
Makefile.library Fix build when not building any shared libraries. 2006-03-17 21:59:13 -05:00
Makefile.profile Fix the subdirs logic so it works with GNU make 3.80 2006-03-10 21:39:40 -05:00
Makefile.solaris-lib Fix the subdirs logic so it works with GNU make 3.80 2006-03-10 21:39:40 -05:00
fpopen.c fpopen.c: 1999-06-18 01:13:31 +00:00