Re: [PATCH 4/4] i810: coverty fix - avoid random stack access

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 26, 2015 at 12:25:43PM +0000, Patrick Welche wrote:
> From: Christos Zoulas <christos@xxxxxxxxxx>
> 
> CID 1107540: Make the code safe avoiding random stack access. In
> the first loop where there is a singleton point to pptSrc, only
> access that singleton, no matter what.

By "singleton point" do you mean nbox==1? That's the only case I can see
in which the loop is dangerous (i.e. it will read beyond the end of the
array), but that loop is not accessed if nbox==1.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux