Skip to content

vkd3d-shader/hlsl: Avoid a null pointer dereference in hlsl_block_cleanup. (UBSan)

Victor Chiletto requested to merge vitorhnn/vkd3d:null-deref-fix into master

destroy_block() is called with a NULL block from:

  • create_loop, through the loop rules for while and do-while loops.
  • The selection_statement rule, in the case $6.else_block is NULL.
  • free_parse_initializer.

Merge request reports

Loading