Task #91365 - fixed.err

back to task #91365
download
Error: GCC_ANALYZER_WARNING (CWE-476):
libdrm-2.4.125/tests/util/pattern.c:877:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fsd’
libdrm-2.4.125/tests/util/pattern.c:1864:6: enter_function: entry to ‘util_fill_pattern’
libdrm-2.4.125/tests/util/pattern.c:1871:12: branch_false: following ‘false’ branch...
libdrm-2.4.125/tests/util/pattern.c:1874:9: branch_false: ...to here
libdrm-2.4.125/tests/util/pattern.c:1879:24: call_function: calling ‘fill_smpte’ from ‘util_fill_pattern’
#  875|   	struct fsd *fsd = malloc(sizeof(*fsd) + n * sizeof(fsd->error[0]));
#  876|   
#  877|-> 	fsd->width = width;
#  878|   	fsd->x = 0;
#  879|   	fsd->i = 0;