lkml.org 
[lkml]   [2020]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] media: pci: ttpci: av7110: Fix possible buffer overflow in debiirq()
From
Date
> To fix this possible bug, data[0] is assigned to a local variable, which
> replaces the use of data[0].

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

Thus assign the first element of the data array to a local variable
so that it can be used as an array index together with the data structure
member “ci_slot” in a safer way.


Would you like to add the tag “Fixes” to the commit message?
Are you going to take this possibility into account for any more patches?

Regards,
Markus

\
 
 \ /
  Last update: 2020-05-30 17:29    [W:0.032 / U:1.936 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site