Page MenuHomeFreeBSD

Fix handling of empty bad memory addresses file
ClosedPublic

Authored by romain on Aug 3 2025, 6:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 27, 12:30 AM
Unknown Object (File)
Sun, Nov 23, 10:48 PM
Unknown Object (File)
Mon, Nov 3, 1:06 AM
Unknown Object (File)
Mon, Nov 3, 1:05 AM
Unknown Object (File)
Mon, Nov 3, 1:04 AM
Unknown Object (File)
Mon, Nov 3, 1:04 AM
Unknown Object (File)
Thu, Oct 30, 9:15 PM
Unknown Object (File)
Oct 25 2025, 4:48 AM
Subscribers

Details

Summary

After I MFC D51433, Mark Millard raised concerns about this change:
https://lists.freebsd.org/archives/dev-commits-src-branches/2025-August/023040.html

I have limited knowledge of this code, but as I understand it, their concerns apply when the user configure a bad address file and this file exist but is empty (0 lines, 0 bytes). If so, I propose to adjust the code this way to explicitly show what valid pre-conditions put a value in *list / *end, and otherwise both are set to NULL.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped