EXT2: various fixes

.enable all compile time warnings and make them errors
.refactor functions with unused parameters
.fix null pointer dereference before checking for null
.proper variable initialization
.use safe string copy functions
.fix massive memory corruption bug in fs_getdents
This commit is contained in:
Thomas Veerman
2012-07-30 09:44:58 +00:00
parent 238a9a057b
commit 6c597561bc
12 changed files with 48 additions and 43 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ int op; /* special actions */
long excess, block_pos;
char new_ind = 0, new_dbl = 0, new_triple = 0;
int single = 0, triple = 0;
register block_t old_block, b1, b2, b3;
block_t old_block = NO_BLOCK, b1 = NO_BLOCK, b2 = NO_BLOCK, b3 = NO_BLOCK;
struct buf *bp = NULL,
*bp_dindir = NULL,
*bp_tindir = NULL;