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)
Tue, Mar 10, 6:26 PM
Unknown Object (File)
Sun, Mar 8, 3:55 AM
Unknown Object (File)
Sun, Mar 8, 2:10 AM
Unknown Object (File)
Fri, Feb 27, 11:22 AM
Unknown Object (File)
Fri, Feb 27, 2:44 AM
Unknown Object (File)
Sat, Feb 21, 3:18 AM
Unknown Object (File)
Fri, Feb 20, 4:15 AM
Unknown Object (File)
Wed, Feb 18, 4:08 PM
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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable