projects
/
yaffs2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d308180
)
Fix summary header validation
author
Charles Manning
<cdhmanning@gmail.com>
Tue, 20 Mar 2012 07:47:37 +0000
(20:47 +1300)
committer
Charles Manning
<cdhmanning@gmail.com>
Tue, 20 Mar 2012 07:47:37 +0000
(20:47 +1300)
Was not checking the byte count correctly.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
yaffs_summary.c
patch
|
blob
|
history
diff --git
a/yaffs_summary.c
b/yaffs_summary.c
index 49eaef1afbca461e7cacd884c2a8fe385fd41e40..20b27d843c739f4e222b7ddfe5132d9ea408f6e8 100644
(file)
--- a/
yaffs_summary.c
+++ b/
yaffs_summary.c
@@
-214,7
+214,7
@@
int yaffs_summary_read(struct yaffs_dev *dev,
tags.obj_id != YAFFS_OBJECTID_SUMMARY ||
tags.chunk_used == 0 ||
tags.ecc_result > YAFFS_ECC_RESULT_FIXED ||
- t
his_tx != tags.n_bytes
)
+ t
ags.n_bytes != (this_tx + sizeof(hdr))
)
result = YAFFS_FAIL;
if (result != YAFFS_OK)
break;