Commit 79e746bb authored by David Malcolm's avatar David Malcolm
Browse files

analyzer: fix ICE on realloc of zeroed memory [PR104062]



gcc/analyzer/ChangeLog:
	PR analyzer/104062
	* region-model-manager.cc
	(region_model_manager::maybe_fold_sub_svalue): Avoid casting to
	NULL type when folding access to repeated svalue.

gcc/testsuite/ChangeLog:
	PR analyzer/104062
	* gcc.dg/analyzer/pr104062.c: New test.

Signed-off-by: default avatarDavid Malcolm <dmalcolm@redhat.com>
parent fe3ed885
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment