diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-07-02 10:33:26 +1200 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-07-02 10:33:26 +1200 |
commit | 25f6e492e7010f585367a4f6abf4d2e17c5c0e1a (patch) | |
tree | fe0976a5610446135f9183fead33dc7ee576f4f5 /yaffs_guts.h | |
parent | bfb36fe45ceea5a7e8347b24a575ab627e60df94 (diff) |
yaffs Fix scan problem for corrupted tags
Check that the tags are within reasonable bounds. Without this, subsequent
checks can fail causing a mount failure.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_guts.h')
-rw-r--r-- | yaffs_guts.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaffs_guts.h b/yaffs_guts.h index ca18503..c6e49c4 100644 --- a/yaffs_guts.h +++ b/yaffs_guts.h @@ -52,7 +52,6 @@ #define YAFFS_MAX_CHUNK_ID 0x000FFFFF -#define YAFFS_UNUSED_OBJECT_ID 0x0003FFFF #define YAFFS_ALLOCATION_NOBJECTS 100 #define YAFFS_ALLOCATION_NTNODES 100 @@ -62,6 +61,7 @@ #define YAFFS_OBJECT_SPACE 0x40000 +#define YAFFS_MAX_OBJECT_ID (YAFFS_OBJECT_SPACE -1) #define YAFFS_CHECKPOINT_VERSION 4 |