Task #132944 - fixed.err
back to task #132944download
Error: GCC_ANALYZER_WARNING (CWE-476):
unzip60/process.c:2503:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
unzip60/process.c:2595:7: enter_function: entry to ‘utf8_to_local_string’
unzip60/process.c:2599:18: call_function: calling ‘utf8_to_wide_string’ from ‘utf8_to_local_string’
unzip60/process.c:2599:18: return_function: returning to ‘utf8_to_local_string’ from ‘utf8_to_wide_string’
unzip60/process.c:2600:15: call_function: calling ‘wide_to_local_string’ from ‘utf8_to_local_string’
# 2501| char *local_string = NULL;
# 2502|
# 2503|-> for (wsize = 0; wide_string[wsize]; wsize++) ;
# 2504|
# 2505| if (max_bytes < MAX_ESCAPE_BYTES)
Error: COMPILER_WARNING:
unzip60/process.c:2533:9: warning[-Wstringop-truncation]: ‘__strncat_chk’ output may be truncated copying 1 byte from a string of length 8
# 2533 | strncat(buffer, buf, b);
# | ^
# 2531| if (b == 1 && (uch)buf[0] <= 0x7f) {
# 2532| /* ASCII */
# 2533|-> strncat(buffer, buf, b);
# 2534| } else {
# 2535| /* use escape for wide character */