HomeFreeBSD

find_next_bit() and find_next_zero_bit(): if the caller-specified offset

Description

find_next_bit() and find_next_zero_bit(): if the caller-specified offset
lies within the last block of the bit set and no bits are set beyond the
offset, terminate the search immediately instead of continuing as though
there are further blocks in the set and subsequently returning an incorrect
result.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
markjAuthored on
Parents
rS282740: Merge bmake-20150505 improve detection of malformed conditionals.
Branches
Unknown
Tags
Unknown