Task #132800 - fixed.err
back to task #132800download
Error: GCC_ANALYZER_WARNING (CWE-476):
serd-0.32.8/src/base64.c:91:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘out’
serd-0.32.8/src/base64.c:98:1: enter_function: entry to ‘serd_base64_decode’
serd-0.32.8/src/base64.c:105:15: acquire_memory: this call could return NULL
serd-0.32.8/src/base64.c:108:29: branch_true: following ‘true’ branch (when ‘i < len’)...
serd-0.32.8/src/base64.c:109:13: branch_true: ...to here
serd-0.32.8/src/base64.c:111:12: branch_true: following ‘true’ branch...
serd-0.32.8/src/base64.c:111:12: branch_true: ...to here
serd-0.32.8/src/base64.c:112:14: branch_true: following ‘true’ branch...
serd-0.32.8/src/base64.c:111:12: branch_true: following ‘true’ branch...
serd-0.32.8/src/base64.c:111:12: branch_true: ...to here
serd-0.32.8/src/base64.c:112:14: branch_true: following ‘true’ branch...
serd-0.32.8/src/base64.c:111:12: branch_false: following ‘false’ branch...
serd-0.32.8/src/base64.c:119:8: branch_false: ...to here
serd-0.32.8/src/base64.c:119:8: branch_true: following ‘true’ branch (when ‘n_in > 1’)...
serd-0.32.8/src/base64.c:120:16: branch_true: ...to here
serd-0.32.8/src/base64.c:120:16: call_function: calling ‘decode_chunk’ from ‘serd_base64_decode’
# 89| decode_chunk(const uint8_t in[4], uint8_t out[3])
# 90| {
# 91|-> out[0] = (uint8_t)(((unmap(in[0]) << 2)) | unmap(in[1]) >> 4);
# 92| out[1] = (uint8_t)(((unmap(in[1]) << 4) & 0xF0) | unmap(in[2]) >> 2);
# 93| out[2] = (uint8_t)(((unmap(in[2]) << 6) & 0xC0) | unmap(in[3]));