HomeFreeBSD

ext2_htree_release(): prevent signed integer overflow in a loop.

Description

ext2_htree_release(): prevent signed integer overflow in a loop.

h_levels_num, as most data structs in ext2fs, is unsigned so
the index that addresses it has to be unsigned as well.

To get to overflow here we would probably be considering a
degenerate case though.

MFC after: 5 days

Details

Provenance
pfgAuthored on
Parents
rS298517: Bump the date of the manpage after r298515
Branches
Unknown
Tags
Unknown