Page MenuHomeFreeBSD

zalloc_malloc:Free hexdump preceeding buffer when we detect overflow
ClosedPublic

Authored by sjg on Aug 29 2020, 7:51 PM.
Tags
None
Referenced Files
F166276241: D26235.id76349.diff
Wed, Aug 12, 4:06 PM
F166275906: D26235.id76355.diff
Wed, Aug 12, 4:05 PM
F166275902: D26235.id76356.diff
Wed, Aug 12, 4:05 PM
F166275831: D26235.id76351.diff
Wed, Aug 12, 4:05 PM
F166275825: D26235.id76352.diff
Wed, Aug 12, 4:05 PM
F166275745: D26235.diff
Wed, Aug 12, 4:05 PM
Unknown Object (File)
Mon, Aug 10, 9:22 AM
Unknown Object (File)
Fri, Aug 7, 10:33 PM
Subscribers

Details

Summary

Move hexdump from stand/common/misc.c to stand/libsa/hexdump.c
(svn cp)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33229
Build 30571: arc lint + arc unit

Event Timeline

sjg requested review of this revision.Aug 29 2020, 7:51 PM

Added the HEXDUMP_PAGER #ifdef, since otherwise pager (which we do not need in this case) causes linking issue for boot1

stand/libsa/hexdump.c
46

This doesn't look right. Copy/paste error?

sjg marked an inline comment as done.Aug 29 2020, 8:06 PM

This looks OK to my eyes, modulo the comments about HEXDUMP_PAGER ifdef and how that gets defined... But I'm good either way with that...

stand/libsa/hexdump.c
41

where do we define this?

This revision is now accepted and ready to land.Aug 29 2020, 8:14 PM
This revision now requires review to proceed.Aug 29 2020, 8:49 PM
stand/libsa/hexdump.c
41

We don't - at least not in libsa
the only usage there dumps 512 bytes which does not need pager.

This revision is now accepted and ready to land.Aug 29 2020, 9:05 PM