[Mesa-dev] [PATCH v2] mesa: Avoid read of uninitialized variable

Emil Velikov emil.l.velikov at gmail.com
Thu Mar 2 15:50:46 UTC 2017


On 2 March 2017 at 00:14, Robert Foss <robert.foss at collabora.com> wrote:
> The is_color_attachement variable is later read when handling two
> separate error cases, where only one of the cases results in the
> variable being initialized.
>
> This can be avoided by giving the variable a safe default value.
>
> Coverity-Id: 1398631
> Signed-off-by: Robert Foss <robert.foss at collabora.com>
> Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
> Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
... and pushed to master.

Thanks !
Emil


More information about the mesa-dev mailing list