Skip to contentSkip to conversation

media: venus: Fix possible buffer overflow in venus_sfr_print()

PATCH Markus Elfring 1 participant 1 message May 30, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Please avoid typos in the patch subject.

Quoted 2 lines

To fix this possible bug, sfr->buf_size is assigned to a local variable, and then this variable is checked before being used.

How do you think about a wording variant like the following?

Thus assign the data structure member “buf_size” to a local variable and check it before further usage.

Would you like to add the tag “Fixes” to the commit message?

Regards,
Markus