[Piglit] [PATCH] egl-util: zero-init state in egl_util_run to avoid crash on failure

Chad Versace chad.versace at linux.intel.com
Wed Aug 13 15:33:21 PDT 2014


On 08/07/2014 04:12 AM, Daniel Kurtz wrote:
> egl_util_run() does 'goto fail;' on error paths.  The error paths perform
> cleanup based on the current values of state's fields.  However, since
> state isn't zero-initialized, these fields hold random values in the
> error paths, potentially causing crashes.
> 
> Signed-off-by: Daniel Kurtz <djkurtz at chromium.org>
> ---
> I do not have commit access, so can someone please submit this for me if it
> looks good?
> Thanks
> -djk

Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
And I committed to master.



More information about the Piglit mailing list