criu-4.0-2.fc42
List of Findings
Error: CPPCHECK_WARNING (CWE-476): [#def1]
criu-4.0-build/criu-4.0/compel/plugins/std/infect.c:106: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def2]
criu-4.0-build/criu-4.0/compel/src/lib/infect.c:430: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0
Error: CPPCHECK_WARNING (CWE-476): [#def3]
criu-4.0-build/criu-4.0/compel/src/lib/infect.c:710: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def4]
criu-4.0-build/criu-4.0/compel/src/lib/infect.c:931: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
criu-4.0-build/criu-4.0/compel/src/lib/infect.c: scope_hint: In function ‘find_executable_area’
criu-4.0-build/criu-4.0/compel/src/lib/infect.c:1202:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&aux, "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
criu-4.0-build/criu-4.0/compel/src/lib/infect.c:1202:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&aux, "r")’
Error: CPPCHECK_WARNING (CWE-476): [#def7]
criu-4.0-build/criu-4.0/compel/src/lib/infect.c:1203: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def8]
criu-4.0-build/criu-4.0/compel/src/lib/infect.c:1529: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
criu-4.0-build/criu-4.0/compel/src/main.c: scope_hint: In function ‘gen_prefix’
criu-4.0-build/criu-4.0/compel/src/main.c:277:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
criu-4.0-build/criu-4.0/criu/cr-check.c: scope_hint: In function ‘get_file_dev_and_inode’
criu-4.0-build/criu-4.0/criu/cr-check.c:1413:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/self/maps", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
criu-4.0-build/criu-4.0/criu/cr-check.c:1413:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/self/maps", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
criu-4.0-build/criu-4.0/criu/cr-check.c:1418:20: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/self/maps", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
criu-4.0-build/criu-4.0/criu/cr-check.c:1418:20: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/self/maps", "r")’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
criu-4.0-build/criu-4.0/criu/cr-check.c:1423:27: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/proc/self/maps", "r")’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
criu-4.0-build/criu-4.0/criu/cr-check.c:1423:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/proc/self/maps", "r")’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def16]
criu-4.0-build/criu-4.0/criu/cr-dump.c: scope_hint: In function ‘free_mappings’
criu-4.0-build/criu-4.0/criu/cr-dump.c:113:30: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
criu-4.0-build/criu-4.0/criu/cr-dump.c: scope_hint: In function ‘free_mappings’
criu-4.0-build/criu-4.0/criu/cr-dump.c:53: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/cr-dump.c:2223:9: note: in expansion of macro ‘for_each_pstree_item’
criu-4.0-build/criu-4.0/criu/cr-dump.c:2223:9: note: in expansion of macro ‘for_each_pstree_item’
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:1: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/util.h:19: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/cr-dump.c:1563:9: note: in expansion of macro ‘pr_info’
criu-4.0-build/criu-4.0/criu/cr-dump.c:32: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/cr-dump.c:112:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/criu/cr-dump.c:113:30: note: read of 1 bit from after the end of ‘vmas’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def17]
criu-4.0-build/criu-4.0/criu/cr-dump.c:114:38: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
criu-4.0-build/criu-4.0/criu/cr-dump.c: scope_hint: In function ‘free_mappings’
criu-4.0-build/criu-4.0/criu/cr-dump.c:2223:9: note: in expansion of macro ‘for_each_pstree_item’
criu-4.0-build/criu-4.0/criu/cr-dump.c:2223:9: note: in expansion of macro ‘for_each_pstree_item’
criu-4.0-build/criu-4.0/criu/cr-dump.c:1563:9: note: in expansion of macro ‘pr_info’
criu-4.0-build/criu-4.0/criu/cr-dump.c:112:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/criu/cr-dump.c:114:38: note: read of 8 bytes from after the end of ‘vmas’
Error: GCC_ANALYZER_WARNING (CWE-590): [#def18]
criu-4.0-build/criu-4.0/criu/cr-dump.c:115:17: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘vma_area’ which points to memory on the stack
criu-4.0-build/criu-4.0/criu/cr-dump.c: scope_hint: In function ‘free_mappings’
criu-4.0-build/criu-4.0/criu/cr-dump.c:2223:9: note: in expansion of macro ‘for_each_pstree_item’
criu-4.0-build/criu-4.0/criu/cr-dump.c:2223:9: note: in expansion of macro ‘for_each_pstree_item’
criu-4.0-build/criu-4.0/criu/cr-dump.c:1563:9: note: in expansion of macro ‘pr_info’
criu-4.0-build/criu-4.0/criu/cr-dump.c:112:9: note: in expansion of macro ‘list_for_each_entry_safe’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def19]
criu-4.0-build/criu-4.0/criu/eventpoll.c: scope_hint: In function ‘dequeue_dinfo’
criu-4.0-build/criu-4.0/criu/eventpoll.c:112:30: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘dinfo’
criu-4.0-build/criu-4.0/criu/include/crtools.h:6: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/eventpoll.c:15: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/include/imgset.h:20:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:2: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/util.h:19: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/eventpoll.c:22: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/eventpoll.c:122:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/criu/eventpoll.c:178:9: note: in expansion of macro ‘list_for_each_entry_safe’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def20]
criu-4.0-build/criu-4.0/criu/eventpoll.c:112:33: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘((struct eventpoll_dinfo)*((struct list_head *)dinfo)).e’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/include/imgset.h:20:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/eventpoll.c:117:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/criu/eventpoll.c:178:9: note: in expansion of macro ‘list_for_each_entry_safe’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
criu-4.0-build/criu-4.0/criu/files-reg.c: scope_hint: In function ‘validate_with_build_id’
criu-4.0-build/criu-4.0/criu/files-reg.c:2135:24: warning[-Wanalyzer-malloc-leak]: leak of ‘build_id’
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:2: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/pstree.h:7: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/files-reg.c:50: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/files-reg.c:1547:38: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/files-reg.c:1547:38: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/files-reg.c:1547:38: note: in expansion of macro ‘xmalloc’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
criu-4.0-build/criu-4.0/criu/files.c:1067:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd, dfd)’
criu-4.0-build/criu-4.0/include/common/bug.h:23:22: note: in definition of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/files.c:1064:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/files.c:1064:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/files.c:1066:9: note: in expansion of macro ‘pr_info’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
criu-4.0-build/criu-4.0/criu/fsnotify.c: scope_hint: In function ‘check_open_handle’
criu-4.0-build/criu-4.0/criu/fsnotify.c:94:27: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_openable(s_dev, i_ino, f_handle)’
criu-4.0-build/criu-4.0/include/common/bug.h:23:22: note: in definition of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/fsnotify.c:384:17: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/fsnotify.c:384:17: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/include/imgset.h:5: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/fsnotify.c:386:17: note: in expansion of macro ‘pr_info’
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:2: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/util.h:19: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/protobuf.h:8: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/fsnotify.h:6: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/fsnotify.c:24: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/fsnotify.c:176:40: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/fsnotify.c:176:40: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/fsnotify.c:176:40: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/criu/fsnotify.c: scope_hint: In function ‘check_open_handle’
criu-4.0-build/criu-4.0/include/common/compiler.h:51:41: note: in definition of macro ‘unlikely’
criu-4.0-build/criu-4.0/include/common/err.h:31:16: note: in expansion of macro ‘IS_ERR_VALUE’
criu-4.0-build/criu-4.0/criu/fsnotify.c: scope_hint: In function ‘check_open_handle’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
criu-4.0-build/criu-4.0/criu/fsnotify.c:130:22: warning[-Wanalyzer-malloc-leak]: leak of ‘alloc_openable(s_dev, i_ino, f_handle)’
criu-4.0-build/criu-4.0/include/common/bug.h:23:22: note: in definition of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/fsnotify.c:384:17: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/fsnotify.c:384:17: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/fsnotify.c:386:17: note: in expansion of macro ‘pr_info’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/fsnotify.c:176:40: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/fsnotify.c:176:40: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/fsnotify.c:176:40: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/criu/fsnotify.c: scope_hint: In function ‘check_open_handle’
criu-4.0-build/criu-4.0/include/common/compiler.h:51:41: note: in definition of macro ‘unlikely’
criu-4.0-build/criu-4.0/include/common/err.h:31:16: note: in expansion of macro ‘IS_ERR_VALUE’
criu-4.0-build/criu-4.0/criu/fsnotify.c: scope_hint: In function ‘check_open_handle’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
criu-4.0-build/criu-4.0/criu/img-streamer.c: scope_hint: In function ‘establish_streamer_file_pipe’
criu-4.0-build/criu-4.0/criu/img-streamer.c:183:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
criu-4.0-build/criu-4.0/criu/img-streamer.c:183:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
Error: CPPCHECK_WARNING (CWE-476): [#def27]
criu-4.0-build/criu-4.0/criu/include/image.h:146: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
criu-4.0-build/criu-4.0/criu/include/log.h:49:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(kdat_file, 0)’
criu-4.0-build/criu-4.0/criu/include/log.h:61:29: note: in expansion of macro ‘pr_err’
criu-4.0-build/criu-4.0/criu/kerndat.c:1237:17: note: in expansion of macro ‘pr_perror’
criu-4.0-build/criu-4.0/criu/kerndat.c:10: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/log.h:61:29: note: in expansion of macro ‘pr_err’
criu-4.0-build/criu-4.0/criu/kerndat.c:1237:17: note: in expansion of macro ‘pr_perror’
criu-4.0-build/criu-4.0/criu/include/log.h:61:29: note: in expansion of macro ‘pr_err’
criu-4.0-build/criu-4.0/criu/kerndat.c:1237:17: note: in expansion of macro ‘pr_perror’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
criu-4.0-build/criu-4.0/criu/mem.c: scope_hint: In function ‘premap_private_vma’
criu-4.0-build/criu-4.0/criu/include/log.h:49:26: warning[-Wanalyzer-malloc-leak]: leak of ‘___p’
criu-4.0-build/criu-4.0/criu/include/log.h:61:29: note: in expansion of macro ‘pr_err’
criu-4.0-build/criu-4.0/criu/mem.c:927:25: note: in expansion of macro ‘pr_perror’
criu-4.0-build/criu-4.0/criu/include/cr_options.h:7: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/mem.c:1028:9: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:2: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/pstree.h:7: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/mem.c:23: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/mem.c:875:28: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:21:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/mem.c:875:28: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:21:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/mem.c:875:28: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/criu/mem.c: scope_hint: In function ‘premap_private_vma’
criu-4.0-build/criu-4.0/criu/mem.c:4: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/log.h:61:29: note: in expansion of macro ‘pr_err’
criu-4.0-build/criu-4.0/criu/mem.c:927:25: note: in expansion of macro ‘pr_perror’
criu-4.0-build/criu-4.0/criu/include/log.h:61:29: note: in expansion of macro ‘pr_err’
criu-4.0-build/criu-4.0/criu/mem.c:927:25: note: in expansion of macro ‘pr_perror’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
criu-4.0-build/criu-4.0/criu/kerndat.c: scope_hint: In function ‘kerndat_try_load_cache’
criu-4.0-build/criu-4.0/criu/kerndat.c:1226:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(kdat_file, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
criu-4.0-build/criu-4.0/criu/kerndat.c:1235:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(kdat_file, 0)’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
criu-4.0-build/criu-4.0/criu/net.c: scope_hint: In function ‘prep_ns_sockets’
criu-4.0-build/criu-4.0/criu/net.c:3398:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-476): [#def33]
criu-4.0-build/criu-4.0/criu/page-pipe.c:41: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def34]
criu-4.0-build/criu-4.0/criu/page-pipe.c:242: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def35]
criu-4.0-build/criu-4.0/criu/page-pipe.c:252: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def36]
criu-4.0-build/criu-4.0/criu/page-pipe.c:270: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def37]
criu-4.0-build/criu-4.0/criu/page-pipe.c:278: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def38]
criu-4.0-build/criu-4.0/criu/page-pipe.c:295: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: GCC_ANALYZER_WARNING (CWE-457): [#def39]
criu-4.0-build/criu-4.0/criu/pie/restorer.c: scope_hint: In function ‘timerfd_arm’
criu-4.0-build/criu-4.0/criu/pie/restorer.c:1204:61: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ts.tv_sec’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def40]
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c: scope_hint: In function ‘parse_elf_phdr’
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c:125:28: warning[-Wanalyzer-deref-before-check]: check of ‘addr’ for NULL after already dereferencing it
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c: scope_hint: In function ‘parse_elf_phdr’
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c: scope_hint: In function ‘parse_elf_phdr’
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c: scope_hint: In function ‘parse_elf_phdr’
Error: GCC_ANALYZER_WARNING (CWE-465): [#def41]
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c:132:28: warning[-Wanalyzer-deref-before-check]: check of ‘addr’ for NULL after already dereferencing it
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c: scope_hint: In function ‘parse_elf_phdr’
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c: scope_hint: In function ‘parse_elf_phdr’
criu-4.0-build/criu-4.0/criu/pie/util-vdso.c: scope_hint: In function ‘parse_elf_phdr’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
criu-4.0-build/criu-4.0/criu/pipes.c:294:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
criu-4.0-build/criu-4.0/criu/pipes.c:157:17: note: in expansion of macro ‘pr_info’
criu-4.0-build/criu-4.0/criu/pipes.c:312:9: note: in expansion of macro ‘list_for_each_entry’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
criu-4.0-build/criu-4.0/criu/pipes.c: scope_hint: In function ‘open_pipe’
criu-4.0-build/criu-4.0/criu/pipes.c:294:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
criu-4.0-build/criu-4.0/criu/pipes.c:157:17: note: in expansion of macro ‘pr_info’
criu-4.0-build/criu-4.0/criu/include/crtools.h:6: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/pipes.c:312:9: note: in expansion of macro ‘list_for_each_entry’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def44]
criu-4.0-build/criu-4.0/criu/proc_parse.c: scope_hint: In function ‘parse_posix_timers’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2416:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘tidpid[0]’
criu-4.0-build/criu-4.0/include/common/compiler.h:51:41: note: in definition of macro ‘unlikely’
criu-4.0-build/criu-4.0/include/common/err.h:31:16: note: in expansion of macro ‘IS_ERR_VALUE’
criu-4.0-build/criu-4.0/criu/proc_parse.c: scope_hint: In function ‘parse_posix_timers’
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:2: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/util.h:19: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/proc_parse.c:16: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/xmalloc.h:21:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2391:33: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/include/common/compiler.h:51:41: note: in definition of macro ‘unlikely’
criu-4.0-build/criu-4.0/include/common/err.h:31:16: note: in expansion of macro ‘IS_ERR_VALUE’
criu-4.0-build/criu-4.0/criu/proc_parse.c: scope_hint: In function ‘parse_posix_timers’
criu-4.0-build/criu-4.0/include/common/compiler.h:51:41: note: in definition of macro ‘unlikely’
criu-4.0-build/criu-4.0/include/common/err.h:31:16: note: in expansion of macro ‘IS_ERR_VALUE’
criu-4.0-build/criu-4.0/criu/proc_parse.c: scope_hint: In function ‘parse_posix_timers’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
criu-4.0-build/criu-4.0/criu/proc_parse.c: scope_hint: In function ‘parse_cgroup_file’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2501:16: warning[-Wanalyzer-malloc-leak]: leak of ‘___p’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2545:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2546:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:211:20: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def46]
criu-4.0-build/criu-4.0/criu/proc_parse.c:2556:38: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
criu-4.0-build/criu-4.0/include/common/list.h:23:42: note: in definition of macro ‘LIST_HEAD’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2545:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2546:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:211:20: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2556:38: note: read of 8 bytes from after the end of ‘internal’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def47]
criu-4.0-build/criu-4.0/criu/proc_parse.c:2658:24: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/list.h:23:42: note: in definition of macro ‘LIST_HEAD’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2549:25: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2658:24: note: read of 8 bytes from after the end of ‘internal’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def48]
criu-4.0-build/criu-4.0/criu/proc_parse.c:2658:24: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘c’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2545:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2546:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:211:20: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2660:17: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-126): [#def49]
criu-4.0-build/criu-4.0/criu/proc_parse.c:2659:24: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/list.h:23:42: note: in definition of macro ‘LIST_HEAD’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2549:25: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2659:24: note: read of 8 bytes from after the end of ‘internal’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
criu-4.0-build/criu-4.0/criu/servicefd.c:186:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tmp’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/servicefd.c:158:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/servicefd.c: scope_hint: In function ‘install_service_fd’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
criu-4.0-build/criu-4.0/criu/servicefd.c: scope_hint: In function ‘move_service_fd’
criu-4.0-build/criu-4.0/criu/servicefd.c:236:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/servicefd.c:106:9: note: in expansion of macro ‘BUG_ON’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
criu-4.0-build/criu-4.0/criu/servicefd.c:237:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘ret’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/servicefd.c:106:9: note: in expansion of macro ‘BUG_ON’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-457): [#def53]
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:2: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/util.h:19: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/protobuf.h:8: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/sk-packet.c:19: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/sk-packet.c:213:33: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/sk-packet.c: scope_hint: In function ‘dump_one_packet_fd’
criu-4.0-build/criu-4.0/criu/sk-packet.c:164:9: note: in expansion of macro ‘pr_info’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/sk-packet.c:165:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/sk-packet.c:61:9: note: in expansion of macro ‘pr_debug’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/sk-packet.c:62:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/sk-packet.c:62:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
criu-4.0-build/criu-4.0/criu/sk-packet.c: scope_hint: In function ‘open_socket_map’
criu-4.0-build/criu-4.0/criu/sk-packet.c:343:33: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
criu-4.0-build/criu-4.0/include/common/bug.h:7: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:211:20: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/sk-packet.c:329:9: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/include/files.h:10: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/sk-packet.c:11: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/sk-packet.c:329:9: note: in expansion of macro ‘list_for_each_entry’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-666): [#def55]
criu-4.0-build/criu-4.0/criu/sk-unix.c: scope_hint: In function ‘open_unixsk_standalone’
criu-4.0-build/criu-4.0/criu/sk-unix.c:1931:21: warning[-Wanalyzer-fd-phase-mismatch]: ‘listen’ on file descriptor ‘sk’ in wrong phase
criu-4.0-build/criu-4.0/criu/sk-unix.c:1930:17: note: in expansion of macro ‘pr_info’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
criu-4.0-build/criu-4.0/criu/sk-unix.c: scope_hint: In function ‘collect_one_unixsk’
criu-4.0-build/criu-4.0/criu/sk-unix.c:2135:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘uname’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def57]
criu-4.0-build/criu-4.0/criu/tls.c: scope_hint: In function ‘tls_recv_data_to_fd’
criu-4.0-build/criu-4.0/criu/tls.c:195:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘packet’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
criu-4.0-build/criu-4.0/criu/util.c: scope_hint: In function ‘reopen_fd_as_safe’
criu-4.0-build/criu-4.0/criu/util.c:229:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tmp’
criu-4.0-build/criu-4.0/criu/util.c: scope_hint: In function ‘reopen_fd_as_safe’
criu-4.0-build/criu-4.0/criu/util.c:604:31: note: in expansion of macro ‘DUP_SAFE’
criu-4.0-build/criu-4.0/criu/util.c:604:31: note: in expansion of macro ‘DUP_SAFE’
criu-4.0-build/criu-4.0/criu/util.c:36: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/util.c:629:21: note: in expansion of macro ‘reopen_fd_as_nocheck’
criu-4.0-build/criu-4.0/criu/util.c:629:21: note: in expansion of macro ‘reopen_fd_as_nocheck’
criu-4.0-build/criu-4.0/criu/util.c:6: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/log.h:61:29: note: in expansion of macro ‘pr_err’
criu-4.0-build/criu-4.0/criu/util.c:226:25: note: in expansion of macro ‘pr_perror’
Error: GCC_ANALYZER_WARNING: [#def59]
criu-4.0-build/criu-4.0/criu/util.c:240:31: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘new_fd’
criu-4.0-build/criu-4.0/criu/util.c: scope_hint: In function ‘reopen_fd_as_safe’
criu-4.0-build/criu-4.0/criu/util.c:604:31: note: in expansion of macro ‘DUP_SAFE’
criu-4.0-build/criu-4.0/criu/util.c:604:31: note: in expansion of macro ‘DUP_SAFE’
criu-4.0-build/criu-4.0/criu/util.c:629:21: note: in expansion of macro ‘reopen_fd_as_nocheck’
criu-4.0-build/criu-4.0/criu/util.c:629:21: note: in expansion of macro ‘reopen_fd_as_nocheck’
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def60]
criu-4.0-build/criu-4.0/criu/util.c: scope_hint: In function ‘cr_system_userns’
criu-4.0-build/criu-4.0/criu/util.c:620:25: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘0’
criu-4.0-build/criu-4.0/criu/util.c: scope_hint: In function ‘cr_system_userns’
criu-4.0-build/criu-4.0/criu/util.c:604:31: note: in expansion of macro ‘DUP_SAFE’
criu-4.0-build/criu-4.0/criu/util.c:604:31: note: in expansion of macro ‘DUP_SAFE’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
criu-4.0-build/criu-4.0/criu/util.c:1744:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-775): [#def62]
criu-4.0-build/criu-4.0/criu/util.c: scope_hint: In function ‘is_iptables_nft’
criu-4.0-build/criu-4.0/criu/util.c:1744:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
criu-4.0-build/criu-4.0/criu/include/util.h:20: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/proc_parse.c: scope_hint: In function ‘parse_threads’
criu-4.0-build/criu-4.0/include/common/bug.h:23:20: warning[-Wanalyzer-malloc-leak]: leak of ‘___p’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2494:17: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:102:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2462:15: note: in expansion of macro ‘opendir_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2474:31: note: in expansion of macro ‘xrealloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2474:31: note: in expansion of macro ‘xrealloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2474:31: note: in expansion of macro ‘xrealloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:22:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2474:31: note: in expansion of macro ‘xrealloc’
criu-4.0-build/criu-4.0/include/common/bug.h:23:22: note: in definition of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2494:17: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2494:17: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2494:17: note: in expansion of macro ‘BUG_ON’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
criu-4.0-build/criu-4.0/compel/plugins/std/fds.c:11: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/scm-code.c: scope_hint: In function ‘__recv_fds’
criu-4.0-build/criu-4.0/include/common/bug.h:26:57: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/include/common/scm-code.c:106:17: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/include/common/compiler.h:97:36: note: in definition of macro ‘min’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/include/common/scm-code.c:106:17: note: in expansion of macro ‘BUG_ON’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-457): [#def65]
criu-4.0-build/criu-4.0/criu/proc_parse.c: scope_hint: In function ‘put_ctls’
criu-4.0-build/criu-4.0/include/common/compiler.h:79:52: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*n.l.next’
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:234:51: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/list.h:23:42: note: in definition of macro ‘LIST_HEAD’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2549:25: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:234:51: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
criu-4.0-build/criu-4.0/compel/plugins/std/infect.c:5: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/lock.h: scope_hint: In function ‘futex_set_and_wake’
criu-4.0-build/criu-4.0/include/common/lock.h:16:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
criu-4.0-build/criu-4.0/include/common/lock.h:81:9: note: in expansion of macro ‘LOCK_BUG_ON’
criu-4.0-build/criu-4.0/include/common/lock.h:81:9: note: in expansion of macro ‘LOCK_BUG_ON’
criu-4.0-build/criu-4.0/include/common/lock.h:81:9: note: in expansion of macro ‘LOCK_BUG_ON’
criu-4.0-build/criu-4.0/include/common/lock.h:81:9: note: in expansion of macro ‘LOCK_BUG_ON’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: CPPCHECK_WARNING (CWE-476): [#def67]
criu-4.0-build/criu-4.0/include/common/lock.h:81: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def68]
criu-4.0-build/criu-4.0/include/common/lock.h:87: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def69]
criu-4.0-build/criu-4.0/include/common/lock.h:101: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def70]
criu-4.0-build/criu-4.0/include/common/lock.h:108: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def71]
criu-4.0-build/criu-4.0/include/common/lock.h:140: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def72]
criu-4.0-build/criu-4.0/include/common/lock.h:161: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: CPPCHECK_WARNING (CWE-476): [#def73]
criu-4.0-build/criu-4.0/include/common/lock.h:169: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
criu-4.0-build/criu-4.0/include/common/scm-code.c:13:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cmsg’
criu-4.0-build/criu-4.0/include/common/scm-code.c: scope_hint: In function ‘send_fds’
criu-4.0-build/criu-4.0/compel/plugins/include/uapi/std/infect.h:4: included_from: Included from here.
criu-4.0-build/criu-4.0/compel/plugins/include/uapi/std.h:7: included_from: Included from here.
criu-4.0-build/criu-4.0/compel/plugins/std/fds.c:4: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/compiler.h:97:36: note: in definition of macro ‘min’
Error: CPPCHECK_WARNING (CWE-476): [#def75]
criu-4.0-build/criu-4.0/include/common/scm-code.c:106: error[nullPointer]: Null pointer dereference: (volatile unsigned long*)NULL
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:36: warning[-Wanalyzer-malloc-leak]: leak of ‘___p’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2545:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2546:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:211:20: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def77]
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct eventpoll_dinfo)*((struct list_head *)dinfo)).fe’
criu-4.0-build/criu-4.0/criu/eventpoll.c:115:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/include/imgset.h:20:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/eventpoll.c:115:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/criu/eventpoll.c:178:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:115:9: note: in expansion of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def78]
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct eventpoll_dinfo)*((struct list_head *)dinfo)).toff’
criu-4.0-build/criu-4.0/criu/eventpoll.c:118:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/include/imgset.h:20:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/eventpoll.c:118:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/criu/eventpoll.c:178:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:118:9: note: in expansion of macro ‘xfree’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-415): [#def79]
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*((struct eventpoll_dinfo)*((struct list_head *)dinfo)).e.tfd’
criu-4.0-build/criu-4.0/criu/eventpoll.c:116:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/bug.h:39:27: note: in expansion of macro ‘BUG_ON_HANDLER’
criu-4.0-build/criu-4.0/criu/include/imgset.h:20:9: note: in expansion of macro ‘BUG_ON’
criu-4.0-build/criu-4.0/criu/eventpoll.c:116:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:130:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/criu/eventpoll.c:178:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/eventpoll.c:116:9: note: in expansion of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def80]
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*c.name’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2658:17: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2545:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2545:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2545:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2546:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:211:20: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2658:17: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2658:17: note: in expansion of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def81]
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*c.path’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2659:17: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2545:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2546:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2546:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2546:29: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/list.h:197:39: note: in expansion of macro ‘container_of’
criu-4.0-build/criu-4.0/include/common/list.h:211:20: note: in expansion of macro ‘list_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2555:17: note: in expansion of macro ‘list_for_each_entry’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2659:17: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2659:17: note: in expansion of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:2: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/page-pipe.c: scope_hint: In function ‘ppb_alloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor
criu-4.0-build/criu-4.0/criu/page-pipe.c:126:25: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/page-pipe.c:104:15: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/page-pipe.c:126:25: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/page-pipe.c:126:25: note: in expansion of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-590): [#def83]
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘c’ which points to memory on the stack
criu-4.0-build/criu-4.0/criu/proc_parse.c:2660:17: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/list.h:23:42: note: in definition of macro ‘LIST_HEAD’
criu-4.0-build/criu-4.0/include/common/list.h:23:42: note: in definition of macro ‘LIST_HEAD’
criu-4.0-build/criu-4.0/criu/include/util.h:92:34: note: in expansion of macro ‘__open_proc’
criu-4.0-build/criu-4.0/criu/include/util.h:118:28: note: in expansion of macro ‘open_proc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2579:13: note: in expansion of macro ‘fopen_proc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2505:23: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2549:25: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2657:9: note: in expansion of macro ‘list_for_each_entry_safe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:23: note: in definition of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/proc_parse.c:2660:17: note: in expansion of macro ‘xfree’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
criu-4.0-build/criu-4.0/criu/include/xmalloc.h:2: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/plugin.c:11: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/plugin.c: scope_hint: In function ‘cr_lib_load’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
criu-4.0-build/criu-4.0/criu/plugin.c:175:17: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:21:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:29:13: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:33:19: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:33:19: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:33:19: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:19:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:33:19: note: in expansion of macro ‘xstrdup’
criu-4.0-build/criu-4.0/criu/plugin.c:50:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:51:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:51:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:52:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:52:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:53:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:53:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:54:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:54:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:55:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:55:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:56:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:56:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:57:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:57:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:58:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:58:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:59:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:59:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:60:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:60:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:61:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/criu/plugin.c:61:9: note: in expansion of macro ‘__assign_hook’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:133:16: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:21:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:133:16: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/criu/include/criu-log.h:23: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/servicefd.h:10: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/image.h:7: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/include/cr_options.h:9: included_from: Included from here.
criu-4.0-build/criu-4.0/criu/plugin.c:9: included_from: Included from here.
criu-4.0-build/criu-4.0/include/common/xmalloc.h:15:25: note: in expansion of macro ‘pr_err’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:21:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:133:16: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/criu/plugin.c:175:17: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/criu/plugin.c:175:17: note: in expansion of macro ‘xfree’
cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
criu-4.0-build/criu-4.0/criu/page-pipe.c: scope_hint: In function ‘create_page_pipe’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:24:18: warning[-Wanalyzer-malloc-leak]: leak of ‘___p’
criu-4.0-build/criu-4.0/criu/page-pipe.c:219:9: note: in expansion of macro ‘xfree’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:21:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/page-pipe.c:193:14: note: in expansion of macro ‘xzalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/page-pipe.c:203:24: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:13:30: note: in definition of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/page-pipe.c:203:24: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/page-pipe.c:203:24: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/include/common/xmalloc.h:20:27: note: in expansion of macro ‘__xalloc’
criu-4.0-build/criu-4.0/criu/page-pipe.c:203:24: note: in expansion of macro ‘xmalloc’
criu-4.0-build/criu-4.0/criu/page-pipe.c:219:9: note: in expansion of macro ‘xfree’
Scan Properties
analyzer-version-clippy | 1.82.0 |
analyzer-version-cppcheck | 2.16.0 |
analyzer-version-gcc | 14.2.1 |
analyzer-version-gcc-analyzer | 15.0.0 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-194.us-west-2.compute.internal |
mock-config | fedora-rawhide-gcc-latest-x86_64 |
project-name | criu-4.0-2.fc42 |
store-results-to | /tmp/tmpgilw1dzl/criu-4.0-2.fc42.tar.xz |
time-created | 2024-11-12 23:26:13 |
time-finished | 2024-11-12 23:30:45 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpgilw1dzl/criu-4.0-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpgilw1dzl/criu-4.0-2.fc42.src.rpm' |
tool-version | csmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9 |