Page MenuHomeFreeBSD

etdump: exit on error if section header or entry offset is OOB
ClosedPublic

Authored by emaste on Jul 20 2022, 4:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 16 2026, 9:05 PM
Unknown Object (File)
May 16 2026, 9:04 PM
Unknown Object (File)
May 16 2026, 9:04 PM
Unknown Object (File)
May 16 2026, 9:00 PM
Unknown Object (File)
May 9 2026, 3:20 PM
Unknown Object (File)
May 6 2026, 10:36 AM
Unknown Object (File)
May 6 2026, 7:42 AM
Unknown Object (File)
May 6 2026, 5:24 AM
Subscribers
None

Diff Detail

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

Event Timeline

emaste created this revision.
emaste added a reviewer: jrtc27.
usr.bin/etdump/etdump.c
201

Do we also need a bounds check here?

usr.bin/etdump/etdump.c
201

that entry[0] is not out of bounds?

markj added inline comments.
usr.bin/etdump/etdump.c
201

Sorry, not sure what I was thinking. The loop condition is enough.

This revision is now accepted and ready to land.Mar 22 2023, 1:02 PM