Task #52423 - fixed.err

back to task #52423
download
Error: GCC_ANALYZER_WARNING (CWE-401):
ccid-1.6.1/redhat-linux-build/libccid.so.p/tokenparser.c:1594:12: warning[-Wanalyzer-malloc-leak]: leak of ‘tokenparseralloc(64)’
ccid-1.6.1/redhat-linux-build/../src/tokenparser.l:203:5: enter_function: entry to ‘bundleParse’
ccid-1.6.1/redhat-linux-build/../src/tokenparser.l:212:12: branch_false: following ‘false’ branch...
ccid-1.6.1/redhat-linux-build/../src/tokenparser.l:219:13: branch_false: ...to here
ccid-1.6.1/redhat-linux-build/../src/tokenparser.l:228:23: call_function: calling ‘tokenparserlex’ from ‘bundleParse’
# 1592|   	 * we need to put in 2 end-of-buffer characters.
# 1593|   	 */
# 1594|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1595|   	if ( ! b->yy_ch_buf )
# 1596|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-401):
ccid-1.6.1/redhat-linux-build/libccidtwin.so.p/tokenparser.c:1594:12: warning[-Wanalyzer-malloc-leak]: leak of ‘tokenparseralloc(64)’
ccid-1.6.1/redhat-linux-build/../src/tokenparser.l:203:5: enter_function: entry to ‘bundleParse’
ccid-1.6.1/redhat-linux-build/../src/tokenparser.l:212:12: branch_false: following ‘false’ branch...
ccid-1.6.1/redhat-linux-build/../src/tokenparser.l:219:13: branch_false: ...to here
ccid-1.6.1/redhat-linux-build/../src/tokenparser.l:228:23: call_function: calling ‘tokenparserlex’ from ‘bundleParse’
# 1592|   	 * we need to put in 2 end-of-buffer characters.
# 1593|   	 */
# 1594|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1595|   	if ( ! b->yy_ch_buf )
# 1596|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );