Re: [PATCH] hfsplus: Prevent overflows in comparisons

2011-01-03 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Applied, thanks. On 12/30/2010 08:46 AM, Dave Vasilevsky wrote: > === modified file 'ChangeLog' > --- ChangeLog 2010-12-27 06:19:51 + > +++ ChangeLog 2010-12-30 07:39:45 + > @@ -1,3 +1,11 @@ > +2010-12-30 Dave Vasilevsky > + > + * grub-core/fs/hfsplus.c: Parent field of > + grub_h

Re: [PATCH] hfsplus: Prevent overflows in comparisons

2010-12-29 Thread Dave Vasilevsky
Now with a ChangeLog entry. -V === modified file 'ChangeLog' --- ChangeLog 2010-12-27 06:19:51 + +++ ChangeLog 2010-12-30 07:39:45 + @@ -1,3 +1,11 @@ +2010-12-30 Dave Vasilevsky + + * grub-core/fs/hfsplus.c: Parent field of + grub_hfsplus_catkey_internal should be unsigne

[PATCH] hfsplus: Prevent overflows in comparisons

2010-12-29 Thread Dave Vasilevsky
When very high Catalog Node IDs are in use, comparing CNIDs via subtraction may overflow. This causes files and folders to appear to be missing in the btree. It's safer to just use comparison operations rather than subtraction. Also fixes the parent field in grub_hfsplus_catkey_internal, which is