[Mesa-dev] [PATCH 1/4] glsl: Fix hypothetical NULL dereference in ast_process_structure_or_interface_block

Kenneth Graunke kenneth at whitecape.org
Tue Apr 9 19:50:08 PDT 2013


On 04/09/2013 04:59 PM, Ian Romanick wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Fixes issue identified by Klocwork analysis:
>
>      Pointer 'field_type' returned from call to function 'glsl_type' at
>      line 4126 may be NULL and may be dereferenced at line 4139.  Also
>      there are 2 similar errors on line(s) 4165, 4174.
>
> In practice, it should be impossible to actually get NULL in here
> because a syntax error would have already caused compilation to halt.
>
> Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
>   src/glsl/ast_to_hir.cpp | 11 ++++++++---
>   1 file changed, 8 insertions(+), 3 deletions(-)

These seem okay to me.  All four are:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>


More information about the mesa-dev mailing list