Page MenuHomeFreeBSD

Fix kvm bitmap index
AbandonedPublic

Authored by luporl on Sep 6 2019, 5:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 4:33 AM
Unknown Object (File)
Mon, Dec 16, 8:59 AM
Unknown Object (File)
Mon, Dec 9, 3:56 AM
Unknown Object (File)
Dec 1 2024, 6:50 PM
Unknown Object (File)
Nov 25 2024, 8:36 PM
Unknown Object (File)
Nov 24 2024, 6:53 PM
Unknown Object (File)
Nov 24 2024, 5:28 PM
Unknown Object (File)
Nov 23 2024, 10:05 PM
Subscribers

Details

Reviewers
will
emaste
Summary

_kvm_bitmap_next may perform an out-of-bounds access on bm->map array.
It seems the right is to divide *idx by CHAR_BIT, instead of multiplying it.

Another thing that looks strange to me is the function returning when it finds a bit that is not set. Shouldn't it be the opposite?

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26319
Build 24798: arc lint + arc unit