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)
Mar 18 2024, 8:48 PM
Unknown Object (File)
Jan 3 2024, 3:37 PM
Unknown Object (File)
Dec 20 2023, 2:26 AM
Unknown Object (File)
Nov 4 2023, 12:57 PM
Unknown Object (File)
Sep 20 2023, 7:14 AM
Unknown Object (File)
Aug 27 2023, 12:27 PM
Unknown Object (File)
Aug 24 2023, 12:14 PM
Unknown Object (File)
Jul 24 2023, 1:43 PM
Subscribers

Details

Summary

readether argument is missing & operator.
CID 1374944

Diff Detail

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.