Actions
Optimization #4496
closeddecode: remove NULL checks after header casts
Effort:
Difficulty:
Label:
Description
Decoders should never be called with a NULL pointer as their pkt
input, yet a common pattern is that a NULL check is done after a cast of this pointer to a header specific type.
We should remove these checks but put a DEBUG_VALIDATE_BUG_ON(pkt == NULL);
at the top of each decode function. This way fuzzing can try to falsify this assumption.
Updated by Jeff Lucovsky over 3 years ago
- Status changed from Assigned to In Progress
Updated by Jeff Lucovsky over 3 years ago
- Status changed from In Progress to In Review
Updated by Jeff Lucovsky over 3 years ago
- Status changed from In Review to Closed
Actions