Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114883
b: refs/heads/master
c: efc7ffc
h: refs/heads/master
i:
  114881: 2de326a
  114879: 17bbd3f
v: v3
  • Loading branch information
Eric Sesterhenn authored and Linus Torvalds committed Oct 16, 2008
1 parent 44a3840 commit 5bffa94
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 81a73719d1bc77774f6ac91e2476f22c56f18baf
refs/heads/master: efc7ffcb4237f8cb9938909041c4ed38f6e1bf40
5 changes: 5 additions & 0 deletions trunk/fs/hfsplus/catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ int hfsplus_find_cat(struct super_block *sb, u32 cnid,
return -EIO;
}

if (be16_to_cpu(tmp.thread.nodeName.length) > 255) {
printk(KERN_ERR "hfs: catalog name length corrupted\n");
return -EIO;
}

hfsplus_cat_build_key_uni(fd->search_key, be32_to_cpu(tmp.thread.parentID),
&tmp.thread.nodeName);
return hfs_brec_find(fd);
Expand Down

0 comments on commit 5bffa94

Please sign in to comment.