Page MenuHomeFreeBSD

libstand: NULL pointer dereference in rarp
ClosedPublic

Authored by tsoome on May 10 2017, 3:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 21, 12:49 PM
Unknown Object (File)
Jul 2 2026, 1:48 PM
Unknown Object (File)
Jun 28 2026, 2:44 PM
Unknown Object (File)
Jun 23 2026, 8:45 PM
Unknown Object (File)
Jun 23 2026, 2:42 PM
Unknown Object (File)
Jun 18 2026, 5:56 PM
Unknown Object (File)
Jun 4 2026, 8:02 PM
Unknown Object (File)
Jun 4 2026, 1:07 AM
Subscribers

Details

Summary

readether argument is missing & operator.
CID 1374944

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.May 10 2017, 3:22 PM

I'd suggest changing this interface from void ** to more typed pointers to catch this, although I'd expect GCC/Clang to catch passing a void * to void ** parameter. Maybe check WARNS level?

In D10663#221137, @cem wrote:

I'd suggest changing this interface from void ** to more typed pointers to catch this, although I'd expect GCC/Clang to catch passing a void * to void ** parameter. Maybe check WARNS level?

I think eventually we need there a bit more generic buffer structure to allow custom alignment, but that idea needs more time to settle.

This revision was automatically updated to reflect the committed changes.