Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116212
b: refs/heads/master
c: be2f6bd
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Hunter authored and Artem Bityutskiy committed Sep 30, 2008
1 parent 20f3284 commit d292c12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63c300b68fd93a9fadc5e317d4d001b7a6985486
refs/heads/master: be2f6bd62d0d4246a9227dacbe2469e1f0eccf26
2 changes: 2 additions & 0 deletions trunk/fs/ubifs/lpt_commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,6 +1089,8 @@ static int is_a_node(struct ubifs_info *c, uint8_t *buf, int len)
int pos = 0, node_type, node_len;
uint16_t crc, calc_crc;

if (len < UBIFS_LPT_CRC_BYTES + (UBIFS_LPT_TYPE_BITS + 7) / 8)
return 0;
node_type = ubifs_unpack_bits(&addr, &pos, UBIFS_LPT_TYPE_BITS);
if (node_type == UBIFS_LPT_NOT_A_NODE)
return 0;
Expand Down

0 comments on commit d292c12

Please sign in to comment.