Page MenuHomeFreeBSD

vm_phys_avail_count(): Fix out-of-bounds accesses
Needs ReviewPublic

Authored by olce on Thu, Jan 23, 5:15 PM.

Details

Reviewers
markj
dougm
alc
Summary

On improper termination of phys_avail[] (two consecutive 0 starting at
an even index), this function would (unnecessarily) continue searching
for the termination markers even if the index was out of bounds.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61928
Build 58812: arc lint + arc unit