Re: [Mesa-dev] [PATCH] intel/isl: Tighten up format info lookup

2017-06-05 Thread Anuj Phogat
On Mon, Jun 5, 2017 at 9:28 AM, Jason Ekstrand wrote: > The old code would just blindly dereference arrays with no protection > whatsoever. This is a problem because the format_info array is too > short to contain ISL_FORMAT_UNSUPPORTED or any of the aux formats. This > can lead to segfaults whe

[Mesa-dev] [PATCH] intel/isl: Tighten up format info lookup

2017-06-05 Thread Jason Ekstrand
The old code would just blindly dereference arrays with no protection whatsoever. This is a problem because the format_info array is too short to contain ISL_FORMAT_UNSUPPORTED or any of the aux formats. This can lead to segfaults when the array is dereferenced. This commit switches everything o