Task #90774 - added.err

back to task #90774
download
Error: GCC_ANALYZER_WARNING (CWE-401):
e2fsprogs-1.47.3/lib/ext2fs/ext_attr.c:222:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
e2fsprogs-1.47.3/lib/ext2fs/ext_attr.c:293:11: enter_function: entry to ‘ext2fs_adjust_ea_refcount3’
e2fsprogs-1.47.3/lib/ext2fs/ext_attr.c:305:12: branch_true: following ‘true’ branch (when ‘block_buf’ is NULL)...
e2fsprogs-1.47.3/lib/ext2fs/ext_attr.c:306:41: branch_true: ...to here
e2fsprogs-1.47.3/lib/ext2fs/ext_attr.c:306:26: call_function: inlined call to ‘ext2fs_get_mem’ from ‘ext2fs_adjust_ea_refcount3’
e2fsprogs-1.47.3/lib/ext2fs/ext_attr.c:312:18: branch_false: ...to here
e2fsprogs-1.47.3/lib/ext2fs/ext_attr.c:312:18: call_function: calling ‘ext2fs_read_ext_attr3’ from ‘ext2fs_adjust_ea_refcount3’
#  220|   	errcode_t	retval;
#  221|   
#  222|-> 	retval = io_channel_read_blk64(fs->io, block, 1, buf);
#  223|   	if (retval)
#  224|   		return retval;

Error: GCC_ANALYZER_WARNING (CWE-401):
e2fsprogs-1.47.3/misc/badblocks.c:482:18: warning[-Wanalyzer-malloc-leak]: leak of ‘blkbuf’
e2fsprogs-1.47.3/misc/badblocks.c:741:21: enter_function: entry to ‘test_nd’
e2fsprogs-1.47.3/misc/badblocks.c:765:12: branch_false: following ‘false’ branch...
e2fsprogs-1.47.3/misc/badblocks.c:765:12: branch_false: ...to here
e2fsprogs-1.47.3/misc/badblocks.c:774:18: call_function: calling ‘allocate_buffer’ from ‘test_nd’
e2fsprogs-1.47.3/misc/badblocks.c:774:18: return_function: returning to ‘test_nd’ from ‘allocate_buffer’
e2fsprogs-1.47.3/misc/badblocks.c:776:12: branch_false: following ‘false’ branch...
e2fsprogs-1.47.3/misc/badblocks.c:782:9: branch_false: ...to here
e2fsprogs-1.47.3/misc/badblocks.c:788:9: call_function: inlined call to ‘flush_bufs’ from ‘test_nd’
#  480|   		return;
#  481|   #endif
#  482|-> 	retval = ext2fs_sync_device(host_dev, 1);
#  483|   	if (retval)
#  484|   		com_err(program_name, retval, "%s",

Error: GCC_ANALYZER_WARNING (CWE-401):
e2fsprogs-1.47.3/misc/badblocks.c:484:17: warning[-Wanalyzer-malloc-leak]: leak of ‘blkbuf’
e2fsprogs-1.47.3/misc/badblocks.c:741:21: enter_function: entry to ‘test_nd’
e2fsprogs-1.47.3/misc/badblocks.c:765:12: branch_false: following ‘false’ branch...
e2fsprogs-1.47.3/misc/badblocks.c:765:12: branch_false: ...to here
e2fsprogs-1.47.3/misc/badblocks.c:774:18: call_function: calling ‘allocate_buffer’ from ‘test_nd’
e2fsprogs-1.47.3/misc/badblocks.c:774:18: return_function: returning to ‘test_nd’ from ‘allocate_buffer’
e2fsprogs-1.47.3/misc/badblocks.c:776:12: branch_false: following ‘false’ branch...
e2fsprogs-1.47.3/misc/badblocks.c:782:9: branch_false: ...to here
e2fsprogs-1.47.3/misc/badblocks.c:788:9: call_function: inlined call to ‘flush_bufs’ from ‘test_nd’
#  482|   	retval = ext2fs_sync_device(host_dev, 1);
#  483|   	if (retval)
#  484|-> 		com_err(program_name, retval, "%s",
#  485|   			_("during ext2fs_sync_device"));
#  486|   }