[igt-dev] [PATCH i-g-t v2 5/5] lib/igt_pm: Avoid out-of-bounds reads and writes

Chris Wilson chris at chris-wilson.co.uk
Thu Mar 7 13:13:18 UTC 2019


Quoting Petri Latvala (2019-03-07 13:01:30)
> Read sizeof - 1 to buffers so null-termination stays in bounds.
> 
> v2: Also clear the buffers before reusing (Chris).
> 
> Signed-off-by: Petri Latvala <petri.latvala at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>

That's everything I spotted so
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the igt-dev mailing list