systemd-258-1.fc43

List of Findings

Error: COMPILER_WARNING: [#def1] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:24:32: error[error]: ‘BALLOON_KVM_MAGIC’ undeclared (first use in this function)
#   22|           case (statfs_f_type_t) AUTOFS_SUPER_MAGIC:
#   23|                   return "autofs";
#   24|->         case (statfs_f_type_t) BALLOON_KVM_MAGIC:
#   25|                   return "balloon-kvm";
#   26|           case (statfs_f_type_t) BCACHEFS_SUPER_MAGIC:

Error: COMPILER_WARNING: [#def2] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:51:32: error[error]: ‘CONFIGFS_MAGIC’ undeclared (first use in this function); did you mean ‘ZONEFS_MAGIC’?
#   49|           case (statfs_f_type_t) CODA_SUPER_MAGIC:
#   50|                   return "coda";
#   51|->         case (statfs_f_type_t) CONFIGFS_MAGIC:
#   52|                   return "configfs";
#   53|           case (statfs_f_type_t) CRAMFS_MAGIC:

Error: COMPILER_WARNING: [#def3] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:81:32: error[error]: ‘FUSE_CTL_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘FUSE_SUPER_MAGIC’?
#   79|           case (statfs_f_type_t) FUSE_SUPER_MAGIC:
#   80|                   return "fuse";
#   81|->         case (statfs_f_type_t) FUSE_CTL_SUPER_MAGIC:
#   82|                   return "fusectl";
#   83|           case (statfs_f_type_t) GFS2_MAGIC:

Error: COMPILER_WARNING: [#def4] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:83:32: error[error]: ‘GFS2_MAGIC’ undeclared (first use in this function); did you mean ‘AAFS_MAGIC’?
#   81|           case (statfs_f_type_t) FUSE_CTL_SUPER_MAGIC:
#   82|                   return "fusectl";
#   83|->         case (statfs_f_type_t) GFS2_MAGIC:
#   84|                   return "gfs2";
#   85|           case (statfs_f_type_t) HOSTFS_SUPER_MAGIC:

Error: COMPILER_WARNING: [#def5] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:101:32: error[error]: ‘MQUEUE_MAGIC’ undeclared (first use in this function)
#   99|           case (statfs_f_type_t) MINIX3_SUPER_MAGIC:
#  100|                   return "minix";
#  101|->         case (statfs_f_type_t) MQUEUE_MAGIC:
#  102|                   return "mqueue";
#  103|           case (statfs_f_type_t) NCP_SUPER_MAGIC:

Error: COMPILER_WARNING: [#def6] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:111:32: error[error]: ‘NTFS_SB_MAGIC’ undeclared (first use in this function); did you mean ‘AFS_FS_MAGIC’?
#  109|           case (statfs_f_type_t) NSFS_MAGIC:
#  110|                   return "nsfs";
#  111|->         case (statfs_f_type_t) NTFS_SB_MAGIC:
#  112|                   return "ntfs";
#  113|           case (statfs_f_type_t) NTFS3_SUPER_MAGIC:

Error: COMPILER_WARNING: [#def7] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:113:32: error[error]: ‘NTFS3_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘NFS_SUPER_MAGIC’?
#  111|           case (statfs_f_type_t) NTFS_SB_MAGIC:
#  112|                   return "ntfs";
#  113|->         case (statfs_f_type_t) NTFS3_SUPER_MAGIC:
#  114|                   return "ntfs3";
#  115|           case (statfs_f_type_t) OCFS2_SUPER_MAGIC:

Error: COMPILER_WARNING: [#def8] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:119:32: error[error]: ‘ORANGEFS_DEVREQ_MAGIC’ undeclared (first use in this function)
#  117|           case (statfs_f_type_t) OPENPROM_SUPER_MAGIC:
#  118|                   return "openpromfs";
#  119|->         case (statfs_f_type_t) ORANGEFS_DEVREQ_MAGIC:
#  120|                   return "orangefs";
#  121|           case (statfs_f_type_t) OVERLAYFS_SUPER_MAGIC:

Error: COMPILER_WARNING: [#def9] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:127:32: error[error]: ‘PPC_CMM_MAGIC’ undeclared (first use in this function)
#  125|           case (statfs_f_type_t) PIPEFS_MAGIC:
#  126|                   return "pipefs";
#  127|->         case (statfs_f_type_t) PPC_CMM_MAGIC:
#  128|                   return "ppc-cmm";
#  129|           case (statfs_f_type_t) PROC_SUPER_MAGIC:

Error: COMPILER_WARNING: [#def10] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:143:32: error[error]: ‘RPC_PIPEFS_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘CIFS_SUPER_MAGIC’?
#  141|           case (statfs_f_type_t) REISERFS_SUPER_MAGIC:
#  142|                   return "reiserfs";
#  143|->         case (statfs_f_type_t) RPC_PIPEFS_SUPER_MAGIC:
#  144|                   return "rpc_pipefs";
#  145|           case (statfs_f_type_t) SECRETMEM_MAGIC:

Error: COMPILER_WARNING: [#def11] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:151:32: error[error]: ‘SHIFTFS_MAGIC’ undeclared (first use in this function); did you mean ‘BPF_FS_MAGIC’?
#  149|           case (statfs_f_type_t) SELINUX_MAGIC:
#  150|                   return "selinuxfs";
#  151|->         case (statfs_f_type_t) SHIFTFS_MAGIC:
#  152|                   return "shiftfs";
#  153|           case (statfs_f_type_t) SMACK_MAGIC:

Error: COMPILER_WARNING: [#def12] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:171:32: error[error]: ‘VBOXSF_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘XFS_SUPER_MAGIC’?
#  169|           case (statfs_f_type_t) USBDEVICE_SUPER_MAGIC:
#  170|                   return "usbdevfs";
#  171|->         case (statfs_f_type_t) VBOXSF_SUPER_MAGIC:
#  172|                   return "vboxsf";
#  173|           case (statfs_f_type_t) MSDOS_SUPER_MAGIC:

Error: COMPILER_WARNING: [#def13] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:181:32: error[error]: ‘Z3FOLD_MAGIC’ undeclared (first use in this function)
#  179|           case (statfs_f_type_t) XFS_SUPER_MAGIC:
#  180|                   return "xfs";
#  181|->         case (statfs_f_type_t) Z3FOLD_MAGIC:
#  182|                   return "z3fold";
#  183|           case (statfs_f_type_t) ZONEFS_MAGIC:

Error: COMPILER_WARNING: [#def14] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:185:32: error[error]: ‘ZSMALLOC_MAGIC’ undeclared (first use in this function); did you mean ‘SMACK_MAGIC’?
#  183|           case (statfs_f_type_t) ZONEFS_MAGIC:
#  184|                   return "zonefs";
#  185|->         case (statfs_f_type_t) ZSMALLOC_MAGIC:
#  186|                   return "zsmalloc";
#  187|           }

Error: COMPILER_WARNING: [#def15] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:406:24: error[error]: ‘MQUEUE_MAGIC’ undeclared (first use in this function)
#  404|                       || F_TYPE_EQUAL(st->f_type, CGROUP_SUPER_MAGIC)
#  405|                       || F_TYPE_EQUAL(st->f_type, DEVPTS_SUPER_MAGIC)
#  406|->                     || F_TYPE_EQUAL(st->f_type, MQUEUE_MAGIC)
#  407|                       || F_TYPE_EQUAL(st->f_type, PROC_SUPER_MAGIC)
#  408|                       || F_TYPE_EQUAL(st->f_type, SYSFS_MAGIC)

Error: COMPILER_WARNING: [#def16] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:420:24: error[error]: ‘CONFIGFS_MAGIC’ undeclared (first use in this function); did you mean ‘ZONEFS_MAGIC’?
#  418|           case FILESYSTEM_SET_AUXILIARY_API:
#  419|                   return F_TYPE_EQUAL(st->f_type, BINFMTFS_MAGIC)
#  420|->                     || F_TYPE_EQUAL(st->f_type, CONFIGFS_MAGIC)
#  421|                       || F_TYPE_EQUAL(st->f_type, EFIVARFS_MAGIC)
#  422|                       || F_TYPE_EQUAL(st->f_type, FUSE_CTL_SUPER_MAGIC)

Error: COMPILER_WARNING: [#def17] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:422:24: error[error]: ‘FUSE_CTL_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘FUSE_SUPER_MAGIC’?
#  420|                       || F_TYPE_EQUAL(st->f_type, CONFIGFS_MAGIC)
#  421|                       || F_TYPE_EQUAL(st->f_type, EFIVARFS_MAGIC)
#  422|->                     || F_TYPE_EQUAL(st->f_type, FUSE_CTL_SUPER_MAGIC)
#  423|                       || F_TYPE_EQUAL(st->f_type, HUGETLBFS_MAGIC)
#  424|                       || F_TYPE_EQUAL(st->f_type, RPC_PIPEFS_SUPER_MAGIC)

Error: COMPILER_WARNING: [#def18] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:424:24: error[error]: ‘RPC_PIPEFS_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘CIFS_SUPER_MAGIC’?
#  422|                       || F_TYPE_EQUAL(st->f_type, FUSE_CTL_SUPER_MAGIC)
#  423|                       || F_TYPE_EQUAL(st->f_type, HUGETLBFS_MAGIC)
#  424|->                     || F_TYPE_EQUAL(st->f_type, RPC_PIPEFS_SUPER_MAGIC)
#  425|                       || F_TYPE_EQUAL(st->f_type, SECURITYFS_MAGIC);
#  426|           case FILESYSTEM_SET_COMMON_BLOCK:

Error: COMPILER_WARNING: [#def19] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:434:24: error[error]: ‘NTFS3_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘NFS_SUPER_MAGIC’?
#  432|                       || F_TYPE_EQUAL(st->f_type, ISOFS_SUPER_MAGIC)
#  433|                       || F_TYPE_EQUAL(st->f_type, MSDOS_SUPER_MAGIC)
#  434|->                     || F_TYPE_EQUAL(st->f_type, NTFS3_SUPER_MAGIC)
#  435|                       || F_TYPE_EQUAL(st->f_type, SQUASHFS_MAGIC)
#  436|                       || F_TYPE_EQUAL(st->f_type, UDF_SUPER_MAGIC)

Error: COMPILER_WARNING: [#def20] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:451:24: error[error]: ‘GFS2_MAGIC’ undeclared (first use in this function); did you mean ‘AAFS_MAGIC’?
#  449|                       || F_TYPE_EQUAL(st->f_type, CEPH_SUPER_MAGIC)
#  450|                       || F_TYPE_EQUAL(st->f_type, CIFS_SUPER_MAGIC)
#  451|->                     || F_TYPE_EQUAL(st->f_type, GFS2_MAGIC)
#  452|                       || F_TYPE_EQUAL(st->f_type, NCP_SUPER_MAGIC)
#  453|                       || F_TYPE_EQUAL(st->f_type, NFS_SUPER_MAGIC)

Error: COMPILER_WARNING: [#def21] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:455:24: error[error]: ‘ORANGEFS_DEVREQ_MAGIC’ undeclared (first use in this function)
#  453|                       || F_TYPE_EQUAL(st->f_type, NFS_SUPER_MAGIC)
#  454|                       || F_TYPE_EQUAL(st->f_type, OCFS2_SUPER_MAGIC)
#  455|->                     || F_TYPE_EQUAL(st->f_type, ORANGEFS_DEVREQ_MAGIC)
#  456|                       || F_TYPE_EQUAL(st->f_type, SMB2_SUPER_MAGIC)
#  457|                       || F_TYPE_EQUAL(st->f_type, SMB_SUPER_MAGIC);

Error: COMPILER_WARNING: [#def22] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:478:24: error[error]: ‘BALLOON_KVM_MAGIC’ undeclared (first use in this function)
#  476|                       || F_TYPE_EQUAL(st->f_type, ANON_INODE_FS_MAGIC)
#  477|                       || F_TYPE_EQUAL(st->f_type, AUTOFS_SUPER_MAGIC)
#  478|->                     || F_TYPE_EQUAL(st->f_type, BALLOON_KVM_MAGIC)
#  479|                       || F_TYPE_EQUAL(st->f_type, BCACHEFS_SUPER_MAGIC)
#  480|                       || F_TYPE_EQUAL(st->f_type, BDEVFS_MAGIC)

Error: COMPILER_WARNING: [#def23] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:527:24: error[error]: ‘NTFS_SB_MAGIC’ undeclared (first use in this function); did you mean ‘AFS_FS_MAGIC’?
#  525|                       || F_TYPE_EQUAL(st->f_type, NSFS_MAGIC)
#  526|                       || F_TYPE_EQUAL(st->f_type, NTFS3_SUPER_MAGIC)
#  527|->                     || F_TYPE_EQUAL(st->f_type, NTFS_SB_MAGIC)
#  528|                       || F_TYPE_EQUAL(st->f_type, OCFS2_SUPER_MAGIC)
#  529|                       || F_TYPE_EQUAL(st->f_type, OPENPROM_SUPER_MAGIC)

Error: COMPILER_WARNING: [#def24] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:534:24: error[error]: ‘PPC_CMM_MAGIC’ undeclared (first use in this function)
#  532|                       || F_TYPE_EQUAL(st->f_type, PID_FS_MAGIC)
#  533|                       || F_TYPE_EQUAL(st->f_type, PIPEFS_MAGIC)
#  534|->                     || F_TYPE_EQUAL(st->f_type, PPC_CMM_MAGIC)
#  535|                       || F_TYPE_EQUAL(st->f_type, PROC_SUPER_MAGIC)
#  536|                       || F_TYPE_EQUAL(st->f_type, PSTOREFS_MAGIC)

Error: COMPILER_WARNING: [#def25] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:546:24: error[error]: ‘SHIFTFS_MAGIC’ undeclared (first use in this function); did you mean ‘BPF_FS_MAGIC’?
#  544|                       || F_TYPE_EQUAL(st->f_type, SECURITYFS_MAGIC)
#  545|                       || F_TYPE_EQUAL(st->f_type, SELINUX_MAGIC)
#  546|->                     || F_TYPE_EQUAL(st->f_type, SHIFTFS_MAGIC)
#  547|                       || F_TYPE_EQUAL(st->f_type, SMACK_MAGIC)
#  548|                       || F_TYPE_EQUAL(st->f_type, SMB2_SUPER_MAGIC)

Error: COMPILER_WARNING: [#def26] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:558:24: error[error]: ‘VBOXSF_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘XFS_SUPER_MAGIC’?
#  556|                       || F_TYPE_EQUAL(st->f_type, USBDEVICE_SUPER_MAGIC)
#  557|                       || F_TYPE_EQUAL(st->f_type, V9FS_MAGIC)
#  558|->                     || F_TYPE_EQUAL(st->f_type, VBOXSF_SUPER_MAGIC)
#  559|                       || F_TYPE_EQUAL(st->f_type, XENFS_SUPER_MAGIC)
#  560|                       || F_TYPE_EQUAL(st->f_type, XFS_SUPER_MAGIC)

Error: COMPILER_WARNING: [#def27] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:561:24: error[error]: ‘Z3FOLD_MAGIC’ undeclared (first use in this function)
#  559|                       || F_TYPE_EQUAL(st->f_type, XENFS_SUPER_MAGIC)
#  560|                       || F_TYPE_EQUAL(st->f_type, XFS_SUPER_MAGIC)
#  561|->                     || F_TYPE_EQUAL(st->f_type, Z3FOLD_MAGIC)
#  562|                       || F_TYPE_EQUAL(st->f_type, ZONEFS_MAGIC)
#  563|                       || F_TYPE_EQUAL(st->f_type, ZSMALLOC_MAGIC);

Error: COMPILER_WARNING: [#def28] [important]
systemd-258/redhat-linux-build/src/basic/filesystem-sets.c:563:24: error[error]: ‘ZSMALLOC_MAGIC’ undeclared (first use in this function); did you mean ‘SMACK_MAGIC’?
#  561|                       || F_TYPE_EQUAL(st->f_type, Z3FOLD_MAGIC)
#  562|                       || F_TYPE_EQUAL(st->f_type, ZONEFS_MAGIC)
#  563|->                     || F_TYPE_EQUAL(st->f_type, ZSMALLOC_MAGIC);
#  564|           default: assert_not_reached();
#  565|           }

Error: COMPILER_WARNING: [#def29] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:32:28: error[error]: ‘BALLOON_KVM_MAGIC’ undeclared (first use in this function)
#   30|   anon_inodefs,    {ANON_INODE_FS_MAGIC}
#   31|   autofs,          {AUTOFS_SUPER_MAGIC}
#   32|-> balloon-kvm,     {BALLOON_KVM_MAGIC}
#   33|   bcachefs,        {BCACHEFS_SUPER_MAGIC}
#   34|   bdev,            {BDEVFS_MAGIC}

Error: COMPILER_WARNING: [#def30] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:46:28: error[error]: ‘CONFIGFS_MAGIC’ undeclared (first use in this function); did you mean ‘ZONEFS_MAGIC’?
#   44|   cifs,            {CIFS_SUPER_MAGIC, SMB2_SUPER_MAGIC}
#   45|   coda,            {CODA_SUPER_MAGIC}
#   46|-> configfs,        {CONFIGFS_MAGIC}
#   47|   cramfs,          {CRAMFS_MAGIC}
#   48|   dax,             {DAXFS_MAGIC}

Error: COMPILER_WARNING: [#def31] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:65:28: error[error]: ‘FUSE_CTL_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘FUSE_SUPER_MAGIC’?
#   63|   fuseblk,         {FUSE_SUPER_MAGIC}
#   64|   fuse,            {FUSE_SUPER_MAGIC}
#   65|-> fusectl,         {FUSE_CTL_SUPER_MAGIC}
#   66|   gfs,             {GFS2_MAGIC}
#   67|   gfs2,            {GFS2_MAGIC}

Error: COMPILER_WARNING: [#def32] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:66:28: error[error]: ‘GFS2_MAGIC’ undeclared (first use in this function); did you mean ‘AAFS_MAGIC’?
#   64|   fuse,            {FUSE_SUPER_MAGIC}
#   65|   fusectl,         {FUSE_CTL_SUPER_MAGIC}
#   66|-> gfs,             {GFS2_MAGIC}
#   67|   gfs2,            {GFS2_MAGIC}
#   68|   hostfs,          {HOSTFS_SUPER_MAGIC}

Error: COMPILER_WARNING: [#def33] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:74:28: error[error]: ‘MQUEUE_MAGIC’ undeclared (first use in this function)
#   72|   jffs2,           {JFFS2_SUPER_MAGIC}
#   73|   minix,           {MINIX_SUPER_MAGIC, MINIX_SUPER_MAGIC2, MINIX2_SUPER_MAGIC, MINIX2_SUPER_MAGIC2, MINIX3_SUPER_MAGIC}
#   74|-> mqueue,          {MQUEUE_MAGIC}
#   75|   msdos,           {MSDOS_SUPER_MAGIC}
#   76|   ncp,             {NCP_SUPER_MAGIC}

Error: COMPILER_WARNING: [#def34] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:82:28: error[error]: ‘NTFS_SB_MAGIC’ undeclared (first use in this function); did you mean ‘AFS_FS_MAGIC’?
#   80|   nilfs2,          {NILFS_SUPER_MAGIC}
#   81|   nsfs,            {NSFS_MAGIC}
#   82|-> ntfs,            {NTFS_SB_MAGIC}
#   83|   ntfs3,           {NTFS3_SUPER_MAGIC}
#   84|   ocfs2,           {OCFS2_SUPER_MAGIC}

Error: COMPILER_WARNING: [#def35] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:83:28: error[error]: ‘NTFS3_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘NFS_SUPER_MAGIC’?
#   81|   nsfs,            {NSFS_MAGIC}
#   82|   ntfs,            {NTFS_SB_MAGIC}
#   83|-> ntfs3,           {NTFS3_SUPER_MAGIC}
#   84|   ocfs2,           {OCFS2_SUPER_MAGIC}
#   85|   openpromfs,      {OPENPROM_SUPER_MAGIC}

Error: COMPILER_WARNING: [#def36] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:90:28: error[error]: ‘PPC_CMM_MAGIC’ undeclared (first use in this function)
#   88|   pidfs,           {PID_FS_MAGIC}
#   89|   pipefs,          {PIPEFS_MAGIC}
#   90|-> ppc-cmm,         {PPC_CMM_MAGIC}
#   91|   proc,            {PROC_SUPER_MAGIC}
#   92|   pstore,          {PSTOREFS_MAGIC}

Error: COMPILER_WARNING: [#def37] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:93:28: error[error]: ‘ORANGEFS_DEVREQ_MAGIC’ undeclared (first use in this function)
#   91|   proc,            {PROC_SUPER_MAGIC}
#   92|   pstore,          {PSTOREFS_MAGIC}
#   93|-> pvfs2,           {ORANGEFS_DEVREQ_MAGIC}
#   94|   qnx4,            {QNX4_SUPER_MAGIC}
#   95|   qnx6,            {QNX6_SUPER_MAGIC}

Error: COMPILER_WARNING: [#def38] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:99:28: error[error]: ‘RPC_PIPEFS_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘CIFS_SUPER_MAGIC’?
#   97|   resctrl,         {RDTGROUP_SUPER_MAGIC}
#   98|   reiserfs,        {REISERFS_SUPER_MAGIC}
#   99|-> rpc_pipefs,      {RPC_PIPEFS_SUPER_MAGIC}
#  100|   secretmem,       {SECRETMEM_MAGIC}
#  101|   securityfs,      {SECURITYFS_MAGIC}

Error: COMPILER_WARNING: [#def39] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:103:28: error[error]: ‘SHIFTFS_MAGIC’ undeclared (first use in this function); did you mean ‘BPF_FS_MAGIC’?
#  101|   securityfs,      {SECURITYFS_MAGIC}
#  102|   selinuxfs,       {SELINUX_MAGIC}
#  103|-> shiftfs,         {SHIFTFS_MAGIC}
#  104|   smackfs,         {SMACK_MAGIC}
#  105|   smb3,            {CIFS_SUPER_MAGIC}

Error: COMPILER_WARNING: [#def40] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:114:28: error[error]: ‘VBOXSF_SUPER_MAGIC’ undeclared (first use in this function); did you mean ‘XFS_SUPER_MAGIC’?
#  112|   udf,             {UDF_SUPER_MAGIC}
#  113|   usbdevfs,        {USBDEVICE_SUPER_MAGIC}
#  114|-> vboxsf,          {VBOXSF_SUPER_MAGIC}
#  115|   vfat,            {MSDOS_SUPER_MAGIC}
#  116|   v9fs,            {V9FS_MAGIC}

Error: COMPILER_WARNING: [#def41] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:119:28: error[error]: ‘Z3FOLD_MAGIC’ undeclared (first use in this function)
#  117|   xenfs,           {XENFS_SUPER_MAGIC}
#  118|   xfs,             {XFS_SUPER_MAGIC}
#  119|-> z3fold,          {Z3FOLD_MAGIC}
#  120|   zonefs,          {ZONEFS_MAGIC}
#  121|   zsmalloc,        {ZSMALLOC_MAGIC}

Error: COMPILER_WARNING: [#def42] [important]
systemd-258/redhat-linux-build/src/basic/filesystems-gperf.gperf:121:28: error[error]: ‘ZSMALLOC_MAGIC’ undeclared (first use in this function); did you mean ‘SMACK_MAGIC’?
#  119|   z3fold,          {Z3FOLD_MAGIC}
#  120|   zonefs,          {ZONEFS_MAGIC}
#  121|-> zsmalloc,        {ZSMALLOC_MAGIC}

Error: COMPILER_WARNING: [#def43] [important]
systemd-258/redhat-linux-build/src/libsystemd/sd-journal/audit_type-to-name.inc:25:14: error[error]: ‘AUDIT_SERVICE_START’ undeclared (first use in this function)
#   23|           case AUDIT_USER_AVC: return "USER_AVC";
#   24|           case AUDIT_USER_TTY: return "USER_TTY";
#   25|->         case AUDIT_SERVICE_START: return "SERVICE_START";
#   26|           case AUDIT_SERVICE_STOP: return "SERVICE_STOP";
#   27|           case AUDIT_DAEMON_START: return "DAEMON_START";

Error: COMPILER_WARNING: [#def44] [important]
systemd-258/redhat-linux-build/src/libsystemd/sd-journal/audit_type-to-name.inc:26:14: error[error]: ‘AUDIT_SERVICE_STOP’ undeclared (first use in this function)
#   24|           case AUDIT_USER_TTY: return "USER_TTY";
#   25|           case AUDIT_SERVICE_START: return "SERVICE_START";
#   26|->         case AUDIT_SERVICE_STOP: return "SERVICE_STOP";
#   27|           case AUDIT_DAEMON_START: return "DAEMON_START";
#   28|           case AUDIT_DAEMON_END: return "DAEMON_END";

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*obj.skeleton’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:53:1: enter_function: entry to ‘sysctl_monitor_bpf__open_opts’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:59:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: call_function: calling ‘sysctl_monitor_bpf__create_skeleton’ from ‘sysctl_monitor_bpf__open_opts’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: return_function: returning to ‘sysctl_monitor_bpf__open_opts’ from ‘sysctl_monitor_bpf__create_skeleton’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:65:12: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: danger: ‘*obj.skeleton’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#   66|   		goto err_out;
#   67|   
#   68|-> 	err = bpf_object__open_skeleton(obj->skeleton, opts);
#   69|   	if (err)
#   70|   		goto err_out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:53:1: enter_function: entry to ‘sysctl_monitor_bpf__open_opts’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:59:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: call_function: calling ‘sysctl_monitor_bpf__create_skeleton’ from ‘sysctl_monitor_bpf__open_opts’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: return_function: returning to ‘sysctl_monitor_bpf__open_opts’ from ‘sysctl_monitor_bpf__create_skeleton’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:65:12: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#   66|   		goto err_out;
#   67|   
#   68|-> 	err = bpf_object__open_skeleton(obj->skeleton, opts);
#   69|   	if (err)
#   70|   		goto err_out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:53:1: enter_function: entry to ‘sysctl_monitor_bpf__open_opts’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:58:44: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:59:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: call_function: calling ‘sysctl_monitor_bpf__create_skeleton’ from ‘sysctl_monitor_bpf__open_opts’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: return_function: returning to ‘sysctl_monitor_bpf__open_opts’ from ‘sysctl_monitor_bpf__create_skeleton’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:65:12: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:68:15: danger: ‘obj’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#   66|   		goto err_out;
#   67|   
#   68|-> 	err = bpf_object__open_skeleton(obj->skeleton, opts);
#   69|   	if (err)
#   70|   		goto err_out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:180:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:131:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:136:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:143:46: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:145:12: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:151:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:166:12: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:168:17: branch_true: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:180:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  178|   	return 0;
#  179|   err:
#  180|-> 	bpf_object__destroy_skeleton(s);
#  181|   	return err;
#  182|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:180:9: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:53:1: enter_function: entry to ‘sysctl_monitor_bpf__open_opts’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:58:44: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:59:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:64:15: call_function: calling ‘sysctl_monitor_bpf__create_skeleton’ from ‘sysctl_monitor_bpf__open_opts’
#  178|   	return 0;
#  179|   err:
#  180|-> 	bpf_object__destroy_skeleton(s);
#  181|   	return err;
#  182|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:180:9: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:130:43: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:131:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:136:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:145:12: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:147:17: branch_true: ...to here
systemd-258/redhat-linux-build/src/network/bpf/sysctl-monitor/sysctl-monitor.skel.h:180:9: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  178|   	return 0;
#  179|   err:
#  180|-> 	bpf_object__destroy_skeleton(s);
#  181|   	return err;
#  182|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: warning[-Wanalyzer-malloc-leak]: leak of ‘*obj.skeleton’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:62:1: enter_function: entry to ‘userns_restrict_bpf__open_opts’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:68:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: call_function: calling ‘userns_restrict_bpf__create_skeleton’ from ‘userns_restrict_bpf__open_opts’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: return_function: returning to ‘userns_restrict_bpf__open_opts’ from ‘userns_restrict_bpf__create_skeleton’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:74:12: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: danger: ‘*obj.skeleton’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#   75|   		goto err_out;
#   76|   
#   77|-> 	err = bpf_object__open_skeleton(obj->skeleton, opts);
#   78|   	if (err)
#   79|   		goto err_out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:62:1: enter_function: entry to ‘userns_restrict_bpf__open_opts’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:68:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: call_function: calling ‘userns_restrict_bpf__create_skeleton’ from ‘userns_restrict_bpf__open_opts’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: return_function: returning to ‘userns_restrict_bpf__open_opts’ from ‘userns_restrict_bpf__create_skeleton’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:74:12: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#   75|   		goto err_out;
#   76|   
#   77|-> 	err = bpf_object__open_skeleton(obj->skeleton, opts);
#   78|   	if (err)
#   79|   		goto err_out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:62:1: enter_function: entry to ‘userns_restrict_bpf__open_opts’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:67:45: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:68:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: call_function: calling ‘userns_restrict_bpf__create_skeleton’ from ‘userns_restrict_bpf__open_opts’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: return_function: returning to ‘userns_restrict_bpf__open_opts’ from ‘userns_restrict_bpf__create_skeleton’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:74:12: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:77:15: danger: ‘obj’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#   75|   		goto err_out;
#   76|   
#   77|-> 	err = bpf_object__open_skeleton(obj->skeleton, opts);
#   78|   	if (err)
#   79|   		goto err_out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:205:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:140:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:145:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:152:46: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:154:12: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:160:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:171:12: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:173:17: branch_true: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:205:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  203|   	return 0;
#  204|   err:
#  205|-> 	bpf_object__destroy_skeleton(s);
#  206|   	return err;
#  207|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:205:9: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:62:1: enter_function: entry to ‘userns_restrict_bpf__open_opts’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:67:45: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:68:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:73:15: call_function: calling ‘userns_restrict_bpf__create_skeleton’ from ‘userns_restrict_bpf__open_opts’
#  203|   	return 0;
#  204|   err:
#  205|-> 	bpf_object__destroy_skeleton(s);
#  206|   	return err;
#  207|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:205:9: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:139:43: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:140:12: branch_false: following ‘false’ branch (when ‘s’ is non-NULL)...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:145:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:154:12: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:156:17: branch_true: ...to here
systemd-258/redhat-linux-build/src/nsresourced/bpf/userns-restrict/userns-restrict.skel.h:205:9: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  203|   	return 0;
#  204|   err:
#  205|-> 	bpf_object__destroy_skeleton(s);
#  206|   	return err;
#  207|   }

Error: COMPILER_WARNING: [#def57] [important]
systemd-258/redhat-linux-build/src/shared/ip-protocol-from-name.gperf:45:19: error[error]: ‘IPPROTO_AGGFRAG’ undeclared (first use in this function); did you mean ‘IPPROTO_RAW’?
#   43|   COMP, IPPROTO_COMP
#   44|   DCCP, IPPROTO_DCCP
#   45|-> AGGFRAG, IPPROTO_AGGFRAG
#   46|   ETHERNET, IPPROTO_ETHERNET
#   47|   UDPLITE, IPPROTO_UDPLITE

Error: COMPILER_WARNING: [#def58] [important]
systemd-258/redhat-linux-build/src/shared/ip-protocol-to-name.inc:35:10: error[error]: array index in initializer not of integer type
#   33|           [IPPROTO_COMP] = "comp",
#   34|           [IPPROTO_DCCP] = "dccp",
#   35|->         [IPPROTO_AGGFRAG] = "aggfrag",
#   36|           [IPPROTO_ETHERNET] = "ethernet",
#   37|           [IPPROTO_UDPLITE] = "udplite",

Error: COMPILER_WARNING: [#def59] [important]
systemd-258/redhat-linux-build/src/shared/ip-protocol-to-name.inc:35:10: error[error]: ‘IPPROTO_AGGFRAG’ undeclared here (not in a function); did you mean ‘IPPROTO_RAW’?
#   33|           [IPPROTO_COMP] = "comp",
#   34|           [IPPROTO_DCCP] = "dccp",
#   35|->         [IPPROTO_AGGFRAG] = "aggfrag",
#   36|           [IPPROTO_ETHERNET] = "ethernet",
#   37|           [IPPROTO_UDPLITE] = "udplite",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:754:17: call_function: inlined call to ‘ordered_hashmap_free’ from ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:757:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/9)
#  736|   
#  737|           FOREACH_ELEMENT(test, tests) {
#  738|->                 ts = now(CLOCK_MONOTONIC);
#  739|                   assert_se(h = ordered_hashmap_new(test->ops));
#  740|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:754:17: call_function: inlined call to ‘ordered_hashmap_free’ from ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:757:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/9)
#  737|           FOREACH_ELEMENT(test, tests) {
#  738|                   ts = now(CLOCK_MONOTONIC);
#  739|->                 assert_se(h = ordered_hashmap_new(test->ops));
#  740|   
#  741|                   custom_counter = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/8)
#  744|                           char *k, *v;
#  745|   
#  746|->                         xsprintf(s, "%u", i);
#  747|                           assert_se(k = strdup(s));
#  748|                           assert_se(v = strdup(s));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/8)
#  745|   
#  746|                           xsprintf(s, "%u", i);
#  747|->                         assert_se(k = strdup(s));
#  748|                           assert_se(v = strdup(s));
#  749|                           custom_counter += 2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/8)
#  746|                           xsprintf(s, "%u", i);
#  747|                           assert_se(k = strdup(s));
#  748|->                         assert_se(v = strdup(s));
#  749|                           custom_counter += 2;
#  750|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/8)
#  749|                           custom_counter += 2;
#  750|   
#  751|->                         assert_se(ordered_hashmap_put(h, k, v) >= 0);
#  752|                   }
#  753|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:756:21: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:754:17: call_function: inlined call to ‘ordered_hashmap_free’ from ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:756:21: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/9)
#  754|                   ordered_hashmap_free(h);
#  755|   
#  756|->                 n = now(CLOCK_MONOTONIC);
#  757|                   log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  758|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:757:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:754:17: call_function: inlined call to ‘ordered_hashmap_free’ from ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:757:17: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:757:17: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:757:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/9)
#  755|   
#  756|                   n = now(CLOCK_MONOTONIC);
#  757|->                 log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  758|   
#  759|                   assert_se(custom_counter == test->expect_counter);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:754:17: call_function: inlined call to ‘ordered_hashmap_free’ from ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:757:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/9)
#  757|                   log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  758|   
#  759|->                 assert_se(custom_counter == test->expect_counter);
#  760|           }
#  761|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:761:1: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:754:17: call_function: inlined call to ‘ordered_hashmap_free’ from ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:757:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:759:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:761:1: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:761:1: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/9)
#  759|                   assert_se(custom_counter == test->expect_counter);
#  760|           }
#  761|-> }
#  762|   
#  763|   TEST(ordered_hashmap_first) {

Error: CPPCHECK_WARNING (CWE-457): [#def70]
systemd-258/src/analyze/analyze-inspect-elf.c:58: error[uninitvar]: Uninitialized variable: module_json
#   56|                                    * multiple modules. */
#   57|                                   if (STR_IN_SET(module_name, "elfType", "elfArchitecture")) {
#   58|->                                         if (streq(module_name, "elfType") && streq(sd_json_variant_string(module_json), "coredump"))
#   59|                                                   coredump = true;
#   60|   

Error: CPPCHECK_WARNING (CWE-457): [#def71]
systemd-258/src/analyze/analyze-inspect-elf.c:91: error[uninitvar]: Uninitialized variable: field
#   89|   
#   90|                                   JSON_VARIANT_OBJECT_FOREACH(field_name, field, module_json)
#   91|->                                         if (sd_json_variant_is_string(field)) {
#   92|                                                   r = table_add_many(
#   93|                                                                   t,

Error: CPPCHECK_WARNING (CWE-457): [#def72]
systemd-258/src/analyze/analyze-inspect-elf.c:92: error[uninitvar]: Uninitialized variable: field_name
#   90|                                   JSON_VARIANT_OBJECT_FOREACH(field_name, field, module_json)
#   91|                                           if (sd_json_variant_is_string(field)) {
#   92|->                                                 r = table_add_many(
#   93|                                                                   t,
#   94|                                                                   TABLE_FIELD, field_name,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def73]
systemd-258/src/backlight/backlight.c:507:24: warning[-Wanalyzer-null-argument]: use of NULL ‘path’ where non-null expected
systemd-258/src/backlight/backlight.c:484:12: enter_function: entry to ‘read_saved_brightness’
systemd-258/src/backlight/backlight.c:485:30: release_memory: ‘path’ is NULL
systemd-258/src/backlight/backlight.c:485:44: release_memory: ‘path’ is NULL
systemd-258/src/backlight/backlight.c:488:9: branch_false: following ‘false’ branch...
systemd-258/src/backlight/backlight.c:489:9: branch_false: ...to here
systemd-258/src/backlight/backlight.c:489:9: branch_false: following ‘false’ branch...
systemd-258/src/backlight/backlight.c:491:13: branch_false: ...to here
systemd-258/src/backlight/backlight.c:491:13: call_function: calling ‘build_save_file_path’ from ‘read_saved_brightness’
systemd-258/src/backlight/backlight.c:491:13: return_function: returning to ‘read_saved_brightness’ from ‘build_save_file_path’
systemd-258/src/backlight/backlight.c:492:12: branch_false: following ‘false’ branch...
systemd-258/src/backlight/backlight.c:495:13: branch_false: ...to here
systemd-258/src/backlight/backlight.c:495:13: release_memory: ‘path’ is NULL
systemd-258/src/backlight/backlight.c:496:12: branch_false: following ‘false’ branch...
systemd-258/src/backlight/backlight.c:502:13: branch_false: ...to here
systemd-258/src/backlight/backlight.c:503:12: branch_true: following ‘true’ branch...
systemd-258/src/backlight/backlight.c:504:17: branch_true: ...to here
systemd-258/src/backlight/backlight.c:504:17: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/backlight/backlight.c:507:24: danger: argument 1 (‘path’) NULL where non-null expected
#  505|                                            "Failed to parse saved brightness '%s', removing %s.",
#  506|                                            value, path);
#  507|->                 (void) unlink(path);
#  508|                   return r;
#  509|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
systemd-258/src/basic/alloc-util.h:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘addresses’
systemd-258/src/machine/machinectl.c:279:12: enter_function: entry to ‘list_machines’
systemd-258/src/machine/machinectl.c:283:23: branch_false: following ‘false’ branch...
systemd-258/src/machine/machinectl.c:286:9: branch_false: ...to here
systemd-258/src/machine/machinectl.c:289:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machinectl.c:292:17: branch_false: ...to here
systemd-258/src/machine/machinectl.c:294:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machinectl.c:297:9: branch_false: ...to here
systemd-258/src/machine/machinectl.c:305:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/machine/machinectl.c:313:20: branch_false: following ‘false’ branch...
systemd-258/src/machine/machinectl.c:315:20: branch_false: ...to here
systemd-258/src/machine/machinectl.c:315:20: branch_false: following ‘false’ branch...
systemd-258/src/machine/machinectl.c:318:21: branch_false: ...to here
systemd-258/src/machine/machinectl.c:321:24: call_function: calling ‘call_get_os_release’ from ‘list_machines’
systemd-258/src/machine/machinectl.c:321:24: return_function: returning to ‘list_machines’ from ‘call_get_os_release’
systemd-258/src/machine/machinectl.c:330:21: call_function: inlined call to ‘isempty’ from ‘list_machines’
 branch_true: ...to here
systemd-258/src/machine/machinectl.c:330:21: call_function: inlined call to ‘isempty’ from ‘list_machines’
 branch_true: ...to here
systemd-258/src/machine/machinectl.c:330:21: call_function: inlined call to ‘isempty’ from ‘list_machines’
 branch_true: ...to here
systemd-258/src/machine/machinectl.c:336:20: branch_false: following ‘false’ branch...
systemd-258/src/machine/machinectl.c:339:21: branch_false: ...to here
systemd-258/src/machine/machinectl.c:340:32: call_function: calling ‘call_get_addresses’ from ‘list_machines’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
systemd-258/src/basic/alloc-util.h:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘deflang’
systemd-258/src/libsystemd/sd-journal/catalog.c:266:5: enter_function: entry to ‘catalog_import_file’
systemd-258/src/libsystemd/sd-journal/catalog.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:280:19: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:281:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:284:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:284:13: call_function: calling ‘catalog_file_lang’ from ‘catalog_import_file’
systemd-258/src/libsystemd/sd-journal/catalog.c:284:13: return_function: returning to ‘catalog_import_file’ from ‘catalog_file_lang’
systemd-258/src/libsystemd/sd-journal/catalog.c:285:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:287:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:287:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:288:17: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:288:17: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:288:17: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:272:30: call_function: inlined call to ‘freep’ from ‘catalog_import_file’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
systemd-258/src/basic/alloc-util.h:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘expected_str’
systemd-258/src/test/test-cpu-set-util.c:217:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-cpu-set-util.c:218:9: branch_false: ...to here
systemd-258/src/test/test-cpu-set-util.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-cpu-set-util.c:220:45: acquire_memory: allocated here
systemd-258/src/test/test-cpu-set-util.c:221:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-cpu-set-util.c:222:30: branch_true: following ‘true’ branch (when ‘i != 201’)...
systemd-258/src/test/test-cpu-set-util.c:223:17: branch_true: ...to here
systemd-258/src/test/test-cpu-set-util.c:220:30: call_function: inlined call to ‘freep’ from ‘test_cpu_set_to_from_dbus’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
systemd-258/src/basic/alloc-util.h:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘path’
systemd-258/src/systemctl/systemctl-util.c:520:9: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-util.c:521:9: branch_false: ...to here
systemd-258/src/systemctl/systemctl-util.c:521:9: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-util.c:522:9: branch_false: ...to here
systemd-258/src/systemctl/systemctl-util.c:522:9: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-util.c:525:12: branch_false: ...to here
systemd-258/src/systemctl/systemctl-util.c:588:20: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-util.c:591:21: branch_false: ...to here
systemd-258/src/systemctl/systemctl-util.c:591:20: branch_true: following ‘true’ branch...
systemd-258/src/systemctl/systemctl-util.c:592:32: branch_true: ...to here
systemd-258/src/systemctl/systemctl-util.c:592:32: acquire_memory: allocated here
systemd-258/src/systemctl/systemctl-util.c:593:28: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-util.c:597:20: branch_false: ...to here
systemd-258/src/systemctl/systemctl-util.c:597:20: branch_true: following ‘true’ branch (when ‘ret_dropin_paths’ is non-NULL)...
systemd-258/src/systemctl/systemctl-util.c:598:29: branch_true: ...to here
systemd-258/src/systemctl/systemctl-util.c:601:28: branch_true: following ‘true’ branch...
systemd-258/src/systemctl/systemctl-util.c:586:41: branch_true: ...to here
systemd-258/src/systemctl/systemctl-util.c:503:30: call_function: inlined call to ‘freep’ from ‘unit_find_paths’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
systemd-258/src/basic/alloc-util.h:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258/src/run/run.c:2840:9: branch_false: following ‘false’ branch...
systemd-258/src/run/run.c:2841:9: branch_false: ...to here
systemd-258/src/run/run.c:2841:9: branch_false: following ‘false’ branch...
systemd-258/src/run/run.c:2843:13: branch_false: ...to here
systemd-258/src/run/run.c:2844:12: branch_false: following ‘false’ branch...
systemd-258/src/run/run.c:2847:13: branch_false: ...to here
systemd-258/src/run/run.c:2847:12: branch_true: following ‘true’ branch...
systemd-258/src/run/run.c:2848:25: branch_true: ...to here
systemd-258/src/run/run.c:2851:35: acquire_memory: allocated here
systemd-258/src/run/run.c:2852:28: branch_false: following ‘false’ branch...
systemd-258/src/run/run.c:2855:29: branch_false: ...to here
systemd-258/src/run/run.c:2836:47: call_function: inlined call to ‘freep’ from ‘start_transient_trigger’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
systemd-258/src/basic/alloc-util.h:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘trigger’
systemd-258/src/run/run.c:2840:9: branch_false: following ‘false’ branch...
systemd-258/src/run/run.c:2841:9: branch_false: ...to here
systemd-258/src/run/run.c:2841:9: branch_false: following ‘false’ branch...
systemd-258/src/run/run.c:2843:13: branch_false: ...to here
systemd-258/src/run/run.c:2844:12: branch_false: following ‘false’ branch...
systemd-258/src/run/run.c:2847:13: branch_false: ...to here
systemd-258/src/run/run.c:2847:12: branch_true: following ‘true’ branch...
systemd-258/src/run/run.c:2848:25: branch_true: ...to here
systemd-258/src/run/run.c:2861:35: acquire_memory: allocated here
systemd-258/src/run/run.c:2862:28: branch_false: following ‘false’ branch...
systemd-258/src/run/run.c:2865:29: branch_false: ...to here
systemd-258/src/run/run.c:2866:28: branch_true: following ‘true’ branch...
systemd-258/src/run/run.c:2867:40: branch_true: ...to here
systemd-258/src/run/run.c:2836:30: call_function: inlined call to ‘freep’ from ‘start_transient_trigger’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def80]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘a’
systemd-258/src/test/test-utf8.c:178:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-utf8.c:179:9: branch_false: ...to here
systemd-258/src/test/test-utf8.c:179:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-utf8.c:182:13: branch_false: ...to here
systemd-258/src/test/test-utf8.c:183:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-utf8.c:185:9: branch_false: ...to here
systemd-258/src/test/test-utf8.c:185:9: release_memory: first ‘free’ here
systemd-258/src/test/test-utf8.c:174:30: call_function: inlined call to ‘freep’ from ‘test_utf16_to_utf8’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def81]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘cn’
systemd-258/src/shared/creds-util.c:307:5: enter_function: entry to ‘get_credential_user_password’
systemd-258/src/shared/creds-util.c:314:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:317:13: branch_false: ...to here
systemd-258/src/shared/creds-util.c:317:13: call_function: calling ‘read_credential’ from ‘get_credential_user_password’
systemd-258/src/shared/creds-util.c:317:13: return_function: returning to ‘get_credential_user_password’ from ‘read_credential’
systemd-258/src/shared/creds-util.c:318:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/creds-util.c:319:17: branch_true: ...to here
systemd-258/src/shared/creds-util.c:319:17: release_memory: first ‘free’ here
systemd-258/src/shared/creds-util.c:309:30: call_function: inlined call to ‘freep’ from ‘get_credential_user_password’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def82]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘c’
systemd-258/src/nsresourced/nsresourcework.c:681:12: enter_function: entry to ‘validate_name’
systemd-258/src/nsresourced/nsresourcework.c:684:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:685:9: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:685:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:686:9: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:686:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:688:15: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:690:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:693:30: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:694:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:724:21: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:724:20: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:727:22: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:727:20: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:728:28: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:728:28: branch_true: following ‘true’ branch (when ‘mangle != 0’)...
systemd-258/src/nsresourced/nsresourcework.c:731:50: branch_true: ...to here
systemd-258/src/nsresourced/nsresourcework.c:731:50: call_function: calling ‘shorten_name’ from ‘validate_name’
systemd-258/src/nsresourced/nsresourcework.c:731:50: return_function: returning to ‘validate_name’ from ‘shorten_name’
systemd-258/src/nsresourced/nsresourcework.c:732:28: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:736:29: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:736:28: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourcework.c:739:33: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:739:33: release_memory: first ‘free’ here
systemd-258/src/nsresourced/nsresourcework.c:740:37: call_function: calling ‘hash_name’ from ‘validate_name’
systemd-258/src/nsresourced/nsresourcework.c:731:46: call_function: inlined call to ‘freep’ from ‘validate_name’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def83]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘dup’
systemd-258/src/test/test-alloc-util.c:95:1: enter_function: entry to ‘test_memdup_multiply_and_greedy_realloc’
systemd-258/src/test/test-alloc-util.c:102:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-alloc-util.c:103:9: branch_false: ...to here
systemd-258/src/test/test-alloc-util.c:103:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-alloc-util.c:104:9: branch_false: ...to here
systemd-258/src/test/test-alloc-util.c:104:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-alloc-util.c:105:9: branch_false: ...to here
systemd-258/src/test/test-alloc-util.c:105:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-alloc-util.c:106:9: branch_false: ...to here
systemd-258/src/test/test-alloc-util.c:106:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-alloc-util.c:107:9: branch_false: ...to here
systemd-258/src/test/test-alloc-util.c:107:9: release_memory: first ‘free’ here
systemd-258/src/test/test-alloc-util.c:109:15: call_function: inlined call to ‘memdup_multiply’ from ‘test_memdup_multiply_and_greedy_realloc’
systemd-258/src/test/test-alloc-util.c:97:29: call_function: inlined call to ‘freep’ from ‘test_memdup_multiply_and_greedy_realloc’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def84]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘f’
systemd-258/src/sysext/sysext.c:791:12: enter_function: entry to ‘work_dir_for_hierarchy’
systemd-258/src/sysext/sysext.c:799:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:800:9: branch_false: ...to here
systemd-258/src/sysext/sysext.c:800:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:801:9: branch_false: ...to here
systemd-258/src/sysext/sysext.c:801:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:803:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:804:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:808:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:808:13: call_function: calling ‘paths_on_same_fs’ from ‘work_dir_for_hierarchy’
systemd-258/src/sysext/sysext.c:808:13: return_function: returning to ‘work_dir_for_hierarchy’ from ‘paths_on_same_fs’
systemd-258/src/sysext/sysext.c:809:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:811:12: branch_false: ...to here
systemd-258/src/sysext/sysext.c:811:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:816:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:816:13: call_function: calling ‘hierarchy_as_single_path_component’ from ‘work_dir_for_hierarchy’
systemd-258/src/sysext/sysext.c:816:13: return_function: returning to ‘work_dir_for_hierarchy’ from ‘hierarchy_as_single_path_component’
systemd-258/src/sysext/sysext.c:817:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:819:20: branch_false: ...to here
systemd-258/src/sysext/sysext.c:820:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:823:9: branch_false: ...to here
systemd-258/src/sysext/sysext.c:823:9: release_memory: first ‘free’ here
systemd-258/src/sysext/sysext.c:814:30: call_function: inlined call to ‘freep’ from ‘work_dir_for_hierarchy’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def85]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘name’
systemd-258/src/userdb/userdbctl.c:687:12: enter_function: entry to ‘add_unavailable_gid’
systemd-258/src/userdb/userdbctl.c:691:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbctl.c:692:9: branch_false: ...to here
systemd-258/src/userdb/userdbctl.c:692:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbctl.c:694:16: call_function: inlined call to ‘glyph’ from ‘add_unavailable_gid’
systemd-258/src/userdb/userdbctl.c:697:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbctl.c:700:13: branch_false: ...to here
systemd-258/src/userdb/userdbctl.c:711:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbctl.c:714:9: branch_false: ...to here
systemd-258/src/userdb/userdbctl.c:714:9: release_memory: first ‘free’ here
systemd-258/src/userdb/userdbctl.c:688:30: call_function: inlined call to ‘freep’ from ‘add_unavailable_gid’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def86]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘s’
systemd-258/src/test/test-parse-helpers.c:95:34: acquire_memory: allocated here
systemd-258/src/test/test-parse-helpers.c:95:34: branch_false: following ‘false’ branch...
systemd-258/src/test/test-parse-helpers.c:98:13: branch_false: ...to here
systemd-258/src/test/test-parse-helpers.c:99:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-parse-helpers.c:101:9: branch_false: ...to here
systemd-258/src/test/test-parse-helpers.c:101:9: release_memory: first ‘free’ here
systemd-258/src/test/test-parse-helpers.c:102:13: branch_true: following ‘true’ branch...
systemd-258/src/test/test-parse-helpers.c:102:13: branch_true: ...to here
systemd-258/src/test/test-parse-helpers.c:95:30: call_function: inlined call to ‘freep’ from ‘test_path_simplify_and_warn_one’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def87]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-double-free]: double-‘free’ of ‘t’
systemd-258/src/test/test-ellipsize.c:82:9: release_memory: first ‘free’ here
systemd-258/src/test/test-ellipsize.c:79:30: call_function: inlined call to ‘freep’ from ‘test_ellipsize_one’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def88]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor
systemd-258/src/test/test-fd-util.c:263:13: enter_function: entry to ‘test_close_all_fds_inner’
systemd-258/src/test/test-fd-util.c:273:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:275:12: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:289:9: call_function: calling ‘malloc_multiply’ from ‘test_close_all_fds_inner’
systemd-258/src/test/test-fd-util.c:289:9: return_function: returning to ‘test_close_all_fds_inner’ from ‘malloc_multiply’
systemd-258/src/test/test-fd-util.c:289:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-fd-util.c:290:28: branch_true: following ‘true’ branch...
systemd-258/src/test/test-fd-util.c:291:17: branch_true: ...to here
systemd-258/src/test/test-fd-util.c:291:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:290:39: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:290:28: branch_true: following ‘true’ branch...
systemd-258/src/test/test-fd-util.c:291:17: branch_true: ...to here
systemd-258/src/test/test-fd-util.c:264:29: call_function: inlined call to ‘freep’ from ‘test_close_all_fds_inner’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def89]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dfd’
systemd-258/src/basic/mkdir.c:205:5: enter_function: entry to ‘mkdir_p_root_full’
systemd-258/src/basic/mkdir.c:210:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/mkdir.c:212:13: branch_false: ...to here
systemd-258/src/basic/mkdir.c:213:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/mkdir.c:215:23: branch_true: ...to here
systemd-258/src/basic/mkdir.c:215:23: acquire_resource: opened here
systemd-258/src/basic/mkdir.c:216:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/mkdir.c:234:13: branch_false: ...to here
systemd-258/src/basic/mkdir.c:207:29: call_function: inlined call to ‘closep’ from ‘mkdir_p_root_full’
systemd-258/src/basic/mkdir.c:206:30: call_function: inlined call to ‘freep’ from ‘mkdir_p_root_full’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3025:14: enter_function: entry to ‘sd_bus_add_object_manager’
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3030:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3031:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3031:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3032:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3032:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3033:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3033:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3035:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3035:13: call_function: calling ‘bus_node_allocate’ from ‘sd_bus_add_object_manager’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
systemd-258/src/nspawn/nspawn-mount.c:417:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-mount.c:419:12: branch_false: ...to here
systemd-258/src/nspawn/nspawn-mount.c:419:12: branch_true: following ‘true’ branch (when ‘options’ is non-NULL)...
systemd-258/src/nspawn/nspawn-mount.c:420:23: branch_true: ...to here
systemd-258/src/nspawn/nspawn-mount.c:420:23: acquire_memory: allocated here
systemd-258/src/nspawn/nspawn-mount.c:421:20: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-mount.c:425:12: branch_false: ...to here
systemd-258/src/nspawn/nspawn-mount.c:425:12: branch_true: following ‘true’ branch (when ‘uid_shift != 4294967295’)...
systemd-258/src/nspawn/nspawn-mount.c:426:21: branch_true: ...to here
systemd-258/src/nspawn/nspawn-mount.c:415:30: call_function: inlined call to ‘freep’ from ‘tmpfs_patch_options’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 32)’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:563:20: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:629:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘combined_cmdline’
systemd-258/src/shared/bootspec.c:1771:12: enter_function: entry to ‘json_cmdline’
systemd-258/src/shared/bootspec.c:1780:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1782:12: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1782:12: branch_true: following ‘true’ branch (when ‘def_cmdline’ is non-NULL)...
systemd-258/src/shared/bootspec.c:1783:36: branch_true: ...to here
systemd-258/src/shared/bootspec.c:1783:36: acquire_memory: allocated here
systemd-258/src/shared/bootspec.c:1784:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1788:9: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1789:21: call_function: calling ‘json_addon’ from ‘json_cmdline’
systemd-258/src/shared/bootspec.c:1776:30: call_function: inlined call to ‘freep’ from ‘json_cmdline’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘de’
systemd-258/src/basic/recurse-dir.c:146:5: enter_function: entry to ‘recurse_dir’
systemd-258/src/basic/recurse-dir.c:159:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/recurse-dir.c:160:9: branch_false: ...to here
systemd-258/src/basic/recurse-dir.c:160:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/recurse-dir.c:165:12: branch_false: ...to here
systemd-258/src/basic/recurse-dir.c:165:12: branch_false: following ‘false’ branch (when ‘n_depth_max != 0’)...
systemd-258/src/basic/recurse-dir.c:167:12: branch_false: ...to here
systemd-258/src/basic/recurse-dir.c:190:13: call_function: calling ‘readdir_all’ from ‘recurse_dir’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/import/import-common.c:147:5: enter_function: entry to ‘import_mangle_os_tree’
systemd-258/src/import/import-common.c:154:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:159:13: call_function: inlined call to ‘path_is_os_tree’ from ‘import_mangle_os_tree’
systemd-258/src/import/import-common.c:160:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:162:12: branch_false: ...to here
systemd-258/src/import/import-common.c:162:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:167:9: branch_false: ...to here
systemd-258/src/import/import-common.c:169:13: acquire_memory: allocated here
systemd-258/src/import/import-common.c:170:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:173:9: branch_false: ...to here
systemd-258/src/import/import-common.c:149:33: call_function: inlined call to ‘closedirp’ from ‘import_mangle_os_tree’
systemd-258/src/import/import-common.c:148:30: call_function: inlined call to ‘freep’ from ‘import_mangle_os_tree’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘fn’
systemd-258/src/shared/vpick.c:29:12: enter_function: entry to ‘format_fname’
systemd-258/src/shared/vpick.c:37:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/vpick.c:38:9: branch_false: ...to here
systemd-258/src/shared/vpick.c:38:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/vpick.c:40:13: branch_false: ...to here
systemd-258/src/shared/vpick.c:40:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/vpick.c:42:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/vpick.c:70:13: branch_false: ...to here
systemd-258/src/shared/vpick.c:70:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/vpick.c:71:22: branch_true: ...to here
systemd-258/src/shared/vpick.c:71:22: acquire_memory: allocated here
systemd-258/src/shared/vpick.c:72:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/vpick.c:77:21: branch_false: ...to here
systemd-258/src/shared/vpick.c:34:30: call_function: inlined call to ‘freep’ from ‘format_fname’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘h’
systemd-258/src/basic/hostname-util.c:236:5: enter_function: entry to ‘machine_spec_valid’
systemd-258/src/basic/hostname-util.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:242:13: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:242:13: call_function: calling ‘split_user_at_host’ from ‘machine_spec_valid’
systemd-258/src/basic/hostname-util.c:242:13: return_function: returning to ‘machine_spec_valid’ from ‘split_user_at_host’
systemd-258/src/basic/hostname-util.c:243:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:245:12: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:245:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:248:13: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:248:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/hostname-util.c:248:19: branch_true: ...to here
systemd-258/src/basic/hostname-util.c:237:30: call_function: inlined call to ‘freep’ from ‘machine_spec_valid’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘id’
systemd-258/src/login/logind.c:565:12: enter_function: entry to ‘manager_enumerate_fds’
systemd-258/src/login/logind.c:569:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind.c:570:9: branch_false: ...to here
systemd-258/src/login/logind.c:570:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind.c:572:13: branch_false: ...to here
systemd-258/src/login/logind.c:573:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/login/logind.c:576:25: branch_true: following ‘true’ branch...
systemd-258/src/login/logind.c:577:21: branch_true: ...to here
systemd-258/src/login/logind.c:579:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/login/logind.c:585:17: branch_false: ...to here
systemd-258/src/login/logind.c:585:17: call_function: calling ‘manager_attach_session_fd_one_consume’ from ‘manager_enumerate_fds’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘iov’
systemd-258/src/libsystemd-network/ndisc-option.c:1697:5: enter_function: entry to ‘ndisc_send’
systemd-258/src/libsystemd-network/ndisc-option.c:1700:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1701:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1701:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1702:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1702:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1704:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1707:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1711:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1714:15: call_function: calling ‘malloc_multiply’ from ‘ndisc_send’
systemd-258/src/libsystemd-network/ndisc-option.c:1714:15: return_function: returning to ‘ndisc_send’ from ‘malloc_multiply’
systemd-258/src/libsystemd-network/ndisc-option.c:1715:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1718:31: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1712:9: call_function: calling ‘array_cleanup’ from ‘ndisc_send’
systemd-258/src/libsystemd-network/ndisc-option.c:1705:42: call_function: inlined call to ‘freep’ from ‘ndisc_send’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘mid’
systemd-258/src/coredump/coredumpctl.c:865:12: enter_function: entry to ‘print_entry’
systemd-258/src/coredump/coredumpctl.c:870:9: branch_false: following ‘false’ branch...
systemd-258/src/coredump/coredumpctl.c:872:12: branch_false: ...to here
systemd-258/src/coredump/coredumpctl.c:872:12: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
systemd-258/src/coredump/coredumpctl.c:873:24: branch_true: ...to here
systemd-258/src/coredump/coredumpctl.c:873:24: call_function: calling ‘print_list’ from ‘print_entry’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3025:14: enter_function: entry to ‘sd_bus_add_object_manager’
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3030:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3031:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3031:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3032:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3032:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3033:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3033:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3035:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-objects.c:3035:13: call_function: calling ‘bus_node_allocate’ from ‘sd_bus_add_object_manager’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘of’
systemd-258/src/test/test-open-file.c:110:1: enter_function: entry to ‘test_open_file_to_string’
systemd-258/src/test/test-open-file.c:115:9: call_function: inlined call to ‘malloc_multiply’ from ‘test_open_file_to_string’
systemd-258/src/test/test-open-file.c:115:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-open-file.c:116:35: branch_false: ...to here
systemd-258/src/test/test-open-file.c:122:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-open-file.c:122:9: branch_true: ...to here
systemd-258/src/test/test-open-file.c:112:46: call_function: calling ‘open_file_freep’ from ‘test_open_file_to_string’
systemd-258/src/test/test-open-file.c:111:30: call_function: inlined call to ‘freep’ from ‘test_open_file_to_string’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘options’
systemd-258/src/sysext/sysext.c:698:12: enter_function: entry to ‘mount_overlayfs’
systemd-258/src/sysext/sysext.c:711:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:712:9: branch_false: ...to here
systemd-258/src/sysext/sysext.c:714:19: acquire_memory: allocated here
systemd-258/src/sysext/sysext.c:715:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/sysext/sysext.c:730:12: branch_true: following ‘true’ branch...
systemd-258/src/sysext/sysext.c:731:21: branch_true: ...to here
systemd-258/src/sysext/sysext.c:731:21: call_function: calling ‘append_overlayfs_path_option’ from ‘mount_overlayfs’
systemd-258/src/sysext/sysext.c:706:30: call_function: inlined call to ‘freep’ from ‘mount_overlayfs’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pid’
systemd-258/src/coredump/coredumpctl.c:865:12: enter_function: entry to ‘print_entry’
systemd-258/src/coredump/coredumpctl.c:870:9: branch_false: following ‘false’ branch...
systemd-258/src/coredump/coredumpctl.c:872:12: branch_false: ...to here
systemd-258/src/coredump/coredumpctl.c:872:12: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
systemd-258/src/coredump/coredumpctl.c:873:24: branch_true: ...to here
systemd-258/src/coredump/coredumpctl.c:873:24: call_function: calling ‘print_list’ from ‘print_entry’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258/src/fstab-generator/fstab-generator.c:1679:12: enter_function: entry to ‘run’
systemd-258/src/fstab-generator/fstab-generator.c:1686:20: branch_false: following ‘false’ branch...
systemd-258/src/fstab-generator/fstab-generator.c:1689:22: branch_false: ...to here
systemd-258/src/fstab-generator/fstab-generator.c:1689:20: branch_true: following ‘true’ branch...
systemd-258/src/fstab-generator/fstab-generator.c:1704:16: branch_true: ...to here
systemd-258/src/fstab-generator/fstab-generator.c:1704:16: call_function: calling ‘run_generator’ from ‘run’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘rta’
systemd-258/src/network/networkd-route-nexthop.c:628:5: enter_function: entry to ‘route_nexthops_set_netlink_message’
systemd-258/src/network/networkd-route-nexthop.c:631:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-route-nexthop.c:632:9: branch_false: ...to here
systemd-258/src/network/networkd-route-nexthop.c:633:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-route-nexthop.c:635:13: branch_false: ...to here
systemd-258/src/network/networkd-route-nexthop.c:635:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-route-nexthop.c:638:13: branch_false: ...to here
systemd-258/src/network/networkd-route-nexthop.c:638:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-route-nexthop.c:643:33: branch_false: ...to here
systemd-258/src/network/networkd-route-nexthop.c:664:16: call_function: calling ‘netlink_message_append_multipath_route’ from ‘route_nexthops_set_netlink_message’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_true: following ‘true’ branch (when ‘slash’ is non-NULL)...
systemd-258/src/udev/udevadm-monitor.c:145:43: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:146:36: branch_true: following ‘true’ branch...
systemd-258/src/udev/udevadm-monitor.c:147:48: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:140:46: call_function: inlined call to ‘freep’ from ‘parse_argv’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
systemd-258/src/basic/build-path.c:220:5: enter_function: entry to ‘invoke_callout_binary’
systemd-258/src/basic/build-path.c:223:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/build-path.c:227:30: branch_false: ...to here
systemd-258/src/basic/build-path.c:229:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/build-path.c:231:12: branch_false: ...to here
systemd-258/src/basic/build-path.c:231:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/build-path.c:234:21: branch_false: ...to here
systemd-258/src/basic/build-path.c:235:13: call_function: calling ‘find_environment_binary’ from ‘invoke_callout_binary’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘t2’
systemd-258/src/shared/bootspec.c:1703:12: enter_function: entry to ‘print_cmdline’
systemd-258/src/shared/bootspec.c:1707:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1709:27: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1713:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1716:21: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1716:21: call_function: calling ‘indent_embedded_newlines’ from ‘print_cmdline’
systemd-258/src/shared/bootspec.c:1716:21: return_function: returning to ‘print_cmdline’ from ‘indent_embedded_newlines’
systemd-258/src/shared/bootspec.c:1716:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1719:17: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1720:22: acquire_memory: allocated here
systemd-258/src/shared/bootspec.c:1721:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1710:38: call_function: inlined call to ‘freep’ from ‘print_cmdline’
systemd-258/src/shared/bootspec.c:1725:9: branch_true: following ‘true’ branch...
systemd-258/src/shared/bootspec.c:1726:17: branch_true: ...to here
systemd-258/src/shared/bootspec.c:1705:30: call_function: inlined call to ‘freep’ from ‘print_cmdline’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘u’
systemd-258/src/basic/hostname-util.c:236:5: enter_function: entry to ‘machine_spec_valid’
systemd-258/src/basic/hostname-util.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:242:13: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:242:13: call_function: calling ‘split_user_at_host’ from ‘machine_spec_valid’
systemd-258/src/basic/hostname-util.c:242:13: return_function: returning to ‘machine_spec_valid’ from ‘split_user_at_host’
systemd-258/src/basic/hostname-util.c:243:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:245:12: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:245:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:248:13: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:248:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/hostname-util.c:248:19: branch_true: ...to here
systemd-258/src/basic/hostname-util.c:237:30: call_function: inlined call to ‘freep’ from ‘machine_spec_valid’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-malloc-leak]: leak of ‘virtiofsd’
systemd-258/src/vmspawn/vmspawn.c:1335:12: enter_function: entry to ‘start_virtiofsd’
systemd-258/src/vmspawn/vmspawn.c:1346:9: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn.c:1347:9: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn.c:1347:9: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn.c:1348:9: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn.c:1348:9: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn.c:1350:30: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn.c:1351:13: call_function: calling ‘find_virtiofsd’ from ‘start_virtiofsd’
systemd-258/src/vmspawn/vmspawn.c:1351:13: return_function: returning to ‘start_virtiofsd’ from ‘find_virtiofsd’
systemd-258/src/vmspawn/vmspawn.c:1352:12: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn.c:1355:30: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn.c:1350:30: call_function: inlined call to ‘freep’ from ‘start_virtiofsd’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def112]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘t’
systemd-258/src/libsystemd/sd-journal/test-journal-match.c:13:30: call_function: inlined call to ‘freep’ from ‘main’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def113]
systemd-258/src/basic/alloc-util.h:79:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/test/test-xml.c:35:5: enter_function: entry to ‘main’
systemd-258/src/test/test-xml.c:39:9: call_function: calling ‘test_one’ from ‘main’
#   77|   
#   78|   static inline void freep(void *p) {
#   79|->         *(void**)p = mfree(*(void**) p);
#   80|   }
#   81|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
systemd-258/src/basic/alloc-util.h:85:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258/src/shared/btrfs-util.c:1911:12: enter_function: entry to ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1931:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1932:9: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1932:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1934:16: call_function: calling ‘btrfs_ioctl_search_args_compare’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1934:16: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_ioctl_search_args_compare’
systemd-258/src/shared/btrfs-util.c:1934:16: branch_true: following ‘true’ branch...
systemd-258/src/shared/btrfs-util.c:1935:50: branch_true: ...to here
systemd-258/src/shared/btrfs-util.c:1940:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1943:21: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1943:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1946:17: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1946:17: call_function: calling ‘btrfs_iterate’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1946:17: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_iterate’
systemd-258/src/shared/btrfs-util.c:1946:17: branch_true: following ‘true’ branch...
systemd-258/src/shared/btrfs-util.c:1949:25: call_function: inlined call to ‘btrfs_ioctl_search_args_set’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1956:33: call_function: inlined call to ‘malloc_multiply’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1957:28: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1960:51: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1970:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1982:28: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1985:25: branch_false: ...to here
systemd-258/src/basic/alloc-util.h:89:13: call_function: inlined call to ‘size_multiply_overflow’ from ‘malloc_multiply’
#   83|   
#   84|   static inline bool size_multiply_overflow(size_t size, size_t need) {
#   85|->         return _unlikely_(need != 0 && size > (SIZE_MAX / need));
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
systemd-258/src/basic/alloc-util.h:85:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)_hashmap_size(*enumerator.devices_by_syspath), 8)’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1164:12: enter_function: entry to ‘device_enumerator_get_first’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: call_function: calling ‘enumerator_sort_devices’ from ‘device_enumerator_get_first’
#   83|   
#   84|   static inline bool size_multiply_overflow(size_t size, size_t need) {
#   85|->         return _unlikely_(need != 0 && size > (SIZE_MAX / need));
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
systemd-258/src/basic/alloc-util.h:85:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)fdset_size(fds), 4)’
systemd-258/src/shared/fdset.c:282:5: enter_function: entry to ‘fdset_to_array’
systemd-258/src/shared/fdset.c:286:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:288:13: branch_false: ...to here
systemd-258/src/shared/fdset.c:289:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:291:12: branch_false: ...to here
systemd-258/src/shared/fdset.c:291:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:296:13: branch_false: ...to here
systemd-258/src/shared/fdset.c:296:13: call_function: calling ‘malloc_multiply’ from ‘fdset_to_array’
systemd-258/src/shared/fdset.c:296:13: return_function: returning to ‘fdset_to_array’ from ‘malloc_multiply’
systemd-258/src/shared/fdset.c:297:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:301:9: branch_false: ...to here
systemd-258/src/basic/alloc-util.h:89:13: call_function: inlined call to ‘size_multiply_overflow’ from ‘malloc_multiply’
#   83|   
#   84|   static inline bool size_multiply_overflow(size_t size, size_t need) {
#   85|->         return _unlikely_(need != 0 && size > (SIZE_MAX / need));
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
systemd-258/src/basic/alloc-util.h:85:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(new_length + 3, 1)’
systemd-258/src/basic/string-util.c:292:14: enter_function: entry to ‘ascii_ellipsize_mem’
systemd-258/src/basic/string-util.c:296:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/string-util.c:297:9: branch_false: ...to here
systemd-258/src/basic/string-util.c:297:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/string-util.c:298:9: branch_false: ...to here
systemd-258/src/basic/string-util.c:298:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/string-util.c:300:12: branch_false: ...to here
systemd-258/src/basic/string-util.c:300:12: branch_false: following ‘false’ branch (when ‘new_length < old_length’)...
systemd-258/src/basic/string-util.c:304:9: branch_false: ...to here
systemd-258/src/basic/string-util.c:326:13: call_function: calling ‘malloc_multiply’ from ‘ascii_ellipsize_mem’
systemd-258/src/basic/string-util.c:326:13: return_function: returning to ‘ascii_ellipsize_mem’ from ‘malloc_multiply’
systemd-258/src/basic/string-util.c:327:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/string-util.c:330:9: branch_false: ...to here
systemd-258/src/basic/alloc-util.h:89:13: call_function: inlined call to ‘size_multiply_overflow’ from ‘malloc_multiply’
#   83|   
#   84|   static inline bool size_multiply_overflow(size_t size, size_t need) {
#   85|->         return _unlikely_(need != 0 && size > (SIZE_MAX / need));
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
systemd-258/src/basic/alloc-util.h:99:16: warning[-Wanalyzer-malloc-leak]: leak of ‘bitmap_new()’
systemd-258/src/shared/bitmap.c:25:9: enter_function: entry to ‘bitmap_copy’
systemd-258/src/shared/bitmap.c:28:15: call_function: calling ‘bitmap_new’ from ‘bitmap_copy’
systemd-258/src/shared/bitmap.c:28:15: return_function: returning to ‘bitmap_copy’ from ‘bitmap_new’
systemd-258/src/shared/bitmap.c:29:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bitmap.c:32:24: branch_false: ...to here
systemd-258/src/shared/bitmap.c:32:24: call_function: calling ‘memdup_multiply’ from ‘bitmap_copy’
#   97|                   return NULL;
#   98|   
#   99|->         return memdup(p, size * need);
#  100|   }
#  101|   

Error: COMPILER_WARNING: [#def119] [important]
systemd-258/src/basic/argv-util.c:200:18: error[error]: ‘TASK_COMM_LEN’ undeclared (first use in this function)
#  198|           if (prctl(PR_SET_NAME, name) < 0)
#  199|                   log_debug_errno(errno, "PR_SET_NAME failed: %m");
#  200|->         if (l >= TASK_COMM_LEN) /* Linux userspace process names can be 15 chars at max */
#  201|                   truncated = true;
#  202|   

Error: COMPILER_WARNING: [#def120] [important]
systemd-258/src/basic/cgroup-util.c:75:29: error[error]: ‘FILEID_KERNFS’ undeclared (first use in this function)
#   73|           }
#   74|   
#   75|->         cg_file_handle fh = CG_FILE_HANDLE_INIT;
#   76|           unaligned_write_ne64(fh.file_handle.f_handle, id);
#   77|   

Error: COMPILER_WARNING: [#def121] [important]
systemd-258/src/basic/cgroup-util.c:103:29: error[error]: ‘FILEID_KERNFS’ undeclared (first use in this function)
#  101|   
#  102|   int cg_get_cgroupid_at(int dfd, const char *path, uint64_t *ret) {
#  103|->         cg_file_handle fh = CG_FILE_HANDLE_INIT;
#  104|           int mnt_id;
#  105|   

Error: CPPCHECK_WARNING (CWE-401): [#def122]
systemd-258/src/basic/compress.c:881: error[memleak]: Memory leak: out_buff
#  879|           in_buff = malloc(LZ4_BUFSIZE);
#  880|           if (!in_buff)
#  881|->                 return -ENOMEM;
#  882|   
#  883|           n = offset = total_out = sym_LZ4F_compressBegin(ctx, out_buff, out_allocsize, &preferences);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
systemd-258/src/basic/compress.c:883:34: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(524288)’
systemd-258/src/basic/compress.c:866:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:869:13: branch_false: ...to here
systemd-258/src/basic/compress.c:870:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:873:22: branch_false: ...to here
systemd-258/src/basic/compress.c:876:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:879:19: branch_false: ...to here
systemd-258/src/basic/compress.c:879:19: acquire_memory: allocated here
systemd-258/src/basic/compress.c:880:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:883:34: branch_false: ...to here
systemd-258/src/basic/compress.c:883:34: danger: ‘malloc(524288)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  881|                   return -ENOMEM;
#  882|   
#  883|->         n = offset = total_out = sym_LZ4F_compressBegin(ctx, out_buff, out_allocsize, &preferences);
#  884|           if (sym_LZ4F_isError(n))
#  885|                   return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
systemd-258/src/basic/compress.c:883:34: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(out_allocsize)’
systemd-258/src/basic/compress.c:866:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:869:13: branch_false: ...to here
systemd-258/src/basic/compress.c:870:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:873:22: branch_false: ...to here
systemd-258/src/basic/compress.c:875:20: acquire_memory: allocated here
systemd-258/src/basic/compress.c:876:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:879:19: branch_false: ...to here
systemd-258/src/basic/compress.c:880:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:883:34: branch_false: ...to here
systemd-258/src/basic/compress.c:883:34: danger: ‘malloc(out_allocsize)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  881|                   return -ENOMEM;
#  882|   
#  883|->         n = offset = total_out = sym_LZ4F_compressBegin(ctx, out_buff, out_allocsize, &preferences);
#  884|           if (sym_LZ4F_isError(n))
#  885|                   return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
systemd-258/src/basic/compress.c:884:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(524288)’
systemd-258/src/basic/compress.c:866:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:869:13: branch_false: ...to here
systemd-258/src/basic/compress.c:870:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:873:22: branch_false: ...to here
systemd-258/src/basic/compress.c:876:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:879:19: branch_false: ...to here
systemd-258/src/basic/compress.c:879:19: acquire_memory: allocated here
systemd-258/src/basic/compress.c:880:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:883:34: branch_false: ...to here
systemd-258/src/basic/compress.c:884:13: danger: ‘malloc(524288)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  882|   
#  883|           n = offset = total_out = sym_LZ4F_compressBegin(ctx, out_buff, out_allocsize, &preferences);
#  884|->         if (sym_LZ4F_isError(n))
#  885|                   return -EINVAL;
#  886|   

Error: CPPCHECK_WARNING (CWE-401): [#def126]
systemd-258/src/basic/compress.c:885: error[memleak]: Memory leak: in_buff
#  883|           n = offset = total_out = sym_LZ4F_compressBegin(ctx, out_buff, out_allocsize, &preferences);
#  884|           if (sym_LZ4F_isError(n))
#  885|->                 return -EINVAL;
#  886|   
#  887|           log_debug("Buffer size is %zu bytes, header size %zu bytes.", out_allocsize, n);

Error: CPPCHECK_WARNING (CWE-401): [#def127]
systemd-258/src/basic/compress.c:1056: error[memleak]: Memory leak: buf
# 1054|           src = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, in, 0);
# 1055|           if (src == MAP_FAILED)
# 1056|->                 return -errno;
# 1057|   
# 1058|           while (total_in < (size_t) st.st_size) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
systemd-258/src/basic/compress.c:1062:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(524288)’
systemd-258/src/basic/compress.c:1037:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1040:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1041:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1044:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1044:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1050:15: branch_false: ...to here
systemd-258/src/basic/compress.c:1050:15: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1051:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1054:26: branch_false: ...to here
systemd-258/src/basic/compress.c:1055:12: branch_false: following ‘false’ branch (when ‘src != 18446744073709551615’)...
 branch_false: ...to here
systemd-258/src/basic/compress.c:1058:16: branch_true: following ‘true’ branch...
systemd-258/src/basic/compress.c:1059:24: branch_true: ...to here
systemd-258/src/basic/compress.c:1062:21: danger: ‘malloc(524288)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 1060|                   size_t used = st.st_size - total_in;
# 1061|   
# 1062|->                 c = sym_LZ4F_decompress(ctx, buf, &produced, src + total_in, &used, NULL);
# 1063|                   if (sym_LZ4F_isError(c)) {
# 1064|                           r = -EBADMSG;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
systemd-258/src/basic/compress.c:1119:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_CStreamInSize())’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1117:19: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1119:16: danger: ‘malloc(sym_ZSTD_CStreamInSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 1117|           in_buff = malloc(in_allocsize);
# 1118|           out_buff = malloc(out_allocsize);
# 1119|->         cctx = sym_ZSTD_createCCtx();
# 1120|           if (!cctx || !out_buff || !in_buff)
# 1121|                   return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
systemd-258/src/basic/compress.c:1119:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_CStreamOutSize())’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1118:20: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1119:16: danger: ‘malloc(sym_ZSTD_CStreamOutSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
# 1117|           in_buff = malloc(in_allocsize);
# 1118|           out_buff = malloc(out_allocsize);
# 1119|->         cctx = sym_ZSTD_createCCtx();
# 1120|           if (!cctx || !out_buff || !in_buff)
# 1121|                   return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
systemd-258/src/basic/compress.c:1123:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_CStreamInSize())’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1117:19: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1120:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1120:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1123:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1123:13: danger: ‘malloc(sym_ZSTD_CStreamInSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 1121|                   return -ENOMEM;
# 1122|   
# 1123|->         z = sym_ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1);
# 1124|           if (sym_ZSTD_isError(z))
# 1125|                   log_debug("Failed to enable ZSTD checksum, ignoring: %s", sym_ZSTD_getErrorName(z));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
systemd-258/src/basic/compress.c:1123:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_CStreamOutSize())’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1118:20: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1120:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1120:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1120:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1123:13: danger: ‘malloc(sym_ZSTD_CStreamOutSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
# 1121|                   return -ENOMEM;
# 1122|   
# 1123|->         z = sym_ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1);
# 1124|           if (sym_ZSTD_isError(z))
# 1125|                   log_debug("Failed to enable ZSTD checksum, ignoring: %s", sym_ZSTD_getErrorName(z));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
systemd-258/src/basic/compress.c:1124:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_CStreamInSize())’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1117:19: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1120:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1120:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1123:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1124:13: danger: ‘malloc(sym_ZSTD_CStreamInSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
# 1122|   
# 1123|           z = sym_ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1);
# 1124|->         if (sym_ZSTD_isError(z))
# 1125|                   log_debug("Failed to enable ZSTD checksum, ignoring: %s", sym_ZSTD_getErrorName(z));
# 1126|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
systemd-258/src/basic/compress.c:1124:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_CStreamOutSize())’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1118:20: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1120:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1120:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1120:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1124:13: danger: ‘malloc(sym_ZSTD_CStreamOutSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 1122|   
# 1123|           z = sym_ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1);
# 1124|->         if (sym_ZSTD_isError(z))
# 1125|                   log_debug("Failed to enable ZSTD checksum, ignoring: %s", sym_ZSTD_getErrorName(z));
# 1126|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
systemd-258/src/basic/compress.c:1125:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_CStreamInSize())’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1117:19: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1120:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1120:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1123:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1124:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/compress.c:1125:17: branch_true: ...to here
systemd-258/src/basic/compress.c:1125:17: branch_true: following ‘true’ branch...
systemd-258/src/basic/compress.c:1125:17: branch_true: ...to here
systemd-258/src/basic/compress.c:1125:17: danger: ‘malloc(sym_ZSTD_CStreamInSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
# 1123|           z = sym_ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1);
# 1124|           if (sym_ZSTD_isError(z))
# 1125|->                 log_debug("Failed to enable ZSTD checksum, ignoring: %s", sym_ZSTD_getErrorName(z));
# 1126|   
# 1127|           /* This loop read from the input file, compresses that entire chunk,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
systemd-258/src/basic/compress.c:1125:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_CStreamOutSize())’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1118:20: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1120:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1120:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1120:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1124:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/compress.c:1125:17: branch_true: ...to here
systemd-258/src/basic/compress.c:1125:17: branch_true: following ‘true’ branch...
systemd-258/src/basic/compress.c:1125:17: branch_true: ...to here
systemd-258/src/basic/compress.c:1125:17: danger: ‘malloc(sym_ZSTD_CStreamOutSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
# 1123|           z = sym_ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1);
# 1124|           if (sym_ZSTD_isError(z))
# 1125|->                 log_debug("Failed to enable ZSTD checksum, ignoring: %s", sym_ZSTD_getErrorName(z));
# 1126|   
# 1127|           /* This loop read from the input file, compresses that entire chunk,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
systemd-258/src/basic/compress.c:1160:37: warning[-Wanalyzer-malloc-leak]: leak of ‘output.dst’
systemd-258/src/basic/compress.c:1099:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1100:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1103:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1111:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1115:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1118:20: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1120:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1120:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1120:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1140:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1144:29: branch_false: ...to here
systemd-258/src/basic/compress.c:1147:45: branch_false: following ‘false’ branch (when ‘finished == 0’)...
systemd-258/src/basic/compress.c:1148:40: branch_false: ...to here
systemd-258/src/basic/compress.c:1160:37: danger: ‘output.dst’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
# 1158|                            * iteration.
# 1159|                            */
# 1160|->                         remaining = sym_ZSTD_compressStream2(
# 1161|                                   cctx, &output, &input,
# 1162|                                   is_last_chunk ? ZSTD_e_end : ZSTD_e_continue);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
systemd-258/src/basic/compress.c:1227:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_DStreamInSize())’
systemd-258/src/basic/compress.c:1208:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1209:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1209:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1212:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1220:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1223:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1225:19: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1227:16: danger: ‘malloc(sym_ZSTD_DStreamInSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
# 1225|           in_buff = malloc(in_allocsize);
# 1226|           out_buff = malloc(out_allocsize);
# 1227|->         dctx = sym_ZSTD_createDCtx();
# 1228|           if (!dctx || !out_buff || !in_buff)
# 1229|                   return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
systemd-258/src/basic/compress.c:1227:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(sym_ZSTD_DStreamOutSize())’
systemd-258/src/basic/compress.c:1208:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1209:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1209:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1212:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1220:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1223:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1226:20: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1227:16: danger: ‘malloc(sym_ZSTD_DStreamOutSize())’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
# 1225|           in_buff = malloc(in_allocsize);
# 1226|           out_buff = malloc(out_allocsize);
# 1227|->         dctx = sym_ZSTD_createDCtx();
# 1228|           if (!dctx || !out_buff || !in_buff)
# 1229|                   return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
systemd-258/src/basic/compress.c:1276:39: warning[-Wanalyzer-malloc-leak]: leak of ‘output.dst’
systemd-258/src/basic/compress.c:1208:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1209:9: branch_false: ...to here
systemd-258/src/basic/compress.c:1209:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1212:50: branch_false: ...to here
systemd-258/src/basic/compress.c:1220:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1223:24: branch_false: ...to here
systemd-258/src/basic/compress.c:1226:20: acquire_memory: allocated here
systemd-258/src/basic/compress.c:1228:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1228:13: branch_false: ...to here
systemd-258/src/basic/compress.c:1228:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1247:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1249:20: branch_false: ...to here
systemd-258/src/basic/compress.c:1249:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/compress.c:1252:29: branch_false: ...to here
systemd-258/src/basic/compress.c:1261:24: branch_true: following ‘true’ branch...
systemd-258/src/basic/compress.c:1262:40: branch_true: ...to here
systemd-258/src/basic/compress.c:1276:39: danger: ‘output.dst’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
# 1274|                            * an error.
# 1275|                            */
# 1276|->                         last_result = sym_ZSTD_decompressStream(dctx, &output, &input);
# 1277|                           if (sym_ZSTD_isError(last_result)) {
# 1278|                                   has_error = true;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def141]
systemd-258/src/basic/conf-files.c:869:13: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
systemd-258/src/basic/conf-files.c:791:5: enter_function: entry to ‘conf_file_read’
systemd-258/src/basic/conf-files.c:800:32: release_memory: ‘_f’ is NULL
systemd-258/src/basic/conf-files.c:806:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/conf-files.c:808:13: branch_false: ...to here
systemd-258/src/basic/conf-files.c:808:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/basic/conf-files.c:814:20: branch_false: ...to here
systemd-258/src/basic/conf-files.c:814:19: branch_true: following ‘true’ branch...
systemd-258/src/basic/conf-files.c:815:21: branch_true: ...to here
systemd-258/src/basic/conf-files.c:816:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/conf-files.c:818:17: branch_false: ...to here
systemd-258/src/basic/conf-files.c:821:20: branch_true: following ‘true’ branch...
systemd-258/src/basic/conf-files.c:822:30: branch_true: ...to here
systemd-258/src/basic/conf-files.c:835:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/conf-files.c:839:12: branch_false: ...to here
systemd-258/src/basic/conf-files.c:839:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
 branch_false: ...to here
systemd-258/src/basic/conf-files.c:850:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/conf-files.c:852:20: branch_false: ...to here
systemd-258/src/basic/conf-files.c:852:20: branch_true: following ‘true’ branch...
systemd-258/src/basic/conf-files.c:845:38: call_function: inlined call to ‘freep’ from ‘conf_file_read’
systemd-258/src/basic/conf-files.c:869:13: danger: argument 1 (‘f’) NULL where non-null expected
#  867|           }
#  868|   
#  869|->         if (ferror(f))
#  870|                   RET_GATHER(r, log_error_errno(SYNTHETIC_ERRNO(EIO), "Failed to read from file %s.", fn));
#  871|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def142]
systemd-258/src/basic/dlfcn-util.c:10:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/basic/dlfcn-util.c:49:5: enter_function: entry to ‘dlopen_many_sym_or_warn_sentinel’
systemd-258/src/basic/dlfcn-util.c:53:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/dlfcn-util.c:56:14: branch_false: ...to here
systemd-258/src/basic/dlfcn-util.c:57:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/dlfcn-util.c:61:9: branch_false: ...to here
systemd-258/src/basic/dlfcn-util.c:64:9: acquire_resource: ‘va_start’ called here
systemd-258/src/basic/dlfcn-util.c:65:13: call_function: calling ‘dlsym_many_or_warnv’ from ‘dlopen_many_sym_or_warn_sentinel’
systemd-258/src/basic/dlfcn-util.c:50:35: call_function: inlined call to ‘dlclosep’ from ‘dlopen_many_sym_or_warn_sentinel’
systemd-258/src/basic/dlfcn-util.c:50:35: call_function: inlined call to ‘dlclosep’ from ‘dlopen_many_sym_or_warn_sentinel’
systemd-258/src/basic/dlfcn-util.c:10:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#    8|                   return NULL;
#    9|   
#   10|->         assert_se(dlclose(dl) == 0);
#   11|           return NULL;
#   12|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def143]
systemd-258/src/basic/dlfcn-util.c:29:32: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/basic/dlfcn-util.c:38:5: enter_function: entry to ‘dlsym_many_or_warn_sentinel’
systemd-258/src/basic/dlfcn-util.c:42:9: acquire_resource: ‘va_start’ called here
systemd-258/src/basic/dlfcn-util.c:43:13: call_function: calling ‘dlsym_many_or_warnv’ from ‘dlsym_many_or_warn_sentinel’
#   27|                   tfn = (typeof(tfn)) dlsym(dl, symbol);
#   28|                   if (!tfn)
#   29|->                         return log_full_errno(log_level,
#   30|                                                 SYNTHETIC_ERRNO(ELIBBAD),
#   31|                                                 "Can't find symbol %s: %s", symbol, dlerror());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
systemd-258/src/basic/dlfcn-util.h:11:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#    9|   
#   10|   static inline void dlclosep(void **dlp) {
#   11|->         safe_dlclose(*dlp);
#   12|   }
#   13|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
systemd-258/src/basic/env-file.c:107:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/basic/env-file.c:563:5: enter_function: entry to ‘merge_env_file’
systemd-258/src/basic/env-file.c:568:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-file.c:569:9: branch_false: ...to here
systemd-258/src/basic/env-file.c:569:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-file.c:575:16: branch_false: ...to here
systemd-258/src/basic/env-file.c:575:16: call_function: calling ‘parse_env_file_internal’ from ‘merge_env_file’
#  105|                                   state = PRE_KEY;
#  106|                                   line++;
#  107|->                                 key[n_key] = 0;
#  108|   
#  109|                                   if (value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
systemd-258/src/basic/env-file.c:146:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/basic/env-file.c:563:5: enter_function: entry to ‘merge_env_file’
systemd-258/src/basic/env-file.c:568:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-file.c:569:9: branch_false: ...to here
systemd-258/src/basic/env-file.c:569:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-file.c:575:16: branch_false: ...to here
systemd-258/src/basic/env-file.c:575:16: call_function: calling ‘parse_env_file_internal’ from ‘merge_env_file’
#  144|                                   line++;
#  145|   
#  146|->                                 key[n_key] = 0;
#  147|   
#  148|                                   if (value)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
systemd-258/src/basic/env-file.c:271:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/basic/env-file.c:563:5: enter_function: entry to ‘merge_env_file’
systemd-258/src/basic/env-file.c:568:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-file.c:569:9: branch_false: ...to here
systemd-258/src/basic/env-file.c:569:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-file.c:575:16: branch_false: ...to here
systemd-258/src/basic/env-file.c:575:16: call_function: calling ‘parse_env_file_internal’ from ‘merge_env_file’
#  269|                      DOUBLE_QUOTE_VALUE_ESCAPE)) {
#  270|   
#  271|->                 key[n_key] = 0;
#  272|   
#  273|                   if (value)

Error: GCC_ANALYZER_WARNING (CWE-762): [#def148]
systemd-258/src/basic/env-util.c:940:29: warning[-Wanalyzer-mismatching-deallocation]: ‘n’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
systemd-258/src/basic/env-util.c:892:5: enter_function: entry to ‘replace_env_argv’
systemd-258/src/basic/env-util.c:904:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-util.c:906:13: branch_false: ...to here
systemd-258/src/basic/env-util.c:908:13: call_function: calling ‘malloc_multiply’ from ‘replace_env_argv’
systemd-258/src/basic/env-util.c:908:13: return_function: returning to ‘replace_env_argv’ from ‘malloc_multiply’
systemd-258/src/basic/env-util.c:909:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/env-util.c:912:9: branch_true: following ‘true’ branch...
systemd-258/src/basic/env-util.c:916:21: branch_true: ...to here
systemd-258/src/basic/env-util.c:916:20: branch_true: following ‘true’ branch...
systemd-258/src/basic/env-util.c:916:40: branch_true: ...to here
systemd-258/src/basic/env-util.c:922:29: call_function: calling ‘env_name_is_valid’ from ‘replace_env_argv’
systemd-258/src/basic/env-util.c:922:29: return_function: returning to ‘replace_env_argv’ from ‘env_name_is_valid’
systemd-258/src/basic/env-util.c:930:35: branch_false: following ‘false’ branch (when ‘ret_bad_variables’ is NULL)...
systemd-258/src/basic/env-util.c:937:29: branch_false: ...to here
systemd-258/src/basic/env-util.c:940:29: danger: deallocated with ‘reallocarray’ here; allocation at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8) expects deallocation with ‘free’
#  938|                           l = l + q - 1;
#  939|   
#  940|->                         w = reallocarray(n, l + 1, sizeof(char*));
#  941|                           if (!w)
#  942|                                   return -ENOMEM;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def149]
systemd-258/src/basic/errno-util.h:24:12: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/libsystemd/sd-bus/bus-error.c:554:14: enter_function: entry to ‘sd_bus_error_set_errnof’
systemd-258/src/libsystemd/sd-bus/bus-error.c:560:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
systemd-258/src/libsystemd/sd-bus/bus-error.c:562:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-error.c:562:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-error.c:565:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-error.c:565:9: call_function: calling ‘bus_error_is_dirty’ from ‘sd_bus_error_set_errnof’
systemd-258/src/libsystemd/sd-bus/bus-error.c:565:9: return_function: returning to ‘sd_bus_error_set_errnof’ from ‘bus_error_is_dirty’
systemd-258/src/libsystemd/sd-bus/bus-error.c:565:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-error.c:567:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-error.c:567:12: branch_true: following ‘true’ branch (when ‘format’ is non-NULL)...
systemd-258/src/libsystemd/sd-bus/bus-error.c:568:25: branch_true: ...to here
systemd-258/src/libsystemd/sd-bus/bus-error.c:570:17: acquire_resource: ‘va_start’ called here
systemd-258/src/libsystemd/sd-bus/bus-error.c:571:21: call_function: calling ‘sd_bus_error_set_errnofv’ from ‘sd_bus_error_set_errnof’
#   22|   
#   23|   static inline void _reset_errno_(int *saved_errno) {
#   24|->         if (*saved_errno < 0) /* Invalidated by UNPROTECT_ERRNO? */
#   25|                   return;
#   26|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def150]
systemd-258/src/basic/errno-util.h:27:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:27:5: enter_function: entry to ‘pam_syslog_errno’
systemd-258/src/shared/pam-util.c:32:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:30:9: call_function: calling ‘_reset_errno_’ from ‘pam_syslog_errno’
systemd-258/src/shared/pam-util.c:30:9: return_function: returning to ‘pam_syslog_errno’ from ‘_reset_errno_’
systemd-258/src/basic/errno-util.h:27:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#   25|                   return;
#   26|   
#   27|->         errno = *saved_errno;
#   28|   }
#   29|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
systemd-258/src/basic/escape.c:434:9: warning[-Wanalyzer-malloc-leak]: leak of ‘prev2’
systemd-258/src/basic/escape.c:365:7: enter_function: entry to ‘xescape_full’
systemd-258/src/basic/escape.c:381:15: call_function: calling ‘malloc_multiply’ from ‘xescape_full’
systemd-258/src/basic/escape.c:381:15: return_function: returning to ‘xescape_full’ from ‘malloc_multiply’
systemd-258/src/basic/escape.c:382:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/escape.c:385:26: branch_false: ...to here
systemd-258/src/basic/escape.c:394:28: branch_true: following ‘true’ branch...
systemd-258/src/basic/escape.c:424:20: branch_true: ...to here
systemd-258/src/basic/escape.c:426:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/escape.c:434:9: branch_true: ...to here
systemd-258/src/basic/escape.c:434:9: branch_true: following ‘true’ branch...
systemd-258/src/basic/escape.c:434:9: branch_true: ...to here
systemd-258/src/basic/escape.c:434:9: danger: ‘prev2’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  432|           else
#  433|                   off = console_width - c;
#  434|->         assert(off <= (size_t) (t - ans));
#  435|   
#  436|           memcpy(ans + off, "...", c);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
systemd-258/src/basic/escape.c:517:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(strlen(s) * 4 + 1, 1)’
systemd-258/src/basic/escape.c:539:7: enter_function: entry to ‘shell_escape’
systemd-258/src/basic/escape.c:542:15: call_function: calling ‘malloc_multiply’ from ‘shell_escape’
systemd-258/src/basic/escape.c:542:15: return_function: returning to ‘shell_escape’ from ‘malloc_multiply’
systemd-258/src/basic/escape.c:543:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/escape.c:546:13: branch_false: ...to here
systemd-258/src/basic/escape.c:546:13: call_function: calling ‘strcpy_backslash_escaped’ from ‘shell_escape’
#  515|   
#  516|   static char* strcpy_backslash_escaped(char *t, const char *s, const char *bad) {
#  517|->         assert(bad);
#  518|           assert(t);
#  519|           assert(s);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
systemd-258/src/basic/escape.c:518:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(strlen(s) * 4 + <unknown> + 2, 1)’
systemd-258/src/basic/escape.c:552:7: enter_function: entry to ‘shell_maybe_quote’
systemd-258/src/basic/escape.c:563:21: branch_true: following ‘true’ branch...
systemd-258/src/basic/escape.c:564:25: branch_true: ...to here
systemd-258/src/basic/escape.c:573:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/escape.c:576:15: branch_false: ...to here
systemd-258/src/basic/escape.c:576:15: call_function: calling ‘malloc_multiply’ from ‘shell_maybe_quote’
systemd-258/src/basic/escape.c:576:15: return_function: returning to ‘shell_maybe_quote’ from ‘malloc_multiply’
systemd-258/src/basic/escape.c:577:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/escape.c:581:12: branch_false: ...to here
systemd-258/src/basic/escape.c:589:13: call_function: calling ‘strcpy_backslash_escaped’ from ‘shell_maybe_quote’
#  516|   static char* strcpy_backslash_escaped(char *t, const char *s, const char *bad) {
#  517|           assert(bad);
#  518|->         assert(t);
#  519|           assert(s);
#  520|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
systemd-258/src/basic/escape.c:598:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(strlen(s) * 4 + <unknown> + 2, 1)’
systemd-258/src/basic/escape.c:552:7: enter_function: entry to ‘shell_maybe_quote’
systemd-258/src/basic/escape.c:563:21: branch_true: following ‘true’ branch...
systemd-258/src/basic/escape.c:564:25: branch_true: ...to here
systemd-258/src/basic/escape.c:573:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/escape.c:576:15: branch_false: ...to here
systemd-258/src/basic/escape.c:576:15: call_function: calling ‘malloc_multiply’ from ‘shell_maybe_quote’
systemd-258/src/basic/escape.c:576:15: return_function: returning to ‘shell_maybe_quote’ from ‘malloc_multiply’
systemd-258/src/basic/escape.c:577:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/escape.c:581:12: branch_false: ...to here
systemd-258/src/basic/escape.c:589:13: call_function: calling ‘strcpy_backslash_escaped’ from ‘shell_maybe_quote’
systemd-258/src/basic/escape.c:589:13: return_function: returning to ‘shell_maybe_quote’ from ‘strcpy_backslash_escaped’
systemd-258/src/basic/escape.c:598:16: danger: ‘malloc_multiply(strlen(s) * 4 + <unknown> + 2, 1)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#  596|           *t = 0;
#  597|   
#  598|->         return str_realloc(buf);
#  599|   }
#  600|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
systemd-258/src/basic/escape.h:40:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
systemd-258/src/bootctl/bootctl.c:373:12: enter_function: entry to ‘parse_argv’
systemd-258/src/bootctl/bootctl.c:441:9: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl.c:442:9: branch_false: ...to here
systemd-258/src/bootctl/bootctl.c:442:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/bootctl/bootctl.c:444:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/bootctl/bootctl.c:445:17: branch_true: ...to here
systemd-258/src/bootctl/bootctl.c:574:29: call_function: inlined call to ‘isempty’ from ‘parse_argv’
systemd-258/src/bootctl/bootctl.c:577:43: call_function: inlined call to ‘cescape’ from ‘parse_argv’
#   38|   char* cescape_length(const char *s, size_t n) _nonnull_if_nonzero_(1, 2);
#   39|   static inline char* cescape(const char *s) {
#   40|->         return cescape_length(s, SIZE_MAX);
#   41|   }
#   42|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def156]
systemd-258/src/basic/escape.h:40:16: warning[-Wanalyzer-null-argument]: use of NULL ‘mounted_dir’ where non-null expected
systemd-258/src/bootctl/bootctl.c:700:12: enter_function: entry to ‘run’
systemd-258/src/bootctl/bootctl.c:702:43: release_memory: ‘mounted_dir’ is NULL
systemd-258/src/bootctl/bootctl.c:707:13: call_function: calling ‘parse_argv’ from ‘run’
#   38|   char* cescape_length(const char *s, size_t n) _nonnull_if_nonzero_(1, 2);
#   39|   static inline char* cescape(const char *s) {
#   40|->         return cescape_length(s, SIZE_MAX);
#   41|   }
#   42|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def157]
systemd-258/src/basic/extract-word.c:272:28: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/basic/extract-word.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/extract-word.c:247:9: branch_false: ...to here
systemd-258/src/basic/extract-word.c:252:12: branch_false: following ‘false’ branch (when ‘n != 0’)...
systemd-258/src/basic/extract-word.c:256:20: branch_false: ...to here
systemd-258/src/basic/extract-word.c:256:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/extract-word.c:259:21: branch_false: following ‘false’ branch (when ‘n <= c’)...
systemd-258/src/basic/extract-word.c:270:9: branch_false: ...to here
systemd-258/src/basic/extract-word.c:270:9: acquire_resource: ‘va_start’ called here
systemd-258/src/basic/extract-word.c:271:9: branch_true: following ‘true’ branch...
systemd-258/src/basic/extract-word.c:272:28: branch_true: ...to here
systemd-258/src/basic/extract-word.c:272:28: branch_true: following ‘true’ branch...
systemd-258/src/basic/extract-word.c:272:28: branch_true: ...to here
systemd-258/src/basic/extract-word.c:272:28: danger: missing call to ‘va_end’ to match ‘va_start’ at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  270|           va_start(ap, flags);
#  271|           FOREACH_ARRAY(i, l, n) {
#  272|->                 char **v = ASSERT_PTR(va_arg(ap, char**));
#  273|                   *v = *i;
#  274|           }

Error: COMPILER_WARNING: [#def158] [important]
systemd-258/src/basic/fd-util.c:6:10: error[fatal error]: sys/kcmp.h: No such file or directory
#    4|   #include <linux/fs.h>
#    5|   #include <sys/ioctl.h>
#    6|-> #include <sys/kcmp.h>
#    7|   #include <sys/resource.h>
#    8|   #include <sys/stat.h>

Error: GCC_ANALYZER_WARNING (CWE-775): [#def159]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<unknown>’
systemd-258/src/home/homed-home.c:2769:5: enter_function: entry to ‘home_create_fifo’
systemd-258/src/home/homed-home.c:2775:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-home.c:2777:12: branch_false: ...to here
systemd-258/src/home/homed-home.c:2785:14: branch_true: following ‘true’ branch...
systemd-258/src/home/homed-home.c:2785:14: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-home.c:2785:14: branch_false: ...to here
systemd-258/src/home/homed-home.c:2785:14: branch_true: following ‘true’ branch...
systemd-258/src/home/homed-home.c:2787:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-home.c:2817:18: branch_false: ...to here
systemd-258/src/home/homed-home.c:2817:18: acquire_resource: opened here
systemd-258/src/home/homed-home.c:2818:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-home.c:2770:29: call_function: inlined call to ‘closep’ from ‘home_create_fifo’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def160]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:115:12: enter_function: entry to ‘parse_argv’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:232:28: branch_true: following ‘true’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:236:42: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:231:45: call_function: inlined call to ‘closep’ from ‘parse_argv’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def161]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_close’
systemd-258/src/shared/discover-image.c:1576:5: enter_function: entry to ‘image_set_limit’
systemd-258/src/shared/discover-image.c:1579:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/discover-image.c:1581:13: branch_false: ...to here
systemd-258/src/shared/discover-image.c:1581:13: call_function: calling ‘image_is_vendor’ from ‘image_set_limit’
systemd-258/src/shared/discover-image.c:1581:13: return_function: returning to ‘image_set_limit’ from ‘image_is_vendor’
systemd-258/src/shared/discover-image.c:1581:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/discover-image.c:1581:35: branch_false: ...to here
systemd-258/src/shared/discover-image.c:1581:35: call_function: calling ‘image_is_host’ from ‘image_set_limit’
systemd-258/src/shared/discover-image.c:1581:35: return_function: returning to ‘image_set_limit’ from ‘image_is_host’
systemd-258/src/shared/discover-image.c:1581:13: branch_false: following ‘false’ branch...
systemd-258/src/shared/discover-image.c:1584:13: branch_false: ...to here
systemd-258/src/shared/discover-image.c:1584:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/discover-image.c:1592:39: branch_false: ...to here
systemd-258/src/shared/discover-image.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/discover-image.c:1598:16: branch_false: ...to here
systemd-258/src/shared/discover-image.c:1598:16: call_function: calling ‘image_update_quota’ from ‘image_set_limit’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def162]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
systemd-258/src/core/efi-random.c:12:6: enter_function: entry to ‘lock_down_efi_variables’
systemd-258/src/core/efi-random.c:16:14: acquire_resource: opened here
systemd-258/src/core/efi-random.c:17:12: branch_false: following ‘false’ branch...
systemd-258/src/core/efi-random.c:26:13: branch_false: ...to here
systemd-258/src/core/efi-random.c:26:13: call_function: calling ‘chattr_fd’ from ‘lock_down_efi_variables’
systemd-258/src/core/efi-random.c:13:29: call_function: inlined call to ‘closep’ from ‘lock_down_efi_variables’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def163]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 2818048)’
systemd-258/src/test/test-fd-util.c:683:1: enter_function: entry to ‘test_fds_are_same_mount’
systemd-258/src/test/test-fd-util.c:689:15: acquire_resource: opened here
systemd-258/src/test/test-fd-util.c:691:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:691:13: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:691:13: branch_true: following ‘true’ branch...
systemd-258/src/test/test-fd-util.c:692:31: branch_true: ...to here
systemd-258/src/test/test-fd-util.c:684:71: call_function: inlined call to ‘closep’ from ‘test_fds_are_same_mount’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def164]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524288)’
systemd-258/src/test/test-notify-recv.c:81:1: enter_function: entry to ‘test_notify_socket_prepare’
systemd-258/src/test/test-notify-recv.c:85:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-notify-recv.c:87:41: branch_false: ...to here
systemd-258/src/test/test-notify-recv.c:91:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-notify-recv.c:93:9: branch_false: ...to here
systemd-258/src/test/test-notify-recv.c:93:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-notify-recv.c:95:9: call_function: inlined call to ‘pidref_safe_fork’ from ‘test_notify_socket_prepare’
systemd-258/src/test/test-notify-recv.c:95:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-notify-recv.c:96:12: branch_false: ...to here
systemd-258/src/test/test-notify-recv.c:96:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-notify-recv.c:97:17: branch_true: ...to here
systemd-258/src/test/test-notify-recv.c:97:17: branch_false: following ‘false’ branch (when ‘_result >= 0’)...
systemd-258/src/test/test-notify-recv.c:98:17: branch_false: ...to here
systemd-258/src/test/test-notify-recv.c:98:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-notify-recv.c:101:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-notify-recv.c:102:43: branch_false: ...to here
systemd-258/src/test/test-notify-recv.c:102:43: acquire_resource: opened here
systemd-258/src/test/test-notify-recv.c:103:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-notify-recv.c:105:17: branch_false: ...to here
systemd-258/src/test/test-notify-recv.c:102:37: call_function: inlined call to ‘closep’ from ‘test_notify_socket_prepare’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def165]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/proc", 2818048)’
systemd-258/src/test/test-fd-util.c:683:1: enter_function: entry to ‘test_fds_are_same_mount’
systemd-258/src/test/test-fd-util.c:688:15: acquire_resource: opened here
systemd-258/src/test/test-fd-util.c:691:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:691:13: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:691:13: branch_true: following ‘true’ branch...
systemd-258/src/test/test-fd-util.c:692:31: branch_true: ...to here
systemd-258/src/test/test-fd-util.c:684:57: call_function: inlined call to ‘closep’ from ‘test_fds_are_same_mount’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def166]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/sys", 2818048)’
systemd-258/src/test/test-fd-util.c:683:1: enter_function: entry to ‘test_fds_are_same_mount’
systemd-258/src/test/test-fd-util.c:686:15: acquire_resource: opened here
systemd-258/src/test/test-fd-util.c:691:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:691:13: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:684:29: call_function: inlined call to ‘closep’ from ‘test_fds_are_same_mount’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def167]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(p, 526593)’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:94:13: enter_function: entry to ‘wall_tty_match’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:95:9: call_function: inlined call to ‘path_is_absolute’ from ‘wall_tty_match’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:95:9: branch_false: following ‘false’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:97:21: branch_false: ...to here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:98:12: branch_false: following ‘false’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:103:14: branch_false: ...to here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:103:12: branch_false: following ‘false’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:113:30: branch_false: ...to here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:114:12: branch_false: following ‘false’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:119:34: branch_false: ...to here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:119:34: acquire_resource: opened here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:120:12: branch_false: following ‘false’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:119:29: call_function: inlined call to ‘closep’ from ‘wall_tty_match’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def168]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path_extend_internal(0, p, ".systemd-sysext", 18446744073709551615), 65536)’
systemd-258/src/sysupdate/sysupdate-resource.c:599:5: enter_function: entry to ‘resource_resolve_path’
systemd-258/src/sysupdate/sysupdate-resource.c:609:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:611:13: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:617:12: branch_true: following ‘true’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:625:21: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:625:20: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:629:20: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:629:20: branch_false: following ‘false’ branch (when ‘node’ is NULL)...
systemd-258/src/sysupdate/sysupdate-resource.c:637:20: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:637:20: branch_false: following ‘false’ branch (when ‘root’ is NULL)...
systemd-258/src/sysupdate/sysupdate-resource.c:641:29: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:642:21: call_function: inlined call to ‘RET_NERRNO’ from ‘resource_resolve_path’
systemd-258/src/sysupdate/sysupdate-resource.c:644:28: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:648:29: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:649:28: branch_true: following ‘true’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:650:37: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:650:37: call_function: calling ‘get_sysext_overlay_block’ from ‘resource_resolve_path’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def169]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path_extend_internal(0, root,  path_extend_internal(0, base,  hierarchy_as_single_path_component(hierarchy), 18446744073709551615), 18446744073709551615), 589824)’
systemd-258/src/sysext/sysext.c:905:12: enter_function: entry to ‘resolve_mutable_directory’
systemd-258/src/sysext/sysext.c:915:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:916:9: branch_false: ...to here
systemd-258/src/sysext/sysext.c:916:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:918:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:918:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:924:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:924:13: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:931:20: branch_false: ...to here
systemd-258/src/sysext/sysext.c:931:20: call_function: calling ‘hierarchy_as_single_path_component’ from ‘resolve_mutable_directory’
systemd-258/src/sysext/sysext.c:931:20: return_function: returning to ‘resolve_mutable_directory’ from ‘hierarchy_as_single_path_component’
systemd-258/src/sysext/sysext.c:932:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:935:16: branch_false: ...to here
systemd-258/src/sysext/sysext.c:936:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:939:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:939:13: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:948:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:952:20: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:955:21: branch_false: ...to here
systemd-258/src/sysext/sysext.c:956:20: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:959:44: branch_false: ...to here
systemd-258/src/sysext/sysext.c:959:44: acquire_resource: opened here
systemd-258/src/sysext/sysext.c:960:20: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:963:21: branch_false: ...to here
systemd-258/src/sysext/sysext.c:959:37: call_function: inlined call to ‘closep’ from ‘resolve_mutable_directory’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def170]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_fd’
systemd-258/src/import/import.c:88:12: enter_function: entry to ‘open_source’
systemd-258/src/import/import.c:92:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import.c:93:9: branch_false: ...to here
systemd-258/src/import/import.c:93:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import.c:95:12: branch_false: ...to here
systemd-258/src/import/import.c:95:12: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
systemd-258/src/import/import.c:96:27: branch_true: ...to here
systemd-258/src/import/import.c:96:27: acquire_resource: opened here
systemd-258/src/import/import.c:97:20: branch_false: following ‘false’ branch...
systemd-258/src/import/import.c:102:21: branch_false: ...to here
systemd-258/src/import/import.c:102:20: branch_true: following ‘true’ branch...
systemd-258/src/import/import.c:103:25: branch_true: ...to here
systemd-258/src/import/import.c:103:25: branch_true: following ‘true’ branch...
systemd-258/src/import/import.c:103:25: branch_true: ...to here
systemd-258/src/import/import.c:89:29: call_function: inlined call to ‘closep’ from ‘open_source’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def171]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘privcmd_fd’
systemd-258/src/shared/reboot-util.c:140:12: enter_function: entry to ‘xen_kexec_loaded’
systemd-258/src/shared/reboot-util.c:147:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/reboot-util.c:153:16: branch_false: ...to here
systemd-258/src/shared/reboot-util.c:154:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/reboot-util.c:157:22: branch_false: ...to here
systemd-258/src/shared/reboot-util.c:157:22: acquire_resource: opened here
systemd-258/src/shared/reboot-util.c:158:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/reboot-util.c:161:18: branch_false: ...to here
systemd-258/src/shared/reboot-util.c:162:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/reboot-util.c:165:18: branch_false: ...to here
systemd-258/src/shared/reboot-util.c:166:12: branch_true: following ‘true’ branch (when ‘buffer == 18446744073709551615’)...
systemd-258/src/shared/reboot-util.c:167:24: branch_true: ...to here
systemd-258/src/shared/reboot-util.c:142:29: call_function: inlined call to ‘closep’ from ‘xen_kexec_loaded’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def172]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rfd’
systemd-258/src/basic/user-util.c:177:13: enter_function: entry to ‘default_root_shell’
systemd-258/src/basic/user-util.c:180:15: acquire_resource: opened here
systemd-258/src/basic/user-util.c:181:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/user-util.c:184:16: branch_false: ...to here
systemd-258/src/basic/user-util.c:184:16: call_function: calling ‘default_root_shell_at’ from ‘default_root_shell’
systemd-258/src/basic/user-util.c:178:29: call_function: inlined call to ‘closep’ from ‘default_root_shell’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def173]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sk’
systemd-258/src/basic/fileio.c:1070:5: enter_function: entry to ‘xfopenat_full’
systemd-258/src/basic/fileio.c:1082:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1083:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1083:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1084:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1084:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1085:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1085:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1087:13: branch_false: ...to here
systemd-258/src/basic/fileio.c:1087:13: call_function: calling ‘xfopenat_regular’ from ‘xfopenat_full’
systemd-258/src/basic/fileio.c:1087:13: return_function: returning to ‘xfopenat_full’ from ‘xfopenat_regular’
systemd-258/src/basic/fileio.c:1088:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/fileio.c:1090:21: call_function: calling ‘xfopenat_unix_socket’ from ‘xfopenat_full’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def174]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘state_fd’
systemd-258/src/sleep/sleep.c:494:12: enter_function: entry to ‘execute_s2h’
systemd-258/src/sleep/sleep.c:497:9: branch_false: following ‘false’ branch...
systemd-258/src/sleep/sleep.c:501:31: branch_false: ...to here
systemd-258/src/sleep/sleep.c:501:12: branch_true: following ‘true’ branch...
systemd-258/src/sleep/sleep.c:502:21: branch_true: ...to here
systemd-258/src/sleep/sleep.c:513:12: branch_true: following ‘true’ branch (when ‘r > 0’)...
systemd-258/src/sleep/sleep.c:514:17: branch_true: ...to here
systemd-258/src/sleep/sleep.c:515:21: call_function: calling ‘execute’ from ‘execute_s2h’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/basic/fileio.c:932:6: enter_function: entry to ‘xopendirat’
systemd-258/src/basic/fileio.c:935:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:936:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:936:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:937:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:937:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:939:13: branch_false: ...to here
systemd-258/src/basic/fileio.c:939:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/fileio.c:940:24: branch_true: ...to here
systemd-258/src/basic/fileio.c:940:24: acquire_memory: allocated here
systemd-258/src/basic/fileio.c:933:29: call_function: inlined call to ‘closep’ from ‘xopendirat’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/basic/fileio.c:1070:5: enter_function: entry to ‘xfopenat_full’
systemd-258/src/basic/fileio.c:1082:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1083:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1083:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1084:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1084:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1085:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1085:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1087:13: branch_false: ...to here
systemd-258/src/basic/fileio.c:1087:13: call_function: calling ‘xfopenat_regular’ from ‘xfopenat_full’
systemd-258/src/basic/fileio.c:1087:13: return_function: returning to ‘xfopenat_full’ from ‘xfopenat_regular’
systemd-258/src/basic/fileio.c:1088:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/fileio.c:1090:21: call_function: calling ‘xfopenat_unix_socket’ from ‘xfopenat_full’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-malloc-leak]: leak of ‘take_fdopen(&fd,  mode)’
systemd-258/src/basic/fileio.c:995:12: enter_function: entry to ‘xfopenat_regular’
systemd-258/src/basic/fileio.c:1000:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1001:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1001:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1002:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1002:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1003:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1003:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1005:13: branch_false: ...to here
systemd-258/src/basic/fileio.c:1005:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1008:37: branch_false: ...to here
systemd-258/src/basic/fileio.c:1011:30: call_function: calling ‘fopen_mode_to_flags’ from ‘xfopenat_regular’
systemd-258/src/basic/fileio.c:1011:30: return_function: returning to ‘xfopenat_regular’ from ‘fopen_mode_to_flags’
systemd-258/src/basic/fileio.c:1012:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1015:22: branch_false: ...to here
systemd-258/src/basic/fileio.c:1016:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1019:21: branch_false: ...to here
systemd-258/src/basic/fileio.c:1019:21: call_function: calling ‘take_fdopen’ from ‘xfopenat_regular’
systemd-258/src/basic/fileio.c:1019:21: return_function: returning to ‘xfopenat_regular’ from ‘take_fdopen’
systemd-258/src/basic/fileio.c:1008:37: call_function: inlined call to ‘closep’ from ‘xfopenat_regular’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def178]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘connect_seqpacket’
systemd-258/src/test/test-socket-util.c:481:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-socket-util.c:481:9: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:475:107: call_function: inlined call to ‘closep’ from ‘test_flush_accept’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def179]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘e’
systemd-258/src/test/test-fd-util.c:72:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-fd-util.c:72:9: branch_true: ...to here
systemd-258/src/test/test-fd-util.c:70:41: call_function: inlined call to ‘closep’ from ‘test_same_fd’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def180]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd3’
systemd-258/src/test/test-socket-util.c:545:39: call_function: inlined call to ‘closep’ from ‘test_sockaddr_un_set_path’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def181]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘fd’
systemd-258/src/test/test-label.c:109:29: call_function: inlined call to ‘closep’ from ‘test_label_ops_pre’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def182]
systemd-258/src/basic/fd-util.h:85:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/basic/os-util.c:438:5: enter_function: entry to ‘os_release_support_ended’
systemd-258/src/basic/os-util.c:442:12: branch_true: following ‘true’ branch (when ‘support_end’ is NULL)...
systemd-258/src/basic/os-util.c:446:21: branch_true: ...to here
systemd-258/src/basic/os-util.c:446:21: call_function: calling ‘parse_extension_release_sentinel’ from ‘os_release_support_ended’
#   83|   
#   84|   static inline void closep(int *fd) {
#   85|->         safe_close(*fd);
#   86|   }
#   87|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘_var_’
systemd-258/src/import/import-common.c:23:5: enter_function: entry to ‘import_fork_tar_x’
systemd-258/src/import/import-common.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:30:9: branch_false: ...to here
systemd-258/src/import/import-common.c:30:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:32:13: branch_false: ...to here
systemd-258/src/import/import-common.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:35:23: branch_false: ...to here
systemd-258/src/import/import-common.c:41:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:43:12: branch_false: ...to here
systemd-258/src/import/import-common.c:43:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:87:9: branch_false: ...to here
systemd-258/src/import/import-common.c:24:34: call_function: inlined call to ‘close_pairp’ from ‘import_fork_tar_x’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errno_pipe_fd[0]’
systemd-258/src/machine/image.c:96:5: enter_function: entry to ‘image_clean_pool_operation’
systemd-258/src/machine/image.c:102:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/image.c:103:9: branch_false: ...to here
systemd-258/src/machine/image.c:103:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/image.c:105:13: branch_false: ...to here
systemd-258/src/machine/image.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/image.c:111:21: branch_false: ...to here
systemd-258/src/machine/image.c:97:34: call_function: inlined call to ‘close_pairp’ from ‘image_clean_pool_operation’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def185]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘errno_pipe_fd[1]’
systemd-258/src/machine/image.c:96:5: enter_function: entry to ‘image_clean_pool_operation’
systemd-258/src/machine/image.c:102:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/image.c:103:9: branch_false: ...to here
systemd-258/src/machine/image.c:103:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/image.c:105:13: branch_false: ...to here
systemd-258/src/machine/image.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/image.c:111:21: branch_false: ...to here
systemd-258/src/machine/image.c:97:34: call_function: inlined call to ‘close_pairp’ from ‘image_clean_pool_operation’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def186]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘error_pipe[0]’
systemd-258/src/shared/elf-util.c:766:5: enter_function: entry to ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:775:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/elf-util.c:777:13: branch_false: ...to here
systemd-258/src/shared/elf-util.c:778:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/elf-util.c:781:13: branch_false: ...to here
systemd-258/src/shared/elf-util.c:782:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/elf-util.c:785:13: branch_false: ...to here
systemd-258/src/shared/elf-util.c:785:13: call_function: inlined call to ‘RET_NERRNO’ from ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:789:12: branch_false: ...to here
systemd-258/src/shared/elf-util.c:771:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:770:34: call_function: inlined call to ‘close_pairp’ from ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:768:34: call_function: inlined call to ‘close_pairp’ from ‘parse_elf_object’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def187]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘error_pipe[1]’
systemd-258/src/shared/elf-util.c:766:5: enter_function: entry to ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:775:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/elf-util.c:777:13: branch_false: ...to here
systemd-258/src/shared/elf-util.c:778:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/elf-util.c:781:13: branch_false: ...to here
systemd-258/src/shared/elf-util.c:782:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/elf-util.c:785:13: branch_false: ...to here
systemd-258/src/shared/elf-util.c:785:13: call_function: inlined call to ‘RET_NERRNO’ from ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:789:12: branch_false: ...to here
systemd-258/src/shared/elf-util.c:790:21: call_function: inlined call to ‘RET_NERRNO’ from ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:771:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:770:34: call_function: inlined call to ‘close_pairp’ from ‘parse_elf_object’
systemd-258/src/shared/elf-util.c:768:34: call_function: inlined call to ‘close_pairp’ from ‘parse_elf_object’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def188]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
systemd-258/src/shared/pager.c:95:6: enter_function: entry to ‘pager_open’
systemd-258/src/shared/pager.c:102:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:105:13: branch_false: ...to here
systemd-258/src/shared/pager.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:108:13: branch_false: ...to here
systemd-258/src/shared/pager.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:111:14: branch_false: ...to here
systemd-258/src/shared/pager.c:111:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:114:17: branch_true: ...to here
systemd-258/src/shared/pager.c:115:12: branch_true: following ‘true’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:116:25: branch_true: ...to here
systemd-258/src/shared/pager.c:118:12: branch_false: following ‘false’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:130:16: branch_false: ...to here
systemd-258/src/shared/pager.c:133:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:137:13: branch_false: ...to here
systemd-258/src/shared/pager.c:137:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:138:31: branch_true: ...to here
systemd-258/src/shared/pager.c:97:36: call_function: calling ‘strv_freep’ from ‘pager_open’
systemd-258/src/shared/pager.c:97:36: return_function: returning to ‘pager_open’ from ‘strv_freep’
systemd-258/src/shared/pager.c:96:34: call_function: inlined call to ‘close_pairp’ from ‘pager_open’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
systemd-258/src/shared/pager.c:95:6: enter_function: entry to ‘pager_open’
systemd-258/src/shared/pager.c:102:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:105:13: branch_false: ...to here
systemd-258/src/shared/pager.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:108:13: branch_false: ...to here
systemd-258/src/shared/pager.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:111:14: branch_false: ...to here
systemd-258/src/shared/pager.c:111:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:114:17: branch_true: ...to here
systemd-258/src/shared/pager.c:115:12: branch_true: following ‘true’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:116:25: branch_true: ...to here
systemd-258/src/shared/pager.c:118:12: branch_false: following ‘false’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:130:16: branch_false: ...to here
systemd-258/src/shared/pager.c:133:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:137:13: branch_false: ...to here
systemd-258/src/shared/pager.c:137:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:138:31: branch_true: ...to here
systemd-258/src/shared/pager.c:97:36: call_function: calling ‘strv_freep’ from ‘pager_open’
systemd-258/src/shared/pager.c:97:36: return_function: returning to ‘pager_open’ from ‘strv_freep’
systemd-258/src/shared/pager.c:96:34: call_function: inlined call to ‘close_pairp’ from ‘pager_open’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘gpg_pipe[1]’
systemd-258/src/import/pull-common.c:397:12: enter_function: entry to ‘verify_gpg’
systemd-258/src/import/pull-common.c:407:9: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-common.c:408:9: branch_false: ...to here
systemd-258/src/import/pull-common.c:408:9: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-common.c:410:13: branch_false: ...to here
systemd-258/src/import/pull-common.c:411:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/import/pull-common.c:414:12: branch_false: ...to here
systemd-258/src/import/pull-common.c:429:12: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-common.c:435:38: branch_false: ...to here
systemd-258/src/import/pull-common.c:439:12: branch_true: following ‘true’ branch...
systemd-258/src/import/pull-common.c:404:40: branch_true: ...to here
systemd-258/src/import/pull-common.c:401:34: call_function: inlined call to ‘close_pairp’ from ‘verify_gpg’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘outpipe[0]’
systemd-258/src/udev/udev-spawn.c:228:5: enter_function: entry to ‘udev_event_spawn’
systemd-258/src/udev/udev-spawn.c:238:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:239:9: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:241:9: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:241:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:242:9: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:244:12: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:266:20: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:270:34: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:272:20: branch_true: following ‘true’ branch...
systemd-258/src/udev/udev-spawn.c:273:32: branch_true: ...to here
systemd-258/src/udev/udev-spawn.c:273:32: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:270:34: call_function: inlined call to ‘close_pairp’ from ‘udev_event_spawn’
systemd-258/src/udev/udev-spawn.c:264:34: call_function: inlined call to ‘close_pairp’ from ‘udev_event_spawn’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘outpipe[1]’
systemd-258/src/udev/udev-spawn.c:228:5: enter_function: entry to ‘udev_event_spawn’
systemd-258/src/udev/udev-spawn.c:238:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:239:9: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:241:9: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:241:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:242:9: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:244:12: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:266:20: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:270:34: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:272:20: branch_true: following ‘true’ branch...
systemd-258/src/udev/udev-spawn.c:273:32: branch_true: ...to here
systemd-258/src/udev/udev-spawn.c:273:32: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:270:34: call_function: inlined call to ‘close_pairp’ from ‘udev_event_spawn’
systemd-258/src/udev/udev-spawn.c:264:34: call_function: inlined call to ‘close_pairp’ from ‘udev_event_spawn’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[0]’
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1014:12: enter_function: entry to ‘connect_as’
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1026:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1029:13: call_function: inlined call to ‘safe_fork’ from ‘connect_as’
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1015:34: call_function: inlined call to ‘close_pairp’ from ‘connect_as’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def194]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pfd[1]’
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1014:12: enter_function: entry to ‘connect_as’
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1026:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1029:13: call_function: inlined call to ‘safe_fork’ from ‘connect_as’
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1015:34: call_function: inlined call to ‘close_pairp’ from ‘connect_as’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def195]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[0]’
systemd-258/src/import/import-common.c:92:5: enter_function: entry to ‘import_fork_tar_c’
systemd-258/src/import/import-common.c:98:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:99:9: branch_false: ...to here
systemd-258/src/import/import-common.c:99:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:101:13: branch_false: ...to here
systemd-258/src/import/import-common.c:101:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:104:23: branch_false: ...to here
systemd-258/src/import/import-common.c:110:12: branch_true: following ‘true’ branch...
systemd-258/src/import/import-common.c:93:34: call_function: inlined call to ‘close_pairp’ from ‘import_fork_tar_c’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def196]
systemd-258/src/basic/fd-util.h:89:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipefd[1]’
systemd-258/src/import/import-common.c:23:5: enter_function: entry to ‘import_fork_tar_x’
systemd-258/src/import/import-common.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:30:9: branch_false: ...to here
systemd-258/src/import/import-common.c:30:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:32:13: branch_false: ...to here
systemd-258/src/import/import-common.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-common.c:35:23: branch_false: ...to here
systemd-258/src/import/import-common.c:41:12: branch_true: following ‘true’ branch...
systemd-258/src/import/import-common.c:24:34: call_function: inlined call to ‘close_pairp’ from ‘import_fork_tar_x’
#   87|   
#   88|   static inline void close_pairp(int (*p)[2]) {
#   89|->         safe_close_pair(*p);
#   90|   }
#   91|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def197]
systemd-258/src/basic/fd-util.h:93:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
systemd-258/src/resolve/resolved-resolv-conf.c:74:5: enter_function: entry to ‘manager_read_resolv_conf’
systemd-258/src/resolve/resolved-resolv-conf.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:85:14: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:85:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:88:13: branch_true: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:89:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/resolve/resolved-resolv-conf.c:98:40: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:98:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:101:13: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:101:13: call_function: calling ‘file_is_our_own’ from ‘manager_read_resolv_conf’
systemd-258/src/resolve/resolved-resolv-conf.c:101:13: return_function: returning to ‘manager_read_resolv_conf’ from ‘file_is_our_own’
systemd-258/src/resolve/resolved-resolv-conf.c:101:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:104:13: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:104:13: acquire_resource: opened here
systemd-258/src/resolve/resolved-resolv-conf.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:113:13: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:75:32: call_function: inlined call to ‘fclosep’ from ‘manager_read_resolv_conf’
#   91|   
#   92|   static inline void fclosep(FILE **f) {
#   93|->         safe_fclose(*f);
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def198]
systemd-258/src/basic/fd-util.h:93:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘input’
systemd-258/src/core/ima-setup.c:20:5: enter_function: entry to ‘ima_setup’
systemd-258/src/core/ima-setup.c:27:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:32:13: branch_false: ...to here
systemd-258/src/core/ima-setup.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:37:13: branch_false: ...to here
systemd-258/src/core/ima-setup.c:37:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:42:17: branch_false: ...to here
systemd-258/src/core/ima-setup.c:43:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:49:13: branch_false: ...to here
systemd-258/src/core/ima-setup.c:49:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:53:17: branch_false: ...to here
systemd-258/src/core/ima-setup.c:53:17: acquire_resource: opened here
systemd-258/src/core/ima-setup.c:54:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:59:9: branch_false: ...to here
systemd-258/src/core/ima-setup.c:62:12: branch_true: following ‘true’ branch...
systemd-258/src/core/ima-setup.c:63:17: branch_true: ...to here
systemd-258/src/core/ima-setup.c:22:32: call_function: inlined call to ‘fclosep’ from ‘ima_setup’
#   91|   
#   92|   static inline void fclosep(FILE **f) {
#   93|->         safe_fclose(*f);
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def199]
systemd-258/src/basic/fd-util.h:93:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘proc_self_mountinfo’
systemd-258/src/core/namespace.c:2341:12: enter_function: entry to ‘apply_mounts’
systemd-258/src/core/namespace.c:2351:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2352:9: branch_false: ...to here
systemd-258/src/core/namespace.c:2352:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2353:9: branch_false: ...to here
systemd-258/src/core/namespace.c:2353:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2355:13: branch_false: ...to here
systemd-258/src/core/namespace.c:2355:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2360:31: branch_false: ...to here
systemd-258/src/core/namespace.c:2360:31: acquire_resource: opened here
systemd-258/src/core/namespace.c:2361:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/core/namespace.c:2374:17: branch_true: following ‘true’ branch...
systemd-258/src/core/namespace.c:2376:28: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2383:45: branch_false: ...to here
systemd-258/src/core/namespace.c:2383:45: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2383:29: branch_false: ...to here
systemd-258/src/core/namespace.c:2383:29: call_function: calling ‘follow_symlink’ from ‘apply_mounts’
systemd-258/src/core/namespace.c:2383:29: return_function: returning to ‘apply_mounts’ from ‘follow_symlink’
systemd-258/src/core/namespace.c:2384:28: branch_true: following ‘true’ branch...
systemd-258/src/core/namespace.c:2385:33: branch_true: ...to here
systemd-258/src/core/namespace.c:2385:33: call_function: calling ‘mount_entry_path_debug_string’ from ‘apply_mounts’
systemd-258/src/core/namespace.c:2385:33: return_function: returning to ‘apply_mounts’ from ‘mount_entry_path_debug_string’
systemd-258/src/core/namespace.c:2347:32: call_function: inlined call to ‘fclosep’ from ‘apply_mounts’
#   91|   
#   92|   static inline void fclosep(FILE **f) {
#   93|->         safe_fclose(*f);
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
systemd-258/src/basic/fd-util.h:93:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/resolve/resolved-resolv-conf.c:74:5: enter_function: entry to ‘manager_read_resolv_conf’
systemd-258/src/resolve/resolved-resolv-conf.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:85:14: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:85:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:88:13: branch_true: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:89:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/resolve/resolved-resolv-conf.c:98:40: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:98:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:101:13: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:101:13: call_function: calling ‘file_is_our_own’ from ‘manager_read_resolv_conf’
systemd-258/src/resolve/resolved-resolv-conf.c:101:13: return_function: returning to ‘manager_read_resolv_conf’ from ‘file_is_our_own’
systemd-258/src/resolve/resolved-resolv-conf.c:101:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:104:13: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:104:13: acquire_memory: allocated here
systemd-258/src/resolve/resolved-resolv-conf.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-resolv-conf.c:113:13: branch_false: ...to here
systemd-258/src/resolve/resolved-resolv-conf.c:75:32: call_function: inlined call to ‘fclosep’ from ‘manager_read_resolv_conf’
#   91|   
#   92|   static inline void fclosep(FILE **f) {
#   93|->         safe_fclose(*f);
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
systemd-258/src/basic/fd-util.h:93:9: warning[-Wanalyzer-malloc-leak]: leak of ‘input’
systemd-258/src/core/ima-setup.c:20:5: enter_function: entry to ‘ima_setup’
systemd-258/src/core/ima-setup.c:27:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:32:13: branch_false: ...to here
systemd-258/src/core/ima-setup.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:37:13: branch_false: ...to here
systemd-258/src/core/ima-setup.c:37:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:42:17: branch_false: ...to here
systemd-258/src/core/ima-setup.c:43:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:49:13: branch_false: ...to here
systemd-258/src/core/ima-setup.c:49:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:53:17: branch_false: ...to here
systemd-258/src/core/ima-setup.c:53:17: acquire_memory: allocated here
systemd-258/src/core/ima-setup.c:54:12: branch_false: following ‘false’ branch...
systemd-258/src/core/ima-setup.c:59:9: branch_false: ...to here
systemd-258/src/core/ima-setup.c:62:12: branch_true: following ‘true’ branch...
systemd-258/src/core/ima-setup.c:63:17: branch_true: ...to here
systemd-258/src/core/ima-setup.c:22:32: call_function: inlined call to ‘fclosep’ from ‘ima_setup’
#   91|   
#   92|   static inline void fclosep(FILE **f) {
#   93|->         safe_fclose(*f);
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
systemd-258/src/basic/fd-util.h:93:9: warning[-Wanalyzer-malloc-leak]: leak of ‘proc_self_mountinfo’
systemd-258/src/core/namespace.c:2341:12: enter_function: entry to ‘apply_mounts’
systemd-258/src/core/namespace.c:2351:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2352:9: branch_false: ...to here
systemd-258/src/core/namespace.c:2352:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2353:9: branch_false: ...to here
systemd-258/src/core/namespace.c:2353:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2355:13: branch_false: ...to here
systemd-258/src/core/namespace.c:2355:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2360:31: branch_false: ...to here
systemd-258/src/core/namespace.c:2360:31: acquire_memory: allocated here
systemd-258/src/core/namespace.c:2361:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/core/namespace.c:2374:17: branch_true: following ‘true’ branch...
systemd-258/src/core/namespace.c:2376:28: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2383:45: branch_false: ...to here
systemd-258/src/core/namespace.c:2383:45: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:2383:29: branch_false: ...to here
systemd-258/src/core/namespace.c:2383:29: call_function: calling ‘follow_symlink’ from ‘apply_mounts’
systemd-258/src/core/namespace.c:2383:29: return_function: returning to ‘apply_mounts’ from ‘follow_symlink’
systemd-258/src/core/namespace.c:2384:28: branch_true: following ‘true’ branch...
systemd-258/src/core/namespace.c:2385:33: branch_true: ...to here
systemd-258/src/core/namespace.c:2385:33: call_function: calling ‘mount_entry_path_debug_string’ from ‘apply_mounts’
systemd-258/src/core/namespace.c:2385:33: return_function: returning to ‘apply_mounts’ from ‘mount_entry_path_debug_string’
systemd-258/src/core/namespace.c:2347:32: call_function: inlined call to ‘fclosep’ from ‘apply_mounts’
#   91|   
#   92|   static inline void fclosep(FILE **f) {
#   93|->         safe_fclose(*f);
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
systemd-258/src/basic/fd-util.h:97:1: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
systemd-258/src/libsystemd/sd-device/sd-device.c:2190:12: enter_function: entry to ‘device_sysattrs_read_all’
systemd-258/src/libsystemd/sd-device/sd-device.c:2194:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2196:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2196:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2199:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2199:13: call_function: calling ‘device_sysattrs_read_all_internal’ from ‘device_sysattrs_read_all’
#   95|   
#   96|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(FILE*, pclose, NULL);
#   97|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(DIR*, closedir, NULL);
#   98|   
#   99|   #define _cleanup_close_ _cleanup_(closep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
systemd-258/src/basic/fd-util.h:97:1: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:130:5: enter_function: entry to ‘journal_directory_vacuum’
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:147:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:149:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:152:12: branch_false: following ‘false’ branch (when ‘max_retention_usec == 0’)...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:155:13: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:156:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:159:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:145:9: call_function: calling ‘array_cleanup’ from ‘journal_directory_vacuum’
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:145:9: return_function: returning to ‘journal_directory_vacuum’ from ‘array_cleanup’
systemd-258/src/libsystemd/sd-journal/journal-vacuum.c:140:33: call_function: inlined call to ‘closedirp’ from ‘journal_directory_vacuum’
#   95|   
#   96|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(FILE*, pclose, NULL);
#   97|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(DIR*, closedir, NULL);
#   98|   
#   99|   #define _cleanup_close_ _cleanup_(closep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
systemd-258/src/basic/fd-util.h:97:1: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc/self/fd")’
systemd-258/src/shared/fdset.c:166:5: enter_function: entry to ‘fdset_new_fill’
systemd-258/src/shared/fdset.c:174:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:179:13: branch_false: ...to here
systemd-258/src/shared/fdset.c:179:13: acquire_memory: allocated here
systemd-258/src/shared/fdset.c:180:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:187:13: branch_false: ...to here
systemd-258/src/shared/fdset.c:188:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/fdset.c:171:33: call_function: inlined call to ‘closedirp’ from ‘fdset_new_fill’
#   95|   
#   96|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(FILE*, pclose, NULL);
#   97|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(DIR*, closedir, NULL);
#   98|   
#   99|   #define _cleanup_close_ _cleanup_(closep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
systemd-258/src/basic/fd-util.h:97:1: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/run/systemd/userdb/")’
systemd-258/src/userdb/userdbctl.c:1034:12: enter_function: entry to ‘display_services’
systemd-258/src/userdb/userdbctl.c:1039:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbctl.c:1042:13: branch_false: ...to here
systemd-258/src/userdb/userdbctl.c:1042:13: acquire_memory: allocated here
systemd-258/src/userdb/userdbctl.c:1043:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbctl.c:1052:13: branch_false: ...to here
systemd-258/src/userdb/userdbctl.c:1036:33: call_function: inlined call to ‘closedirp’ from ‘display_services’
#   95|   
#   96|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(FILE*, pclose, NULL);
#   97|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(DIR*, closedir, NULL);
#   98|   
#   99|   #define _cleanup_close_ _cleanup_(closep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
systemd-258/src/basic/fd-util.h:97:1: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(path_extend_internal(0, sysfs_path, "slaves", 18446744073709551615))’
systemd-258/src/shared/blockdev-util.c:477:12: enter_function: entry to ‘blockdev_is_encrypted’
systemd-258/src/shared/blockdev-util.c:482:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:484:12: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:484:12: branch_false: following ‘false’ branch (when ‘depth_left != 0’)...
systemd-258/src/shared/blockdev-util.c:487:13: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:488:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:491:13: call_function: inlined call to ‘read_one_line_file’ from ‘blockdev_is_encrypted’
systemd-258/src/shared/blockdev-util.c:506:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:509:13: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:510:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:523:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:530:21: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:531:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:534:21: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:534:21: call_function: calling ‘blockdev_is_encrypted’ from ‘blockdev_is_encrypted’
#   95|   
#   96|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(FILE*, pclose, NULL);
#   97|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(DIR*, closedir, NULL);
#   98|   
#   99|   #define _cleanup_close_ _cleanup_(closep)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def208]
systemd-258/src/basic/fileio.c:888:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "re")’
systemd-258/src/basic/fileio.c:845:5: enter_function: entry to ‘script_get_shebang_interpreter’
systemd-258/src/basic/fileio.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:851:13: branch_false: ...to here
systemd-258/src/basic/fileio.c:851:13: acquire_resource: opened here
systemd-258/src/basic/fileio.c:852:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:855:14: branch_false: ...to here
systemd-258/src/basic/fileio.c:856:13: call_function: calling ‘safe_fgetc’ from ‘script_get_shebang_interpreter’
systemd-258/src/basic/fileio.c:856:13: return_function: returning to ‘script_get_shebang_interpreter’ from ‘safe_fgetc’
systemd-258/src/basic/fileio.c:857:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/fileio.c:846:32: call_function: inlined call to ‘fclosep’ from ‘script_get_shebang_interpreter’
systemd-258/src/basic/fileio.c:888:1: danger: ‘fopen(path, "re")’ leaks here; was opened at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  886|                   *ret = TAKE_PTR(p);
#  887|           return 0;
#  888|-> }
#  889|   
#  890|   int get_proc_field(const char *path, const char *key, char **ret) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
systemd-258/src/basic/fileio.c:888:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "re")’
systemd-258/src/basic/fileio.c:845:5: enter_function: entry to ‘script_get_shebang_interpreter’
systemd-258/src/basic/fileio.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:851:13: branch_false: ...to here
systemd-258/src/basic/fileio.c:851:13: acquire_memory: allocated here
systemd-258/src/basic/fileio.c:852:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:855:14: branch_false: ...to here
systemd-258/src/basic/fileio.c:856:13: call_function: calling ‘safe_fgetc’ from ‘script_get_shebang_interpreter’
systemd-258/src/basic/fileio.c:856:13: return_function: returning to ‘script_get_shebang_interpreter’ from ‘safe_fgetc’
systemd-258/src/basic/fileio.c:857:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/fileio.c:846:32: call_function: inlined call to ‘fclosep’ from ‘script_get_shebang_interpreter’
systemd-258/src/basic/fileio.c:888:1: danger: ‘fopen(path, "re")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
#  886|                   *ret = TAKE_PTR(p);
#  887|           return 0;
#  888|-> }
#  889|   
#  890|   int get_proc_field(const char *path, const char *key, char **ret) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def210]
systemd-258/src/basic/fileio.c:1098:24: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
systemd-258/src/basic/fileio.c:1070:5: enter_function: entry to ‘xfopenat_full’
systemd-258/src/basic/fileio.c:1079:15: release_memory: ‘f’ is NULL
systemd-258/src/basic/fileio.c:1082:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1083:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1083:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1084:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1084:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1085:9: branch_false: ...to here
systemd-258/src/basic/fileio.c:1085:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/fileio.c:1087:13: branch_false: ...to here
systemd-258/src/basic/fileio.c:1087:13: call_function: calling ‘xfopenat_regular’ from ‘xfopenat_full’
systemd-258/src/basic/fileio.c:1087:13: return_function: returning to ‘xfopenat_full’ from ‘xfopenat_regular’
systemd-258/src/basic/fileio.c:1094:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/basic/fileio.c:1097:13: branch_false: ...to here
systemd-258/src/basic/fileio.c:1097:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/fileio.c:1098:17: branch_true: ...to here
systemd-258/src/basic/fileio.c:1098:17: release_memory: ‘f’ is NULL
systemd-258/src/basic/fileio.c:1098:24: danger: argument 1 (‘f’) NULL where non-null expected
# 1096|   
# 1097|           if (FLAGS_SET(flags, XFOPEN_UNLOCKED))
# 1098|->                 (void) __fsetlocking(f, FSETLOCKING_BYCALLER);
# 1099|   
# 1100|           *ret = f;

Error: COMPILER_WARNING: [#def211] [important]
systemd-258/src/basic/fs-util.c:299:13: error[-Wimplicit-function-declaration]: implicit declaration of function ‘fchmodat2’; did you mean ‘fchmodat’?
#  297|           assert(fd >= 0);
#  298|   
#  299|->         if (fchmodat2(fd, "", m, AT_EMPTY_PATH) >= 0)
#  300|                   return 0;
#  301|           if (!IN_SET(errno, ENOSYS, EPERM)) /* Some container managers block unknown syscalls with EPERM */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
systemd-258/src/libsystemd/sd-device/device-monitor.c:265:14: enter_function: entry to ‘sd_device_monitor_new’
systemd-258/src/libsystemd/sd-device/device-monitor.c:266:16: call_function: calling ‘device_monitor_new_full’ from ‘sd_device_monitor_new’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:16:5: enter_function: entry to ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:22:12: branch_false: following ‘false’ branch (when ‘size > 239’)...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:25:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: call_function: calling ‘sd_dhcp_server_new’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: return_function: returning to ‘LLVMFuzzerTestOneInput’ from ‘sd_dhcp_server_new’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: call_function: calling ‘sd_dhcp_server_attach_event’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:17:58: call_function: inlined call to ‘sd_dhcp_server_unrefp’ from ‘LLVMFuzzerTestOneInput’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val1’
systemd-258/src/test/test-hashmap-plain.c:539:1: enter_function: entry to ‘test_hashmap_contains’
systemd-258/src/test/test-hashmap-plain.c:543:16: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:544:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:546:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:548:9: call_function: inlined call to ‘hashmap_contains’ from ‘test_hashmap_contains’
systemd-258/src/test/test-hashmap-plain.c:540:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_contains’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val2’
systemd-258/src/test/test-hashmap-plain.c:574:1: enter_function: entry to ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:579:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:580:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:580:16: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:581:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:582:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:583:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:584:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:585:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:587:9: call_function: inlined call to ‘hashmap_size’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:587:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:588:9: call_function: inlined call to ‘hashmap_buckets’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:588:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:590:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:575:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_size’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val3’
systemd-258/src/test/test-hashmap-plain.c:574:1: enter_function: entry to ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:579:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:580:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:581:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:582:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:582:16: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:583:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:584:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:585:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:587:9: call_function: inlined call to ‘hashmap_size’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:587:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:588:9: call_function: inlined call to ‘hashmap_buckets’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:588:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:590:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:575:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_size’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val4’
systemd-258/src/test/test-hashmap-plain.c:574:1: enter_function: entry to ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:579:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:580:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:581:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:582:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:583:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:584:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:584:16: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:585:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:587:9: call_function: inlined call to ‘hashmap_size’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:587:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:588:9: call_function: inlined call to ‘hashmap_buckets’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:588:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:590:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:575:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_size’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
systemd-258/src/basic/hashmap.h:65:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
systemd-258/src/test/test-hashmap-plain.c:602:1: enter_function: entry to ‘test_hashmap_get’
systemd-258/src/test/test-hashmap-plain.c:607:15: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:608:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:610:13: call_function: inlined call to ‘hashmap_get’ from ‘test_hashmap_get’
systemd-258/src/test/test-hashmap-plain.c:611:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:613:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:603:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_get’
#   63|   HashmapBase* _hashmap_free(HashmapBase *h);
#   64|   static inline Hashmap* hashmap_free(Hashmap *h) {
#   65|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
systemd-258/src/basic/hashmap.h:68:24: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:53: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:754:17: call_function: inlined call to ‘ordered_hashmap_free’ from ‘test_ordered_hashmap_free’
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {
#   68|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
systemd-258/src/basic/hashmap.h:68:24: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {
#   68|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
systemd-258/src/basic/hashmap.h:68:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val1’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:541:1: enter_function: entry to ‘test_ordered_hashmap_contains’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:545:16: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:546:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:548:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:550:9: call_function: inlined call to ‘ordered_hashmap_contains’ from ‘test_ordered_hashmap_contains’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:542:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_contains’
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {
#   68|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
systemd-258/src/basic/hashmap.h:68:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:576:1: enter_function: entry to ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:581:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:582:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:582:16: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:583:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:584:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:585:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:586:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:587:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: call_function: inlined call to ‘ordered_hashmap_size’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:590:9: call_function: inlined call to ‘ordered_hashmap_buckets’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:590:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:592:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:594:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_size’
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {
#   68|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
systemd-258/src/basic/hashmap.h:68:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val3’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:576:1: enter_function: entry to ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:581:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:582:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:583:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:584:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:584:16: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:585:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:586:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:587:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: call_function: inlined call to ‘ordered_hashmap_size’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:590:9: call_function: inlined call to ‘ordered_hashmap_buckets’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:590:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:592:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:594:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_size’
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {
#   68|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
systemd-258/src/basic/hashmap.h:68:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val4’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:576:1: enter_function: entry to ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:581:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:582:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:583:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:584:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:585:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:586:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:586:16: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:587:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: call_function: inlined call to ‘ordered_hashmap_size’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:590:9: call_function: inlined call to ‘ordered_hashmap_buckets’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:590:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:592:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:594:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_size’
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {
#   68|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
systemd-258/src/basic/hashmap.h:68:24: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:604:1: enter_function: entry to ‘test_ordered_hashmap_get’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:609:15: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:610:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:612:13: call_function: inlined call to ‘ordered_hashmap_get’ from ‘test_ordered_hashmap_get’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:613:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:615:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:617:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_get’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:605:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_get’
#   66|   }
#   67|   static inline OrderedHashmap* ordered_hashmap_free(OrderedHashmap *h) {
#   68|->         return (void*) _hashmap_free(HASHMAP_BASE(h));
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/basic/ordered-set.c:63:5: enter_function: entry to ‘ordered_set_put_strdupv_full’
systemd-258/src/basic/ordered-set.c:66:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/ordered-set.c:68:9: branch_true: following ‘true’ branch...
systemd-258/src/basic/ordered-set.c:69:21: call_function: calling ‘ordered_set_put_strdup_full’ from ‘ordered_set_put_strdupv_full’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_free’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:833:1: enter_function: entry to ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:837:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_clear’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:833:1: enter_function: entry to ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:837:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_clear’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:833:1: enter_function: entry to ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:837:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_clear’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 1")’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:833:1: enter_function: entry to ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:837:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:843:9: call_function: inlined call to ‘ordered_hashmap_clear’ from ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:844:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:846:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:846:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:846:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_clear’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 2")’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:833:1: enter_function: entry to ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:837:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:843:9: call_function: inlined call to ‘ordered_hashmap_clear’ from ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:844:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:846:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:846:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:846:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:847:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:847:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:847:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_clear’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 3")’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:833:1: enter_function: entry to ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:837:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:839:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:840:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:841:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:843:9: call_function: inlined call to ‘ordered_hashmap_clear’ from ‘test_ordered_hashmap_clear’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:844:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:846:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:846:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:847:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:847:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:847:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:848:9: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:848:9: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:848:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_clear’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&key1)’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:272:1: enter_function: entry to ‘test_ordered_hashmap_remove2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:281:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:283:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:284:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:286:13: call_function: inlined call to ‘ordered_hashmap_remove2’ from ‘test_ordered_hashmap_remove2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:287:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:46: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:32: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_remove2’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&key2)’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:272:1: enter_function: entry to ‘test_ordered_hashmap_remove2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:281:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:283:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:284:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:286:13: call_function: inlined call to ‘ordered_hashmap_remove2’ from ‘test_ordered_hashmap_remove2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:287:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:46: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:290:32: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:290:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_remove2’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&val1)’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:272:1: enter_function: entry to ‘test_ordered_hashmap_remove2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:281:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:283:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:284:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:286:13: call_function: inlined call to ‘ordered_hashmap_remove2’ from ‘test_ordered_hashmap_remove2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:287:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:46: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:46: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_remove2’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&val2)’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:272:1: enter_function: entry to ‘test_ordered_hashmap_remove2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:281:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:283:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:284:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:286:13: call_function: inlined call to ‘ordered_hashmap_remove2’ from ‘test_ordered_hashmap_remove2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:287:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:46: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:289:32: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:290:46: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:290:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_remove2’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(val1)’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:166:1: enter_function: entry to ‘test_ordered_hashmap_move’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:171:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:172:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:173:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:174:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:175:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:176:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:177:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:179:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:182:41: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:182:9: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_move’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
systemd-258/src/basic/hashmap.h:100:16: warning[-Wanalyzer-malloc-leak]: leak of ‘v’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:720:1: enter_function: entry to ‘test_ordered_hashmap_free’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:737:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:738:22: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:739:17: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:741:17: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:742:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:743:30: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:746:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:747:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:748:25: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:749:40: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:751:25: call_function: inlined call to ‘ordered_hashmap_put’ from ‘test_ordered_hashmap_free’
#   98|   int hashmap_put(Hashmap *h, const void *key, void *value);
#   99|   static inline int ordered_hashmap_put(OrderedHashmap *h, const void *key, void *value) {
#  100|->         return hashmap_put(PLAIN_HASHMAP(h), key, value);
#  101|   }
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
systemd-258/src/basic/hashmap.h:141:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)_hashmap_size(*enumerator.devices_by_syspath), 8)’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1164:12: enter_function: entry to ‘device_enumerator_get_first’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: call_function: calling ‘enumerator_sort_devices’ from ‘device_enumerator_get_first’
#  139|   void* _hashmap_remove(HashmapBase *h, const void *key);
#  140|   static inline void *hashmap_remove(Hashmap *h, const void *key) {
#  141|->         return _hashmap_remove(HASHMAP_BASE(h), key);
#  142|   }
#  143|   static inline void *ordered_hashmap_remove(OrderedHashmap *h, const void *key) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
systemd-258/src/basic/hashmap.h:141:16: warning[-Wanalyzer-malloc-leak]: leak of ‘rule’
systemd-258/src/network/networkd-routing-policy-rule.c:1580:5: enter_function: entry to ‘config_parse_routing_policy_rule’
systemd-258/src/network/networkd-routing-policy-rule.c:1615:28: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-routing-policy-rule.c:1618:9: branch_false: ...to here
systemd-258/src/network/networkd-routing-policy-rule.c:1618:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-routing-policy-rule.c:1620:13: branch_false: ...to here
systemd-258/src/network/networkd-routing-policy-rule.c:1620:13: call_function: calling ‘routing_policy_rule_new_static’ from ‘config_parse_routing_policy_rule’
#  139|   void* _hashmap_remove(HashmapBase *h, const void *key);
#  140|   static inline void *hashmap_remove(Hashmap *h, const void *key) {
#  141|->         return _hashmap_remove(HASHMAP_BASE(h), key);
#  142|   }
#  143|   static inline void *ordered_hashmap_remove(OrderedHashmap *h, const void *key) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
systemd-258/src/basic/hashmap.h:141:16: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#  139|   void* _hashmap_remove(HashmapBase *h, const void *key);
#  140|   static inline void *hashmap_remove(Hashmap *h, const void *key) {
#  141|->         return _hashmap_remove(HASHMAP_BASE(h), key);
#  142|   }
#  143|   static inline void *ordered_hashmap_remove(OrderedHashmap *h, const void *key) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
systemd-258/src/basic/hashmap.h:227:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)_hashmap_size(*enumerator.devices_by_syspath), 8)’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1164:12: enter_function: entry to ‘device_enumerator_get_first’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: call_function: calling ‘enumerator_sort_devices’ from ‘device_enumerator_get_first’
#  225|   bool _hashmap_iterate(HashmapBase *h, Iterator *i, void **value, const void **key);
#  226|   static inline bool hashmap_iterate(Hashmap *h, Iterator *i, void **value, const void **key) {
#  227|->         return _hashmap_iterate(HASHMAP_BASE(h), i, value, key);
#  228|   }
#  229|   static inline bool ordered_hashmap_iterate(OrderedHashmap *h, Iterator *i, void **value, const void **key) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
systemd-258/src/basic/hashmap.h:273:16: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#  271|   }
#  272|   static inline void *hashmap_first(Hashmap *h) {
#  273|->         return _hashmap_first_key_and_value(HASHMAP_BASE(h), false, NULL);
#  274|   }
#  275|   static inline void *ordered_hashmap_first(OrderedHashmap *h) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
systemd-258/src/basic/hashmap.h:364:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val1’
systemd-258/src/test/test-hashmap-plain.c:539:1: enter_function: entry to ‘test_hashmap_contains’
systemd-258/src/test/test-hashmap-plain.c:543:16: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:544:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:546:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:540:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_contains’
systemd-258/src/test/test-hashmap-plain.c:540:41: return_function: returning to ‘test_hashmap_contains’ from ‘hashmap_freep’
systemd-258/src/basic/hashmap.h:364:1: danger: ‘val1’ leaks here; was allocated at [(2)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/1)
#  362|           _ORDERED_HASHMAP_FOREACH_KEY(e, k, h, UNIQ_T(i, UNIQ))
#  363|   
#  364|-> DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|   DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
systemd-258/src/basic/hashmap.h:364:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val2’
systemd-258/src/test/test-hashmap-plain.c:574:1: enter_function: entry to ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:579:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:580:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:580:16: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:581:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:582:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:583:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:583:9: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:575:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:575:41: return_function: returning to ‘test_hashmap_size’ from ‘hashmap_freep’
systemd-258/src/basic/hashmap.h:364:1: danger: ‘val2’ leaks here; was allocated at [(4)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/3)
#  362|           _ORDERED_HASHMAP_FOREACH_KEY(e, k, h, UNIQ_T(i, UNIQ))
#  363|   
#  364|-> DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|   DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
systemd-258/src/basic/hashmap.h:364:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val3’
systemd-258/src/test/test-hashmap-plain.c:574:1: enter_function: entry to ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:579:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:580:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:581:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:582:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:582:16: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:583:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:584:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:585:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:585:9: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:575:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:575:41: return_function: returning to ‘test_hashmap_size’ from ‘hashmap_freep’
systemd-258/src/basic/hashmap.h:364:1: danger: ‘val3’ leaks here; was allocated at [(6)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/5)
#  362|           _ORDERED_HASHMAP_FOREACH_KEY(e, k, h, UNIQ_T(i, UNIQ))
#  363|   
#  364|-> DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|   DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
systemd-258/src/basic/hashmap.h:364:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val4’
systemd-258/src/test/test-hashmap-plain.c:574:1: enter_function: entry to ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:579:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:580:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:581:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:582:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:583:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:584:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:584:16: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:585:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:587:9: call_function: inlined call to ‘hashmap_size’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:587:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:587:9: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:575:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_size’
systemd-258/src/test/test-hashmap-plain.c:575:41: return_function: returning to ‘test_hashmap_size’ from ‘hashmap_freep’
systemd-258/src/basic/hashmap.h:364:1: danger: ‘val4’ leaks here; was allocated at [(8)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/7)
#  362|           _ORDERED_HASHMAP_FOREACH_KEY(e, k, h, UNIQ_T(i, UNIQ))
#  363|   
#  364|-> DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|   DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
systemd-258/src/basic/hashmap.h:364:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
systemd-258/src/test/test-hashmap-plain.c:602:1: enter_function: entry to ‘test_hashmap_get’
systemd-258/src/test/test-hashmap-plain.c:607:15: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:608:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:610:13: call_function: inlined call to ‘hashmap_get’ from ‘test_hashmap_get’
systemd-258/src/test/test-hashmap-plain.c:603:41: call_function: calling ‘hashmap_freep’ from ‘test_hashmap_get’
systemd-258/src/test/test-hashmap-plain.c:603:41: return_function: returning to ‘test_hashmap_get’ from ‘hashmap_freep’
systemd-258/src/basic/hashmap.h:364:1: danger: ‘val’ leaks here; was allocated at [(2)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/1)
#  362|           _ORDERED_HASHMAP_FOREACH_KEY(e, k, h, UNIQ_T(i, UNIQ))
#  363|   
#  364|-> DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|   DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
systemd-258/src/basic/hashmap.h:365:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val1’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:560:1: enter_function: entry to ‘test_ordered_hashmap_isempty’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:564:16: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:565:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:567:13: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:561:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_isempty’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:561:56: return_function: returning to ‘test_ordered_hashmap_isempty’ from ‘ordered_hashmap_freep’
systemd-258/src/basic/hashmap.h:365:1: danger: ‘val1’ leaks here; was allocated at [(2)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/1)
#  363|   
#  364|   DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|-> DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   
#  367|   #define _cleanup_hashmap_free_ _cleanup_(hashmap_freep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
systemd-258/src/basic/hashmap.h:365:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val2’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:576:1: enter_function: entry to ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:581:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:582:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:582:16: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:583:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:584:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:585:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:585:9: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: return_function: returning to ‘test_ordered_hashmap_size’ from ‘ordered_hashmap_freep’
systemd-258/src/basic/hashmap.h:365:1: danger: ‘val2’ leaks here; was allocated at [(4)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/3)
#  363|   
#  364|   DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|-> DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   
#  367|   #define _cleanup_hashmap_free_ _cleanup_(hashmap_freep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
systemd-258/src/basic/hashmap.h:365:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val3’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:576:1: enter_function: entry to ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:581:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:582:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:583:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:584:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:584:16: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:585:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:586:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:587:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:587:9: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: return_function: returning to ‘test_ordered_hashmap_size’ from ‘ordered_hashmap_freep’
systemd-258/src/basic/hashmap.h:365:1: danger: ‘val3’ leaks here; was allocated at [(6)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/5)
#  363|   
#  364|   DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|-> DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   
#  367|   #define _cleanup_hashmap_free_ _cleanup_(hashmap_freep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
systemd-258/src/basic/hashmap.h:365:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val4’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:576:1: enter_function: entry to ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:581:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:582:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:583:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:584:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:585:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:586:16: branch_false: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:586:16: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:587:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: call_function: inlined call to ‘ordered_hashmap_size’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: branch_true: following ‘true’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:589:9: branch_true: ...to here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_size’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:577:56: return_function: returning to ‘test_ordered_hashmap_size’ from ‘ordered_hashmap_freep’
systemd-258/src/basic/hashmap.h:365:1: danger: ‘val4’ leaks here; was allocated at [(8)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/7)
#  363|   
#  364|   DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|-> DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   
#  367|   #define _cleanup_hashmap_free_ _cleanup_(hashmap_freep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
systemd-258/src/basic/hashmap.h:365:1: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:604:1: enter_function: entry to ‘test_ordered_hashmap_get’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:609:15: acquire_memory: allocated here
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:610:9: branch_false: following ‘false’ branch...
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:612:13: call_function: inlined call to ‘ordered_hashmap_get’ from ‘test_ordered_hashmap_get’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:605:56: call_function: calling ‘ordered_hashmap_freep’ from ‘test_ordered_hashmap_get’
systemd-258/redhat-linux-build/src/test/test-hashmap-ordered.c:605:56: return_function: returning to ‘test_ordered_hashmap_get’ from ‘ordered_hashmap_freep’
systemd-258/src/basic/hashmap.h:365:1: danger: ‘val’ leaks here; was allocated at [(2)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/1)
#  363|   
#  364|   DEFINE_TRIVIAL_CLEANUP_FUNC(Hashmap*, hashmap_free);
#  365|-> DEFINE_TRIVIAL_CLEANUP_FUNC(OrderedHashmap*, ordered_hashmap_free);
#  366|   
#  367|   #define _cleanup_hashmap_free_ _cleanup_(hashmap_freep)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
systemd-258/src/basic/hostname-util.c:255:1: warning[-Wanalyzer-malloc-leak]: leak of ‘u’
systemd-258/src/basic/hostname-util.c:236:5: enter_function: entry to ‘machine_spec_valid’
systemd-258/src/basic/hostname-util.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:242:13: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:242:13: call_function: calling ‘split_user_at_host’ from ‘machine_spec_valid’
systemd-258/src/basic/hostname-util.c:242:13: return_function: returning to ‘machine_spec_valid’ from ‘split_user_at_host’
systemd-258/src/basic/hostname-util.c:243:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:245:12: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:245:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/hostname-util.c:248:13: branch_false: ...to here
systemd-258/src/basic/hostname-util.c:248:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/hostname-util.c:248:19: branch_true: ...to here
systemd-258/src/basic/hostname-util.c:255:1: danger: ‘u’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  253|   
#  254|           return true;
#  255|-> }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
systemd-258/src/basic/in-addr-util.h:117:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(24)’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:842:12: enter_function: entry to ‘dhcp_pd_prefix_add’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:847:9: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:847:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:849:13: call_function: inlined call to ‘malloc_multiply’ from ‘dhcp_pd_prefix_add’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:850:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:856:32: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:861:9: branch_false: following ‘false’ branch (when ‘_ifname’ is NULL)...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:861:9: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:861:9: call_function: inlined call to ‘_in6_addr_prefix_to_string’ from ‘dhcp_pd_prefix_add’
systemd-258/src/basic/in-addr-util.h:117:9: danger: ‘malloc(24)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  115|                   size_t buf_len) {
#  116|           /* We assume that this is called with an appropriately sized buffer and can never fail. */
#  117|->         assert_se(in_addr_prefix_to_string(family, u, prefixlen, buf, buf_len) == 0);
#  118|           return buf;
#  119|   }

Error: COMPILER_WARNING: [#def260] [important]
systemd-258/src/basic/keyring-util.h:4:10: error[fatal error]: sys/keyctl.h: No such file or directory
#    2|   #pragma once
#    3|   
#    4|-> #include <sys/keyctl.h>         /* IWYU pragma: export */
#    5|   
#    6|   #include "forward.h"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
systemd-258/src/basic/locale-util.c:143:21: warning[-Wanalyzer-malloc-leak]: leak of ‘normalize_locale(p + (sizetype)*<unknown>.name_offset)’
systemd-258/src/basic/locale-util.c:57:12: enter_function: entry to ‘add_locales_from_archive’
systemd-258/src/basic/locale-util.c:93:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:95:34: branch_false: ...to here
systemd-258/src/basic/locale-util.c:96:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:99:21: branch_false: ...to here
systemd-258/src/basic/locale-util.c:100:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:103:14: branch_false: ...to here
systemd-258/src/basic/locale-util.c:103:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:106:13: branch_false: ...to here
systemd-258/src/basic/locale-util.c:106:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:112:19: branch_false: ...to here
systemd-258/src/basic/locale-util.c:113:12: branch_false: following ‘false’ branch (when ‘p != 18446744073709551615’)...
systemd-258/src/basic/locale-util.c:118:13: branch_false: ...to here
systemd-258/src/basic/locale-util.c:118:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:119:13: branch_false: ...to here
systemd-258/src/basic/locale-util.c:118:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:120:13: branch_false: ...to here
systemd-258/src/basic/locale-util.c:118:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:121:13: branch_false: ...to here
systemd-258/src/basic/locale-util.c:118:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:122:13: branch_false: ...to here
systemd-258/src/basic/locale-util.c:118:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:127:63: branch_false: ...to here
systemd-258/src/basic/locale-util.c:128:28: branch_true: following ‘true’ branch...
systemd-258/src/basic/locale-util.c:131:22: branch_true: ...to here
systemd-258/src/basic/locale-util.c:131:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:134:48: branch_false: ...to here
systemd-258/src/basic/locale-util.c:134:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:137:21: branch_false: ...to here
systemd-258/src/basic/locale-util.c:137:21: call_function: calling ‘normalize_locale’ from ‘add_locales_from_archive’
systemd-258/src/basic/locale-util.c:137:21: return_function: returning to ‘add_locales_from_archive’ from ‘normalize_locale’
systemd-258/src/basic/locale-util.c:138:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:143:21: branch_false: ...to here
systemd-258/src/basic/locale-util.c:143:21: danger: ‘normalize_locale(p + (sizetype)*<unknown>.name_offset)’ leaks here; was allocated at [(37)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/36)
#  141|                   }
#  142|   
#  143|->                 r = set_consume(locales, z);
#  144|                   if (r < 0)
#  145|                           goto finish;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
systemd-258/src/basic/locale-util.c:177:21: warning[-Wanalyzer-malloc-leak]: leak of ‘normalize_locale(&*de.d_name)’
systemd-258/src/basic/locale-util.c:157:12: enter_function: entry to ‘add_locales_from_libdir’
systemd-258/src/basic/locale-util.c:161:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:163:15: branch_false: ...to here
systemd-258/src/basic/locale-util.c:164:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:167:9: branch_false: ...to here
systemd-258/src/basic/locale-util.c:167:9: branch_false: following ‘false’ branch (when ‘de’ is non-NULL)...
systemd-258/src/basic/locale-util.c:167:9: branch_false: ...to here
systemd-258/src/basic/locale-util.c:173:21: call_function: calling ‘normalize_locale’ from ‘add_locales_from_libdir’
systemd-258/src/basic/locale-util.c:173:21: return_function: returning to ‘add_locales_from_libdir’ from ‘normalize_locale’
systemd-258/src/basic/locale-util.c:174:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/locale-util.c:177:21: branch_false: ...to here
systemd-258/src/basic/locale-util.c:177:21: danger: ‘normalize_locale(&*de.d_name)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  175|                           return -ENOMEM;
#  176|   
#  177|->                 r = set_consume(locales, z);
#  178|                   if (r < 0)
#  179|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def263]
systemd-258/src/basic/log-context.h:63:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
systemd-258/src/timedate/timedated.c:520:12: enter_function: entry to ‘unit_enable_or_disable’
systemd-258/src/timedate/timedated.c:523:9: branch_false: following ‘false’ branch...
systemd-258/src/timedate/timedated.c:524:9: branch_false: ...to here
systemd-258/src/timedate/timedated.c:524:9: branch_false: following ‘false’ branch...
systemd-258/src/timedate/timedated.c:525:9: branch_false: ...to here
systemd-258/src/timedate/timedated.c:525:9: branch_false: following ‘false’ branch...
systemd-258/src/timedate/timedated.c:529:9: branch_false: ...to here
systemd-258/src/timedate/timedated.c:529:9: call_function: calling ‘log_context_unrefp’ from ‘unit_enable_or_disable’
#   61|   LogContext *log_context_unref(LogContext *c);
#   62|   
#   63|-> DEFINE_TRIVIAL_CLEANUP_FUNC(LogContext*, log_context_unref);
#   64|   
#   65|   /* Returns the head of the log context list. */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def264]
systemd-258/src/basic/log.c:149:14: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
systemd-258/src/basic/log.c:1714:6: enter_function: entry to ‘log_setup’
systemd-258/src/basic/log.c:1715:9: call_function: calling ‘log_set_target’ from ‘log_setup’
systemd-258/src/basic/log.c:1715:9: return_function: returning to ‘log_setup’ from ‘log_set_target’
systemd-258/src/basic/log.c:1716:9: call_function: calling ‘log_parse_environment’ from ‘log_setup’
#  147|                   return -errno;
#  148|   
#  149|->         fd = fd_move_above_stdio(fd);
#  150|           (void) fd_inc_sndbuf(fd, SNDBUF_SIZE);
#  151|   

Error: COMPILER_WARNING: [#def265] [important]
systemd-258/src/basic/memfd-util.c:41:25: error[error]: ‘TASK_COMM_LEN’ undeclared (first use in this function)
#   39|   
#   40|           if (!name) {
#   41|->                 char pr[TASK_COMM_LEN] = {};
#   42|   
#   43|                   /* If no name is specified we generate one. We include

Error: CPPCHECK_WARNING (CWE-457): [#def266]
systemd-258/src/basic/memory-util.h:20: warning[uninitvar]: Uninitialized variable: dst
#   18|   static inline void* memcpy_safe(void *dst, const void *src, size_t n) {
#   19|           if (n == 0)
#   20|->                 return dst;
#   21|           assert(src);
#   22|           return memcpy(dst, src, n);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
systemd-258/src/basic/memory-util.h:21:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
systemd-258/src/basic/alloc-util.c:7:7: enter_function: entry to ‘memdup’
systemd-258/src/basic/alloc-util.c:10:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/alloc-util.c:12:15: branch_false: ...to here
systemd-258/src/basic/alloc-util.c:12:15: acquire_memory: allocated here
systemd-258/src/basic/alloc-util.c:13:12: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
systemd-258/src/basic/alloc-util.c:16:16: branch_false: ...to here
systemd-258/src/basic/alloc-util.c:16:16: call_function: calling ‘memcpy_safe’ from ‘memdup’
#   19|           if (n == 0)
#   20|                   return dst;
#   21|->         assert(src);
#   22|           return memcpy(dst, src, n);
#   23|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
systemd-258/src/basic/memory-util.h:29:9: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
systemd-258/src/basic/string-util.c:43:7: enter_function: entry to ‘strextendn’
systemd-258/src/basic/string-util.c:44:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/string-util.c:45:9: branch_false: ...to here
systemd-258/src/basic/string-util.c:45:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/string-util.c:47:12: branch_false: ...to here
systemd-258/src/basic/string-util.c:56:20: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
systemd-258/src/basic/string-util.c:59:18: branch_false: ...to here
systemd-258/src/basic/string-util.c:59:18: call_function: calling ‘mempcpy_safe’ from ‘strextendn’
#   27|           if (n == 0)
#   28|                   return dst;
#   29|->         assert(src);
#   30|           return mempcpy(dst, src, n);
#   31|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
systemd-258/src/basic/memory-util.h:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘a’
systemd-258/src/basic/env-util.c:1114:5: enter_function: entry to ‘getenv_steal_erase’
systemd-258/src/basic/env-util.c:1118:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-util.c:1124:13: branch_false: ...to here
systemd-258/src/basic/env-util.c:1125:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
systemd-258/src/basic/env-util.c:1131:12: branch_false: ...to here
systemd-258/src/basic/env-util.c:1131:12: branch_true: following ‘true’ branch (when ‘ret’ is non-NULL)...
systemd-258/src/basic/env-util.c:1132:21: branch_true: ...to here
systemd-258/src/basic/env-util.c:1132:21: acquire_memory: allocated here
systemd-258/src/basic/env-util.c:1133:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-util.c:1137:9: branch_false: ...to here
systemd-258/src/basic/env-util.c:1115:42: call_function: inlined call to ‘erase_and_freep’ from ‘getenv_steal_erase’
#   97|   
#   98|   static inline void erase_and_freep(void *p) {
#   99|->         erase_and_free(*(void**) p);
#  100|   }
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
systemd-258/src/basic/memory-util.h:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘key’
systemd-258/src/shared/recovery-key.c:74:5: enter_function: entry to ‘make_recovery_key’
systemd-258/src/shared/recovery-key.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/recovery-key.c:82:15: call_function: inlined call to ‘malloc_multiply’ from ‘make_recovery_key’
systemd-258/src/shared/recovery-key.c:83:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/recovery-key.c:86:13: branch_false: ...to here
systemd-258/src/shared/recovery-key.c:76:45: call_function: inlined call to ‘erase_and_freep’ from ‘make_recovery_key’
systemd-258/src/shared/recovery-key.c:75:42: call_function: inlined call to ‘erase_and_freep’ from ‘make_recovery_key’
#   97|   
#   98|   static inline void erase_and_freep(void *p) {
#   99|->         erase_and_free(*(void**) p);
#  100|   }
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
systemd-258/src/basic/memory-util.h:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(packet_length, 1)’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:58:12: enter_function: entry to ‘send_passwords’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:61:9: branch_false: following ‘false’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:63:30: branch_false: ...to here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:65:12: branch_false: following ‘false’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:67:19: branch_false: ...to here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:73:51: call_function: calling ‘malloc_multiply’ from ‘send_passwords’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:73:51: return_function: returning to ‘send_passwords’ from ‘malloc_multiply’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:74:12: branch_false: following ‘false’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:77:9: branch_false: ...to here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:84:12: branch_true: following ‘true’ branch...
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:85:24: branch_true: ...to here
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:73:42: call_function: inlined call to ‘erase_and_freep’ from ‘send_passwords’
#   97|   
#   98|   static inline void erase_and_freep(void *p) {
#   99|->         erase_and_free(*(void**) p);
#  100|   }
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
systemd-258/src/basic/memory-util.h:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mangled’
systemd-258/src/shared/recovery-key.c:21:5: enter_function: entry to ‘normalize_recovery_key’
systemd-258/src/shared/recovery-key.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/recovery-key.c:26:9: branch_false: ...to here
systemd-258/src/shared/recovery-key.c:26:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/recovery-key.c:28:13: branch_false: ...to here
systemd-258/src/shared/recovery-key.c:34:19: call_function: inlined call to ‘malloc_multiply’ from ‘normalize_recovery_key’
systemd-258/src/shared/recovery-key.c:35:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/recovery-key.c:38:35: branch_true: following ‘true’ branch (when ‘i != 32’)...
systemd-258/src/shared/recovery-key.c:42:20: branch_true: ...to here
systemd-258/src/shared/recovery-key.c:54:21: call_function: calling ‘decode_modhex_char’ from ‘normalize_recovery_key’
systemd-258/src/shared/recovery-key.c:54:21: return_function: returning to ‘normalize_recovery_key’ from ‘decode_modhex_char’
systemd-258/src/shared/recovery-key.c:22:42: call_function: inlined call to ‘erase_and_freep’ from ‘normalize_recovery_key’
#   97|   
#   98|   static inline void erase_and_freep(void *p) {
#   99|->         erase_and_free(*(void**) p);
#  100|   }
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
systemd-258/src/basic/memory-util.h:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258/src/udev/net/link-config.c:127:12: enter_function: entry to ‘link_parse_wol_password’
systemd-258/src/udev/net/link-config.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:132:9: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:132:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:136:13: call_function: inlined call to ‘malloc_multiply’ from ‘link_parse_wol_password’
systemd-258/src/udev/net/link-config.c:137:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:141:13: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:128:45: call_function: inlined call to ‘erase_and_freep’ from ‘link_parse_wol_password’
#   97|   
#   98|   static inline void erase_and_freep(void *p) {
#   99|->         erase_and_free(*(void**) p);
#  100|   }
#  101|   

Error: COMPILER_WARNING: [#def274] [important]
systemd-258/src/basic/namespace-util.c:27:101: error[error]: ‘PROC_CGROUP_INIT_INO’ undeclared here (not in a function)
#   25|   
#   26|   const struct namespace_info namespace_info[_NAMESPACE_TYPE_MAX + 1] = {
#   27|->         [NAMESPACE_CGROUP] =  { "cgroup", "ns/cgroup", CLONE_NEWCGROUP, PIDFD_GET_CGROUP_NAMESPACE, PROC_CGROUP_INIT_INO },
#   28|           [NAMESPACE_IPC]    =  { "ipc",    "ns/ipc",    CLONE_NEWIPC,    PIDFD_GET_IPC_NAMESPACE,    PROC_IPC_INIT_INO    },
#   29|           [NAMESPACE_NET]    =  { "net",    "ns/net",    CLONE_NEWNET,    PIDFD_GET_NET_NAMESPACE,    0                    },

Error: COMPILER_WARNING: [#def275] [important]
systemd-258/src/basic/namespace-util.c:28:101: error[error]: ‘PROC_IPC_INIT_INO’ undeclared here (not in a function); did you mean ‘PID_NS_INIT_INO’?
#   26|   const struct namespace_info namespace_info[_NAMESPACE_TYPE_MAX + 1] = {
#   27|           [NAMESPACE_CGROUP] =  { "cgroup", "ns/cgroup", CLONE_NEWCGROUP, PIDFD_GET_CGROUP_NAMESPACE, PROC_CGROUP_INIT_INO },
#   28|->         [NAMESPACE_IPC]    =  { "ipc",    "ns/ipc",    CLONE_NEWIPC,    PIDFD_GET_IPC_NAMESPACE,    PROC_IPC_INIT_INO    },
#   29|           [NAMESPACE_NET]    =  { "net",    "ns/net",    CLONE_NEWNET,    PIDFD_GET_NET_NAMESPACE,    0                    },
#   30|           /* So, the mount namespace flag is called CLONE_NEWNS for historical

Error: COMPILER_WARNING: [#def276] [important]
systemd-258/src/basic/namespace-util.c:34:101: error[error]: ‘PROC_PID_INIT_INO’ undeclared here (not in a function); did you mean ‘CGROUP_NS_INIT_INO’?
#   32|            * This is in-line with how the kernel exposes namespaces in /proc/$PID/ns. */
#   33|           [NAMESPACE_MOUNT]  =  { "mnt",    "ns/mnt",    CLONE_NEWNS,     PIDFD_GET_MNT_NAMESPACE,    0                    },
#   34|->         [NAMESPACE_PID]    =  { "pid",    "ns/pid",    CLONE_NEWPID,    PIDFD_GET_PID_NAMESPACE,    PROC_PID_INIT_INO    },
#   35|           [NAMESPACE_USER]   =  { "user",   "ns/user",   CLONE_NEWUSER,   PIDFD_GET_USER_NAMESPACE,   PROC_USER_INIT_INO   },
#   36|           [NAMESPACE_UTS]    =  { "uts",    "ns/uts",    CLONE_NEWUTS,    PIDFD_GET_UTS_NAMESPACE,    PROC_UTS_INIT_INO    },

Error: COMPILER_WARNING: [#def277] [important]
systemd-258/src/basic/namespace-util.c:35:101: error[error]: ‘PROC_USER_INIT_INO’ undeclared here (not in a function); did you mean ‘PID_NS_INIT_INO’?
#   33|           [NAMESPACE_MOUNT]  =  { "mnt",    "ns/mnt",    CLONE_NEWNS,     PIDFD_GET_MNT_NAMESPACE,    0                    },
#   34|           [NAMESPACE_PID]    =  { "pid",    "ns/pid",    CLONE_NEWPID,    PIDFD_GET_PID_NAMESPACE,    PROC_PID_INIT_INO    },
#   35|->         [NAMESPACE_USER]   =  { "user",   "ns/user",   CLONE_NEWUSER,   PIDFD_GET_USER_NAMESPACE,   PROC_USER_INIT_INO   },
#   36|           [NAMESPACE_UTS]    =  { "uts",    "ns/uts",    CLONE_NEWUTS,    PIDFD_GET_UTS_NAMESPACE,    PROC_UTS_INIT_INO    },
#   37|           [NAMESPACE_TIME]   =  { "time",   "ns/time",   CLONE_NEWTIME,   PIDFD_GET_TIME_NAMESPACE,   PROC_TIME_INIT_INO   },

Error: COMPILER_WARNING: [#def278] [important]
systemd-258/src/basic/namespace-util.c:36:101: error[error]: ‘PROC_UTS_INIT_INO’ undeclared here (not in a function); did you mean ‘PID_NS_INIT_INO’?
#   34|           [NAMESPACE_PID]    =  { "pid",    "ns/pid",    CLONE_NEWPID,    PIDFD_GET_PID_NAMESPACE,    PROC_PID_INIT_INO    },
#   35|           [NAMESPACE_USER]   =  { "user",   "ns/user",   CLONE_NEWUSER,   PIDFD_GET_USER_NAMESPACE,   PROC_USER_INIT_INO   },
#   36|->         [NAMESPACE_UTS]    =  { "uts",    "ns/uts",    CLONE_NEWUTS,    PIDFD_GET_UTS_NAMESPACE,    PROC_UTS_INIT_INO    },
#   37|           [NAMESPACE_TIME]   =  { "time",   "ns/time",   CLONE_NEWTIME,   PIDFD_GET_TIME_NAMESPACE,   PROC_TIME_INIT_INO   },
#   38|           {}, /* Allow callers to iterate over the array without using _NAMESPACE_TYPE_MAX. */

Error: COMPILER_WARNING: [#def279] [important]
systemd-258/src/basic/namespace-util.c:37:101: error[error]: ‘PROC_TIME_INIT_INO’ undeclared here (not in a function)
#   35|           [NAMESPACE_USER]   =  { "user",   "ns/user",   CLONE_NEWUSER,   PIDFD_GET_USER_NAMESPACE,   PROC_USER_INIT_INO   },
#   36|           [NAMESPACE_UTS]    =  { "uts",    "ns/uts",    CLONE_NEWUTS,    PIDFD_GET_UTS_NAMESPACE,    PROC_UTS_INIT_INO    },
#   37|->         [NAMESPACE_TIME]   =  { "time",   "ns/time",   CLONE_NEWTIME,   PIDFD_GET_TIME_NAMESPACE,   PROC_TIME_INIT_INO   },
#   38|           {}, /* Allow callers to iterate over the array without using _NAMESPACE_TYPE_MAX. */
#   39|   };

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
systemd-258/src/basic/parse-util.h:33:16: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:21:13: enter_function: entry to ‘verify_contents’
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:24:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:27:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:27:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:27:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:28:29: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:33:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:34:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:37:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:38:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:40:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:41:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:41:17: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:41:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:42:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:44:20: branch_true: following ‘true’ branch (when ‘skip != 0’)...
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:45:25: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-stream.c:45:25: call_function: inlined call to ‘safe_atou’ from ‘verify_contents’
#   31|   int safe_atou_full(const char *s, unsigned base, unsigned *ret_u);
#   32|   static inline int safe_atou(const char *s, unsigned *ret_u) {
#   33|->         return safe_atou_full(s, 0, ret_u);
#   34|   }
#   35|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def281]
systemd-258/src/basic/path-util.c:947:21: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
systemd-258/src/basic/path-util.c:1214:6: enter_function: entry to ‘path_is_valid_full’
systemd-258/src/basic/path-util.c:1221:21: call_function: calling ‘path_find_first_component’ from ‘path_is_valid_full’
#  945|           next = skip_slash_or_dot(end_first);
#  946|   
#  947|->         *p = next + streq(next, ".");
#  948|           if (ret)
#  949|                   *ret = first;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def282]
systemd-258/src/basic/path-util.c:947:21: warning[-Wanalyzer-null-argument]: use of NULL ‘aa’ where non-null expected
systemd-258/src/basic/path-util.c:1430:6: enter_function: entry to ‘path_strv_contains’
systemd-258/src/basic/path-util.c:1431:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/path-util.c:1433:9: branch_true: following ‘true’ branch...
#  945|           next = skip_slash_or_dot(end_first);
#  946|   
#  947|->         *p = next + streq(next, ".");
#  948|           if (ret)
#  949|                   *ret = first;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def283]
systemd-258/src/basic/path-util.c:947:21: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
systemd-258/src/basic/path-util.c:1458:5: enter_function: entry to ‘path_glob_can_match’
systemd-258/src/basic/path-util.c:1459:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/path-util.c:1460:9: branch_false: ...to here
systemd-258/src/basic/path-util.c:1460:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/path-util.c:1462:26: branch_false: ...to here
systemd-258/src/basic/path-util.c:1467:21: call_function: calling ‘path_find_first_component’ from ‘path_glob_can_match’
systemd-258/src/basic/path-util.c:1467:21: return_function: returning to ‘path_glob_can_match’ from ‘path_find_first_component’
systemd-258/src/basic/path-util.c:1468:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/path-util.c:1471:21: branch_false: ...to here
systemd-258/src/basic/path-util.c:1471:21: call_function: calling ‘path_find_first_component’ from ‘path_glob_can_match’
#  945|           next = skip_slash_or_dot(end_first);
#  946|   
#  947|->         *p = next + streq(next, ".");
#  948|           if (ret)
#  949|                   *ret = first;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def284]
systemd-258/src/basic/path-util.c:1228:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘e’
systemd-258/src/basic/path-util.c:1214:6: enter_function: entry to ‘path_is_valid_full’
systemd-258/src/basic/path-util.c:1221:21: call_function: calling ‘path_find_first_component’ from ‘path_is_valid_full’
systemd-258/src/basic/path-util.c:1221:21: return_function: returning to ‘path_is_valid_full’ from ‘path_find_first_component’
systemd-258/src/basic/path-util.c:1222:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/path-util.c:1225:21: branch_false: ...to here
systemd-258/src/basic/path-util.c:1225:21: release_memory: ‘e’ is NULL
systemd-258/src/basic/path-util.c:1225:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/path-util.c:1228:21: branch_false: ...to here
systemd-258/src/basic/path-util.c:1228:21: danger: dereference of NULL ‘e’
# 1226|                                           * *with* the trailing NUL byte) */
# 1227|                           return false;
# 1228|->                 if (*e == 0)           /* End of string? Yay! */
# 1229|                           return true;
# 1230|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
systemd-258/src/basic/path-util.h:80:16: warning[-Wanalyzer-malloc-leak]: leak of ‘q’
systemd-258/src/libsystemd/sd-device/sd-device.c:1601:5: enter_function: entry to ‘device_remove_devlink’
systemd-258/src/libsystemd/sd-device/sd-device.c:1605:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1606:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1606:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1608:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1608:13: call_function: calling ‘mangle_devname’ from ‘device_remove_devlink’
#   78|   char* path_simplify_full(char *path, PathSimplifyFlags flags);
#   79|   static inline char* path_simplify(char *path) {
#   80|->         return path_simplify_full(path, 0);
#   81|   }
#   82|   

Error: COMPILER_WARNING: [#def286]
systemd-258/src/basic/pidfd-util.c:76:42: warning[warning]: ‘struct pidfd_info’ declared inside parameter list will not be visible outside of this definition or declaration
#   74|   }
#   75|   
#   76|-> static int pidfd_get_info(int fd, struct pidfd_info *info) {
#   77|           static bool cached_supported = false;
#   78|   

Error: COMPILER_WARNING: [#def287] [important]
systemd-258/src/basic/pidfd-util.c:85:23: error[error]: ‘PIDFD_GET_INFO’ undeclared (first use in this function)
#   83|                   return -EOPNOTSUPP;
#   84|   
#   85|->         if (ioctl(fd, PIDFD_GET_INFO, info) < 0) {
#   86|                   if (ERRNO_IS_IOCTL_NOT_SUPPORTED(errno)) {
#   87|                           cached_supported = false;

Error: COMPILER_WARNING: [#def288] [important]
systemd-258/src/basic/pidfd-util.c:123:16: error[error]: variable ‘info’ has initializer but incomplete type
#  121|   
#  122|   static int pidfd_get_pid_ioctl(int fd, pid_t *ret) {
#  123|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  124|           int r;
#  125|   

Error: COMPILER_WARNING: [#def289] [important]
systemd-258/src/basic/pidfd-util.c:123:27: error[error]: storage size of ‘info’ isn’t known
#  121|   
#  122|   static int pidfd_get_pid_ioctl(int fd, pid_t *ret) {
#  123|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  124|           int r;
#  125|   

Error: COMPILER_WARNING: [#def290] [important]
systemd-258/src/basic/pidfd-util.c:123:37: error[error]: ‘struct pidfd_info’ has no member named ‘mask’
#  121|   
#  122|   static int pidfd_get_pid_ioctl(int fd, pid_t *ret) {
#  123|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  124|           int r;
#  125|   

Error: COMPILER_WARNING: [#def291] [important]
systemd-258/src/basic/pidfd-util.c:123:44: error[error]: ‘PIDFD_INFO_PID’ undeclared (first use in this function)
#  121|   
#  122|   static int pidfd_get_pid_ioctl(int fd, pid_t *ret) {
#  123|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  124|           int r;
#  125|   

Error: COMPILER_WARNING: [#def292]
systemd-258/src/basic/pidfd-util.c:123:44: warning[warning]: excess elements in struct initializer
#  121|   
#  122|   static int pidfd_get_pid_ioctl(int fd, pid_t *ret) {
#  123|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  124|           int r;
#  125|   

Error: COMPILER_WARNING: [#def293] [important]
systemd-258/src/basic/pidfd-util.c:180:16: error[error]: variable ‘info’ has initializer but incomplete type
#  178|   
#  179|   int pidfd_get_ppid(int fd, pid_t *ret) {
#  180|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  181|           int r;
#  182|   

Error: COMPILER_WARNING: [#def294] [important]
systemd-258/src/basic/pidfd-util.c:180:27: error[error]: storage size of ‘info’ isn’t known
#  178|   
#  179|   int pidfd_get_ppid(int fd, pid_t *ret) {
#  180|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  181|           int r;
#  182|   

Error: COMPILER_WARNING: [#def295] [important]
systemd-258/src/basic/pidfd-util.c:180:37: error[error]: ‘struct pidfd_info’ has no member named ‘mask’
#  178|   
#  179|   int pidfd_get_ppid(int fd, pid_t *ret) {
#  180|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  181|           int r;
#  182|   

Error: COMPILER_WARNING: [#def296] [important]
systemd-258/src/basic/pidfd-util.c:180:44: error[error]: ‘PIDFD_INFO_PID’ undeclared (first use in this function)
#  178|   
#  179|   int pidfd_get_ppid(int fd, pid_t *ret) {
#  180|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  181|           int r;
#  182|   

Error: COMPILER_WARNING: [#def297]
systemd-258/src/basic/pidfd-util.c:180:44: warning[warning]: excess elements in struct initializer
#  178|   
#  179|   int pidfd_get_ppid(int fd, pid_t *ret) {
#  180|->         struct pidfd_info info = { .mask = PIDFD_INFO_PID };
#  181|           int r;
#  182|   

Error: COMPILER_WARNING: [#def298] [important]
systemd-258/src/basic/pidfd-util.c:200:16: error[error]: variable ‘info’ has initializer but incomplete type
#  198|   
#  199|   int pidfd_get_uid(int fd, uid_t *ret) {
#  200|->         struct pidfd_info info = { .mask = PIDFD_INFO_CREDS };
#  201|           int r;
#  202|   

Error: COMPILER_WARNING: [#def299] [important]
systemd-258/src/basic/pidfd-util.c:200:27: error[error]: storage size of ‘info’ isn’t known
#  198|   
#  199|   int pidfd_get_uid(int fd, uid_t *ret) {
#  200|->         struct pidfd_info info = { .mask = PIDFD_INFO_CREDS };
#  201|           int r;
#  202|   

Error: COMPILER_WARNING: [#def300] [important]
systemd-258/src/basic/pidfd-util.c:200:37: error[error]: ‘struct pidfd_info’ has no member named ‘mask’
#  198|   
#  199|   int pidfd_get_uid(int fd, uid_t *ret) {
#  200|->         struct pidfd_info info = { .mask = PIDFD_INFO_CREDS };
#  201|           int r;
#  202|   

Error: COMPILER_WARNING: [#def301] [important]
systemd-258/src/basic/pidfd-util.c:200:44: error[error]: ‘PIDFD_INFO_CREDS’ undeclared (first use in this function)
#  198|   
#  199|   int pidfd_get_uid(int fd, uid_t *ret) {
#  200|->         struct pidfd_info info = { .mask = PIDFD_INFO_CREDS };
#  201|           int r;
#  202|   

Error: COMPILER_WARNING: [#def302]
systemd-258/src/basic/pidfd-util.c:200:44: warning[warning]: excess elements in struct initializer
#  198|   
#  199|   int pidfd_get_uid(int fd, uid_t *ret) {
#  200|->         struct pidfd_info info = { .mask = PIDFD_INFO_CREDS };
#  201|           int r;
#  202|   

Error: COMPILER_WARNING: [#def303] [important]
systemd-258/src/basic/pidfd-util.c:217:16: error[error]: variable ‘info’ has initializer but incomplete type
#  215|   
#  216|   int pidfd_get_cgroupid(int fd, uint64_t *ret) {
#  217|->         struct pidfd_info info = { .mask = PIDFD_INFO_CGROUPID };
#  218|           int r;
#  219|   

Error: COMPILER_WARNING: [#def304] [important]
systemd-258/src/basic/pidfd-util.c:217:27: error[error]: storage size of ‘info’ isn’t known
#  215|   
#  216|   int pidfd_get_cgroupid(int fd, uint64_t *ret) {
#  217|->         struct pidfd_info info = { .mask = PIDFD_INFO_CGROUPID };
#  218|           int r;
#  219|   

Error: COMPILER_WARNING: [#def305] [important]
systemd-258/src/basic/pidfd-util.c:217:37: error[error]: ‘struct pidfd_info’ has no member named ‘mask’
#  215|   
#  216|   int pidfd_get_cgroupid(int fd, uint64_t *ret) {
#  217|->         struct pidfd_info info = { .mask = PIDFD_INFO_CGROUPID };
#  218|           int r;
#  219|   

Error: COMPILER_WARNING: [#def306] [important]
systemd-258/src/basic/pidfd-util.c:217:44: error[error]: ‘PIDFD_INFO_CGROUPID’ undeclared (first use in this function)
#  215|   
#  216|   int pidfd_get_cgroupid(int fd, uint64_t *ret) {
#  217|->         struct pidfd_info info = { .mask = PIDFD_INFO_CGROUPID };
#  218|           int r;
#  219|   

Error: COMPILER_WARNING: [#def307]
systemd-258/src/basic/pidfd-util.c:217:44: warning[warning]: excess elements in struct initializer
#  215|   
#  216|   int pidfd_get_cgroupid(int fd, uint64_t *ret) {
#  217|->         struct pidfd_info info = { .mask = PIDFD_INFO_CGROUPID };
#  218|           int r;
#  219|   

Error: COMPILER_WARNING: [#def308] [important]
systemd-258/src/basic/pidfd-util.c:245:52: error[error]: ‘FILEID_KERNFS’ undeclared (first use in this function)
#  243|                   } fh = {
#  244|                           .file_handle.handle_bytes = sizeof(uint64_t),
#  245|->                         .file_handle.handle_type = FILEID_KERNFS,
#  246|                   };
#  247|                   int mnt_id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
systemd-258/src/basic/pidref.c:255:23: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
systemd-258/src/basic/pidref.c:318:5: enter_function: entry to ‘pidref_new_from_pid’
systemd-258/src/basic/pidref.c:322:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/pidref.c:324:12: branch_false: ...to here
systemd-258/src/basic/pidref.c:324:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
systemd-258/src/basic/pidref.c:327:13: call_function: inlined call to ‘malloc_multiply’ from ‘pidref_new_from_pid’
systemd-258/src/basic/pidref.c:328:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/pidref.c:331:9: branch_false: ...to here
systemd-258/src/basic/pidref.c:333:13: call_function: calling ‘pidref_set_pid’ from ‘pidref_new_from_pid’
systemd-258/src/basic/pidref.c:319:41: call_function: calling ‘pidref_freep’ from ‘pidref_new_from_pid’
#  253|   
#  254|           *pidref = (PidRef) {
#  255|->                 .fd = safe_close(pidref->fd),
#  256|           };
#  257|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def310]
systemd-258/src/basic/pidref.h:53:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
systemd-258/src/test/test-namespace.c:436:1: enter_function: entry to ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:442:9: branch_false: following ‘false’ branch (when ‘_result >= 0’)...
systemd-258/src/test/test-namespace.c:444:9: call_function: inlined call to ‘pidref_safe_fork’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:444:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:445:12: branch_false: ...to here
systemd-258/src/test/test-namespace.c:445:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:454:16: branch_false: ...to here
systemd-258/src/test/test-namespace.c:455:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:456:9: branch_false: following ‘false’ branch (when ‘_expr1 == 120’)...
systemd-258/src/test/test-namespace.c:458:9: branch_false: ...to here
systemd-258/src/test/test-namespace.c:458:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:459:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
 branch_false: ...to here
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
#   51|   
#   52|   static inline bool pidref_is_set(const PidRef *pidref) {
#   53|->         return pidref && pidref->pid > 0;
#   54|   }
#   55|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def311]
systemd-258/src/basic/pidref.h:53:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
systemd-258/src/test/test-namespace.c:436:1: enter_function: entry to ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:442:9: branch_false: following ‘false’ branch (when ‘_result >= 0’)...
systemd-258/src/test/test-namespace.c:444:9: call_function: inlined call to ‘pidref_safe_fork’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:444:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:445:12: branch_false: ...to here
systemd-258/src/test/test-namespace.c:445:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-namespace.c:446:24: branch_true: ...to here
systemd-258/src/test/test-namespace.c:438:34: call_function: inlined call to ‘close_pairp’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
 branch_false: ...to here
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
#   51|   
#   52|   static inline bool pidref_is_set(const PidRef *pidref) {
#   53|->         return pidref && pidref->pid > 0;
#   54|   }
#   55|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def312]
systemd-258/src/basic/pidref.h:102:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
systemd-258/src/test/test-namespace.c:436:1: enter_function: entry to ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:442:9: branch_false: following ‘false’ branch (when ‘_result >= 0’)...
systemd-258/src/test/test-namespace.c:444:9: call_function: inlined call to ‘pidref_safe_fork’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:444:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:445:12: branch_false: ...to here
systemd-258/src/test/test-namespace.c:445:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-namespace.c:446:24: branch_true: ...to here
systemd-258/src/test/test-namespace.c:438:34: call_function: inlined call to ‘close_pairp’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
 branch_true: ...to here
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
#  100|                   return;
#  101|   
#  102|->         (void) pidref_kill(pidref, SIGKILL);
#  103|           (void) pidref_wait_for_terminate(pidref, NULL);
#  104|           pidref_done(pidref);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def313]
systemd-258/src/basic/pidref.h:103:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
systemd-258/src/test/test-namespace.c:436:1: enter_function: entry to ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:442:9: branch_false: following ‘false’ branch (when ‘_result >= 0’)...
systemd-258/src/test/test-namespace.c:444:9: call_function: inlined call to ‘pidref_safe_fork’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:444:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:445:12: branch_false: ...to here
systemd-258/src/test/test-namespace.c:445:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-namespace.c:446:24: branch_true: ...to here
systemd-258/src/test/test-namespace.c:438:34: call_function: inlined call to ‘close_pairp’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
 branch_true: ...to here
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
#  101|   
#  102|           (void) pidref_kill(pidref, SIGKILL);
#  103|->         (void) pidref_wait_for_terminate(pidref, NULL);
#  104|           pidref_done(pidref);
#  105|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def314]
systemd-258/src/basic/pidref.h:104:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
systemd-258/src/test/test-namespace.c:436:1: enter_function: entry to ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:442:9: branch_false: following ‘false’ branch (when ‘_result >= 0’)...
systemd-258/src/test/test-namespace.c:444:9: call_function: inlined call to ‘pidref_safe_fork’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:444:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:445:12: branch_false: ...to here
systemd-258/src/test/test-namespace.c:445:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-namespace.c:446:24: branch_true: ...to here
systemd-258/src/test/test-namespace.c:438:34: call_function: inlined call to ‘close_pairp’ from ‘test_detach_mount_namespace_harder’
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
 branch_true: ...to here
systemd-258/src/test/test-namespace.c:437:52: call_function: inlined call to ‘pidref_done_sigkill_wait’ from ‘test_detach_mount_namespace_harder’
#  102|           (void) pidref_kill(pidref, SIGKILL);
#  103|           (void) pidref_wait_for_terminate(pidref, NULL);
#  104|->         pidref_done(pidref);
#  105|   }
#  106|   

Error: COMPILER_WARNING: [#def315] [important]
systemd-258/src/basic/process-util.c:101:24: error[error]: ‘TASK_COMM_LEN’ undeclared (first use in this function)
#   99|   
#  100|           if (pid == 0 || pid == getpid_cached()) {
#  101|->                 comm = new0(char, TASK_COMM_LEN + 1); /* Must fit in 16 byte according to prctl(2) */
#  102|                   if (!comm)
#  103|                           return -ENOMEM;

Error: COMPILER_WARNING: [#def316] [important]
systemd-258/src/basic/process-util.c:445:27: error[error]: ‘PF_KTHREAD’ undeclared (first use in this function)
#  443|                   return r;
#  444|   
#  445|->         return !!(flags & PF_KTHREAD);
#  446|   }
#  447|   

Error: COMPILER_WARNING: [#def317] [important]
systemd-258/src/basic/process-util.c:1478:15: error[-Wimplicit-function-declaration]: implicit declaration of function ‘__clone2’; did you mean ‘clone’?
# 1476|           pid = clone(fn, mystack, flags, userdata);
# 1477|   #else
# 1478|->         pid = __clone2(fn, mystack, ps, flags, userdata);
# 1479|   #endif
# 1480|           if (pid < 0)

Error: CPPCHECK_WARNING (CWE-457): [#def318]
systemd-258/src/basic/recurse-dir.c:82: warning[uninitvar]: Uninitialized variable: entry
#   80|           de->n_entries = 0;
#   81|           struct dirent *entry;
#   82|->         FOREACH_DIRENT_IN_BUFFER(entry, de->buffer, de->buffer_size) {
#   83|                   if (ignore_dirent(entry, flags))
#   84|                           continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
systemd-258/src/basic/replace-var.c:63:21: warning[-Wanalyzer-malloc-leak]: leak of ‘r’
systemd-258/src/basic/replace-var.c:34:7: enter_function: entry to ‘replace_var’
systemd-258/src/basic/replace-var.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:40:9: branch_false: ...to here
systemd-258/src/basic/replace-var.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:42:13: branch_false: ...to here
systemd-258/src/basic/replace-var.c:43:13: call_function: calling ‘malloc_multiply’ from ‘replace_var’
systemd-258/src/basic/replace-var.c:43:13: return_function: returning to ‘replace_var’ from ‘malloc_multiply’
systemd-258/src/basic/replace-var.c:44:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/replace-var.c:49:16: branch_true: following ‘true’ branch...
systemd-258/src/basic/replace-var.c:50:38: branch_true: ...to here
systemd-258/src/basic/replace-var.c:55:21: call_function: calling ‘get_variable’ from ‘replace_var’
systemd-258/src/basic/replace-var.c:55:21: return_function: returning to ‘replace_var’ from ‘get_variable’
systemd-258/src/basic/replace-var.c:56:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:58:20: branch_false: ...to here
systemd-258/src/basic/replace-var.c:58:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:63:21: branch_false: ...to here
systemd-258/src/basic/replace-var.c:63:21: danger: ‘r’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#   61|                   }
#   62|   
#   63|->                 n = lookup(v, userdata);
#   64|                   if (!n)
#   65|                           goto oom;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
systemd-258/src/basic/replace-var.c:63:21: warning[-Wanalyzer-malloc-leak]: leak of ‘v’
systemd-258/src/basic/replace-var.c:34:7: enter_function: entry to ‘replace_var’
systemd-258/src/basic/replace-var.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:40:9: branch_false: ...to here
systemd-258/src/basic/replace-var.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:42:13: branch_false: ...to here
systemd-258/src/basic/replace-var.c:44:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/replace-var.c:49:16: branch_true: following ‘true’ branch...
systemd-258/src/basic/replace-var.c:50:38: branch_true: ...to here
systemd-258/src/basic/replace-var.c:55:21: call_function: calling ‘get_variable’ from ‘replace_var’
systemd-258/src/basic/replace-var.c:55:21: return_function: returning to ‘replace_var’ from ‘get_variable’
systemd-258/src/basic/replace-var.c:56:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:58:20: branch_false: ...to here
systemd-258/src/basic/replace-var.c:58:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:63:21: branch_false: ...to here
systemd-258/src/basic/replace-var.c:63:21: danger: ‘v’ leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
#   61|                   }
#   62|   
#   63|->                 n = lookup(v, userdata);
#   64|                   if (!n)
#   65|                           goto oom;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def321]
systemd-258/src/basic/replace-var.c:67:24: warning[-Wanalyzer-null-argument]: use of NULL ‘v’ where non-null expected
systemd-258/src/basic/replace-var.c:34:7: enter_function: entry to ‘replace_var’
systemd-258/src/basic/replace-var.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:40:9: branch_false: ...to here
systemd-258/src/basic/replace-var.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:42:13: branch_false: ...to here
systemd-258/src/basic/replace-var.c:44:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/replace-var.c:49:16: branch_true: following ‘true’ branch...
systemd-258/src/basic/replace-var.c:50:38: branch_true: ...to here
systemd-258/src/basic/replace-var.c:50:38: release_memory: ‘v’ is NULL
systemd-258/src/basic/replace-var.c:55:21: call_function: calling ‘get_variable’ from ‘replace_var’
systemd-258/src/basic/replace-var.c:55:21: return_function: returning to ‘replace_var’ from ‘get_variable’
systemd-258/src/basic/replace-var.c:56:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:58:20: branch_false: ...to here
systemd-258/src/basic/replace-var.c:58:20: branch_true: following ‘true’ branch...
systemd-258/src/basic/replace-var.c:59:35: branch_true: ...to here
systemd-258/src/basic/replace-var.c:50:38: call_function: inlined call to ‘freep’ from ‘replace_var’
systemd-258/src/basic/replace-var.c:49:16: branch_true: following ‘true’ branch...
systemd-258/src/basic/replace-var.c:50:38: branch_true: ...to here
systemd-258/src/basic/replace-var.c:50:38: release_memory: ‘v’ is NULL
systemd-258/src/basic/replace-var.c:55:21: call_function: calling ‘get_variable’ from ‘replace_var’
systemd-258/src/basic/replace-var.c:55:21: return_function: returning to ‘replace_var’ from ‘get_variable’
systemd-258/src/basic/replace-var.c:56:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:58:20: branch_false: ...to here
systemd-258/src/basic/replace-var.c:58:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:63:21: branch_false: ...to here
systemd-258/src/basic/replace-var.c:63:21: release_memory: ‘v’ is NULL
systemd-258/src/basic/replace-var.c:64:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/replace-var.c:67:24: branch_false: ...to here
systemd-258/src/basic/replace-var.c:67:24: danger: argument 1 (‘v’) NULL where non-null expected
#argument 1 of ‘__builtin_strlen’ must be non-null
#   65|                           goto oom;
#   66|   
#   67|->                 skip = strlen(v) + 2;
#   68|   
#   69|                   d = t - r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
systemd-258/src/basic/set.h:13:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1741:39: acquire_memory: allocated here
systemd-258/src/shared/userdb.c:1742:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1745:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1745:14: call_function: calling ‘userdb_start_query’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1725:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   11|   
#   12|   static inline Set* set_free(Set *s) {
#   13|->         return (Set*) _hashmap_free(HASHMAP_BASE(s));
#   14|   }
#   15|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
systemd-258/src/basic/set.h:13:23: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   11|   
#   12|   static inline Set* set_free(Set *s) {
#   13|->         return (Set*) _hashmap_free(HASHMAP_BASE(s));
#   14|   }
#   15|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
systemd-258/src/basic/set.h:13:23: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
systemd-258/src/libsystemd/sd-device/device-monitor.c:265:14: enter_function: entry to ‘sd_device_monitor_new’
systemd-258/src/libsystemd/sd-device/device-monitor.c:266:16: call_function: calling ‘device_monitor_new_full’ from ‘sd_device_monitor_new’
#   11|   
#   12|   static inline Set* set_free(Set *s) {
#   13|->         return (Set*) _hashmap_free(HASHMAP_BASE(s));
#   14|   }
#   15|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
systemd-258/src/basic/set.h:29:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(24)’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:842:12: enter_function: entry to ‘dhcp_pd_prefix_add’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:847:9: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:847:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:849:13: call_function: inlined call to ‘malloc_multiply’ from ‘dhcp_pd_prefix_add’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:850:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:856:32: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:859:25: call_function: inlined call to ‘set_contains’ from ‘dhcp_pd_prefix_add’
#   27|   
#   28|   static inline bool set_contains(const Set *s, const void *key) {
#   29|->         return _hashmap_contains(HASHMAP_BASE((Set *) s), key);
#   30|   }
#   31|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
systemd-258/src/basic/set.h:67:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)fdset_size(fds), 4)’
systemd-258/src/shared/fdset.c:282:5: enter_function: entry to ‘fdset_to_array’
systemd-258/src/shared/fdset.c:286:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:288:13: branch_false: ...to here
systemd-258/src/shared/fdset.c:289:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:291:12: branch_false: ...to here
systemd-258/src/shared/fdset.c:291:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:296:13: branch_false: ...to here
systemd-258/src/shared/fdset.c:296:13: call_function: calling ‘malloc_multiply’ from ‘fdset_to_array’
systemd-258/src/shared/fdset.c:296:13: return_function: returning to ‘fdset_to_array’ from ‘malloc_multiply’
systemd-258/src/shared/fdset.c:297:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/fdset.c:301:9: branch_false: ...to here
systemd-258/src/shared/fdset.c:301:9: call_function: calling ‘fdset_iterate’ from ‘fdset_to_array’
#   65|   
#   66|   static inline bool set_iterate(const Set *s, Iterator *i, void **value) {
#   67|->         return _hashmap_iterate(HASHMAP_BASE((Set*) s), i, value, NULL);
#   68|   }
#   69|   

Error: COMPILER_WARNING: [#def327] [important]
systemd-258/src/basic/signal-util.c:289:13: error[-Wimplicit-function-declaration]: implicit declaration of function ‘rt_tgsigqueueinfo’
#  287|           p = getpid();
#  288|   
#  289|->         if (rt_tgsigqueueinfo(p, gettid(), sig, siginfo) < 0)
#  290|                   assert_se(kill(p, sig) >= 0);
#  291|   }

Error: COMPILER_WARNING: [#def328] [important]
systemd-258/src/basic/socket-util.c:1013:27: error[error]: ‘SCM_MAX_FD’ undeclared (first use in this function)
# 1011|   
# 1012|           /* The kernel will reject sending more than SCM_MAX_FD FDs at once */
# 1013|->         if (n_fds_array > SCM_MAX_FD)
# 1014|                   return -E2BIG;
# 1015|   

Error: COMPILER_WARNING: [#def329] [important]
systemd-258/src/basic/socket-util.c:1101:9: error[error]: ‘SCM_MAX_FD’ undeclared (first use in this function)
# 1099|                   int flags) {
# 1100|   
# 1101|->         CMSG_BUFFER_TYPE(CMSG_SPACE(sizeof(int) * SCM_MAX_FD)) control;
# 1102|           struct msghdr mh = {
# 1103|                   .msg_control = &control,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def330]
systemd-258/src/basic/socket-util.h:122:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
systemd-258/src/libsystemd/sd-journal/journal-send.c:530:14: enter_function: entry to ‘sd_journal_sendv_with_location’
systemd-258/src/libsystemd/sd-journal/journal-send.c:538:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-send.c:539:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-send.c:539:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-send.c:541:16: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-send.c:541:16: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-send.c:544:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-send.c:544:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-send.c:550:16: call_function: calling ‘sd_journal_sendv’ from ‘sd_journal_sendv_with_location’
#  120|   int fd_set_sndbuf(int fd, size_t n, bool increase);
#  121|   static inline int fd_inc_sndbuf(int fd, size_t n) {
#  122|->         return fd_set_sndbuf(fd, n, true);
#  123|   }
#  124|   int fd_set_rcvbuf(int fd, size_t n, bool increase);

Error: CPPCHECK_WARNING (CWE-457): [#def331]
systemd-258/src/basic/stat-util.c:179: warning[uninitvar]: Uninitialized variable: de
#  177|                   msan_unpoison(buf, n);
#  178|   
#  179|->                 FOREACH_DIRENT_IN_BUFFER(de, buf, n)
#  180|                           if (!(ignore_hidden_or_backup ? hidden_or_backup_file(de->d_name) : dot_or_dot_dot(de->d_name)))
#  181|                                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
systemd-258/src/basic/strbuf.c:172:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258/src/basic/strbuf.c:107:9: enter_function: entry to ‘strbuf_add_string_full’
systemd-258/src/basic/strbuf.c:111:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:112:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:112:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:114:12: branch_false: ...to here
systemd-258/src/basic/strbuf.c:117:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:122:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:123:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
systemd-258/src/basic/strbuf.c:127:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:130:32: branch_true: following ‘true’ branch (when ‘len >= depth’)...
systemd-258/src/basic/strbuf.c:132:23: branch_true: ...to here
systemd-258/src/basic/strbuf.c:133:20: branch_false: following ‘false’ branch (when ‘len != depth’)...
systemd-258/src/basic/strbuf.c:133:21: branch_false: ...to here
systemd-258/src/basic/strbuf.c:150:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:152:15: branch_false: ...to here
systemd-258/src/basic/strbuf.c:160:22: call_function: inlined call to ‘malloc_multiply’ from ‘strbuf_add_string_full’
systemd-258/src/basic/strbuf.c:161:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:163:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:169:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:172:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:174:9: call_function: calling ‘bubbleinsert’ from ‘strbuf_add_string_full’
#  170|                   return -ENOMEM;
#  171|   
#  172|->         str->nodes_count++;
#  173|   
#  174|           bubbleinsert(node, c, TAKE_PTR(node_child));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def333]
systemd-258/src/basic/strbuf.c:174:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘c’
systemd-258/src/basic/strbuf.c:111:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:112:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:112:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:114:12: branch_false: ...to here
systemd-258/src/basic/strbuf.c:117:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:122:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:123:12: branch_false: following ‘false’ branch (when ‘len != 0’)...
systemd-258/src/basic/strbuf.c:127:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:130:32: branch_false: following ‘false’ branch (when ‘len < depth’)...
systemd-258/src/basic/strbuf.c:150:14: branch_false: ...to here
systemd-258/src/basic/strbuf.c:150:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:152:15: branch_false: ...to here
systemd-258/src/basic/strbuf.c:161:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:163:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:169:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strbuf.c:172:9: branch_false: ...to here
systemd-258/src/basic/strbuf.c:174:9: danger: use of uninitialized value ‘c’ here
#  172|           str->nodes_count++;
#  173|   
#  174|->         bubbleinsert(node, c, TAKE_PTR(node_child));
#  175|   
#  176|           return off;

Error: CPPCHECK_WARNING (CWE-401): [#def334]
systemd-258/src/basic/string-util.c:1456: error[memleak]: Memory leak: t0
# 1454|           t1 = new0(size_t, yl + 1);
# 1455|           if (!t1)
# 1456|->                 return -ENOMEM;
# 1457|           t2 = new0(size_t, yl + 1);
# 1458|           if (!t2)

Error: CPPCHECK_WARNING (CWE-401): [#def335]
systemd-258/src/basic/string-util.c:1459: error[memleak]: Memory leak: t0
# 1457|           t2 = new0(size_t, yl + 1);
# 1458|           if (!t2)
# 1459|->                 return -ENOMEM;
# 1460|   
# 1461|           for (size_t i = 0; i <= yl; i++)

Error: CPPCHECK_WARNING (CWE-401): [#def336]
systemd-258/src/basic/string-util.c:1459: error[memleak]: Memory leak: t1
# 1457|           t2 = new0(size_t, yl + 1);
# 1458|           if (!t2)
# 1459|->                 return -ENOMEM;
# 1460|   
# 1461|           for (size_t i = 0; i <= yl; i++)

Error: GCC_ANALYZER_WARNING (CWE-416): [#def337]
systemd-258/src/basic/strv.c:140:9: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘__unique_prefix_i18’
systemd-258/src/basic/strv.c:1180:5: enter_function: entry to ‘strv_rebreak_lines’
systemd-258/src/basic/strv.c:1184:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1192:12: branch_false: ...to here
systemd-258/src/basic/strv.c:1192:12: branch_false: following ‘false’ branch (when ‘width != 18446744073709551615’)...
 branch_false: ...to here
systemd-258/src/basic/strv.c:1201:9: branch_true: following ‘true’ branch...
systemd-258/src/basic/strv.c:1206:45: branch_true: following ‘true’ branch...
systemd-258/src/basic/strv.c:1207:29: branch_true: ...to here
systemd-258/src/basic/strv.c:1207:28: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1211:36: branch_false: ...to here
systemd-258/src/basic/strv.c:1211:35: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1217:37: branch_false: ...to here
systemd-258/src/basic/strv.c:1217:36: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1223:34: branch_false: ...to here
systemd-258/src/basic/strv.c:1231:28: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1206:58: branch_false: ...to here
systemd-258/src/basic/strv.c:1206:45: branch_true: following ‘true’ branch...
systemd-258/src/basic/strv.c:1207:29: branch_true: ...to here
systemd-258/src/basic/strv.c:1207:28: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1211:36: branch_false: ...to here
systemd-258/src/basic/strv.c:1211:35: branch_true: following ‘true’ branch...
systemd-258/src/basic/strv.c:1212:36: branch_true: ...to here
systemd-258/src/basic/strv.c:1212:37: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/basic/strv.c:1249:17: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1250:20: branch_false: ...to here
systemd-258/src/basic/strv.c:1250:20: branch_false: following ‘false’ branch (when ‘in_prefix == 0’)...
systemd-258/src/basic/strv.c:1252:26: branch_false: ...to here
systemd-258/src/basic/strv.c:1252:25: branch_true: following ‘true’ branch...
systemd-258/src/basic/strv.c:1253:73: branch_true: ...to here
systemd-258/src/basic/strv.c:1254:28: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1257:29: call_function: inlined call to ‘strv_consume’ from ‘strv_rebreak_lines’
systemd-258/src/basic/strv.c:1257:29: call_function: inlined call to ‘strv_consume’ from ‘strv_rebreak_lines’
systemd-258/src/basic/strv.c:1260:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/basic/strv.c:1201:9: branch_false: ...to here
systemd-258/src/basic/strv.c:1201:9: branch_true: following ‘true’ branch...
systemd-258/src/basic/strv.c:1206:45: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1249:17: branch_false: ...to here
systemd-258/src/basic/strv.c:1249:17: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1250:20: branch_false: ...to here
systemd-258/src/basic/strv.c:1251:29: call_function: inlined call to ‘strv_extend’ from ‘strv_rebreak_lines’
systemd-258/src/basic/strv.c:1251:29: call_function: inlined call to ‘strv_extend’ from ‘strv_rebreak_lines’
systemd-258/src/basic/strv.c:1260:20: branch_true: following ‘true’ branch (when ‘r < 0’)...
systemd-258/src/basic/strv.c:1181:36: branch_true: ...to here
systemd-258/src/basic/strv.c:1181:36: call_function: calling ‘strv_freep’ from ‘strv_rebreak_lines’
#  138|   
#  139|   char** strv_free(char **l) {
#  140|->         STRV_FOREACH(k, l)
#  141|                   free(*k);
#  142|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
systemd-258/src/basic/strv.c:595:24: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(key)’
systemd-258/src/basic/strv.c:1109:12: enter_function: entry to ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1113:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1114:9: branch_false: ...to here
systemd-258/src/basic/strv.c:1114:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1115:9: branch_false: ...to here
systemd-258/src/basic/strv.c:1115:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1117:13: call_function: inlined call to ‘hashmap_get’ from ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1118:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1130:44: branch_false: ...to here
systemd-258/src/basic/strv.c:1133:21: acquire_memory: allocated here
systemd-258/src/basic/strv.c:1134:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1137:21: call_function: inlined call to ‘strv_extend’ from ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1137:21: call_function: inlined call to ‘strv_extend’ from ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1138:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1141:21: branch_false: ...to here
systemd-258/src/basic/strv.c:595:24: danger: ‘strdup(key)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  593|           size_t size = n ? *n : SIZE_MAX;
#  594|           if (size == SIZE_MAX)
#  595|->                 size = strv_length(*l);
#  596|   
#  597|           /* Check for overflow */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
systemd-258/src/basic/strv.c:646:9: warning[-Wanalyzer-malloc-leak]: leak of ‘v’
systemd-258/src/basic/strv.c:705:5: enter_function: entry to ‘strv_prepend’
systemd-258/src/basic/strv.c:708:12: branch_false: following ‘false’ branch (when ‘value’ is non-NULL)...
systemd-258/src/basic/strv.c:711:13: branch_false: ...to here
systemd-258/src/basic/strv.c:711:13: acquire_memory: allocated here
systemd-258/src/basic/strv.c:712:12: branch_false: following ‘false’ branch (when ‘v’ is non-NULL)...
systemd-258/src/basic/strv.c:715:16: branch_false: ...to here
systemd-258/src/basic/strv.c:715:16: call_function: calling ‘strv_consume_prepend’ from ‘strv_prepend’
#  644|           size_t n, m;
#  645|   
#  646|->         assert(l);
#  647|   
#  648|           if (!value)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
systemd-258/src/basic/strv.c:1127:17: warning[-Wanalyzer-malloc-leak]: leak of ‘l’
systemd-258/src/basic/strv.c:1109:12: enter_function: entry to ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1113:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1114:9: branch_false: ...to here
systemd-258/src/basic/strv.c:1114:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1115:9: branch_false: ...to here
systemd-258/src/basic/strv.c:1115:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1117:13: call_function: inlined call to ‘hashmap_get’ from ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1118:12: branch_true: following ‘true’ branch...
systemd-258/src/basic/strv.c:1120:21: branch_true: ...to here
systemd-258/src/basic/strv.c:1120:21: call_function: calling ‘strv_find’ from ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1120:21: return_function: returning to ‘string_strv_hashmap_put_internal’ from ‘strv_find’
systemd-258/src/basic/strv.c:1120:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1123:21: call_function: inlined call to ‘strv_extend’ from ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1123:21: call_function: inlined call to ‘strv_extend’ from ‘string_strv_hashmap_put_internal’
systemd-258/src/basic/strv.c:1124:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/strv.c:1127:17: branch_false: ...to here
systemd-258/src/basic/strv.c:1127:17: danger: ‘l’ leaks here; was allocated at [(53)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/52)
# 1125|                           return r;
# 1126|   
# 1127|->                 assert_se(hashmap_update(h, key, l) >= 0);
# 1128|           } else {
# 1129|                   /* No list for this key exists yet, create one */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def341]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/import/importd.c:1430:12: enter_function: entry to ‘transfer_node_enumerator’
systemd-258/src/import/importd.c:1443:12: branch_false: following ‘false’ branch...
systemd-258/src/import/importd.c:1446:9: branch_false: ...to here
systemd-258/src/import/importd.c:1446:9: branch_true: following ‘true’ branch...
systemd-258/src/import/importd.c:1448:32: branch_true: ...to here
systemd-258/src/import/importd.c:1448:24: acquire_memory: allocated here
systemd-258/src/import/importd.c:1449:20: branch_false: following ‘false’ branch...
systemd-258/src/import/importd.c:1452:17: branch_false: ...to here
systemd-258/src/import/importd.c:1446:9: call_function: inlined call to ‘hashmap_iterate’ from ‘transfer_node_enumerator’
systemd-258/src/import/importd.c:1437:36: call_function: calling ‘strv_freep’ from ‘transfer_node_enumerator’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def342]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-malloc-leak]: leak of ‘args’
systemd-258/src/machine/machine.c:1098:8: enter_function: entry to ‘machine_default_shell_args’
systemd-258/src/machine/machine.c:1102:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/machine.c:1104:16: branch_false: ...to here
systemd-258/src/machine/machine.c:1104:16: acquire_memory: allocated here
systemd-258/src/machine/machine.c:1105:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machine.c:1108:19: branch_false: ...to here
systemd-258/src/machine/machine.c:1109:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/machine/machine.c:1099:36: call_function: calling ‘strv_freep’ from ‘machine_default_shell_args’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-malloc-leak]: leak of ‘dirs’
systemd-258/src/sysupdate/sysupdate.c:905:12: enter_function: entry to ‘context_make_offline’
systemd-258/src/sysupdate/sysupdate.c:909:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate.c:914:19: call_function: inlined call to ‘context_new’ from ‘context_make_offline’
systemd-258/src/sysupdate/sysupdate.c:915:12: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate.c:918:13: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate.c:918:13: call_function: calling ‘context_read_definitions’ from ‘context_make_offline’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258/src/test/test-strv.c:871:1: enter_function: entry to ‘test_strv_push’
systemd-258/src/test/test-strv.c:875:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:876:9: call_function: inlined call to ‘strv_push’ from ‘test_strv_push’
systemd-258/src/test/test-strv.c:876:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:878:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:878:9: acquire_memory: allocated here
systemd-258/src/test/test-strv.c:878:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:879:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:879:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-strv.c:879:9: branch_true: ...to here
systemd-258/src/test/test-strv.c:872:36: call_function: calling ‘strv_freep’ from ‘test_strv_push’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-malloc-leak]: leak of ‘l’
systemd-258/src/home/homed-home-bus.c:822:12: enter_function: entry to ‘bus_home_node_enumerator’
systemd-258/src/home/homed-home-bus.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-home-bus.c:837:13: branch_false: ...to here
systemd-258/src/home/homed-home-bus.c:837:13: acquire_memory: allocated here
systemd-258/src/home/homed-home-bus.c:838:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-home-bus.c:841:9: branch_false: ...to here
systemd-258/src/home/homed-home-bus.c:841:9: call_function: inlined call to ‘hashmap_iterate’ from ‘bus_home_node_enumerator’
systemd-258/src/home/homed-home-bus.c:829:36: call_function: calling ‘strv_freep’ from ‘bus_home_node_enumerator’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
systemd-258/src/basic/env-util.c:892:5: enter_function: entry to ‘replace_env_argv’
systemd-258/src/basic/env-util.c:904:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-util.c:906:13: branch_false: ...to here
systemd-258/src/basic/env-util.c:908:13: call_function: calling ‘malloc_multiply’ from ‘replace_env_argv’
systemd-258/src/basic/env-util.c:908:13: return_function: returning to ‘replace_env_argv’ from ‘malloc_multiply’
systemd-258/src/basic/env-util.c:909:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/env-util.c:912:9: branch_true: following ‘true’ branch...
systemd-258/src/basic/env-util.c:916:21: branch_true: ...to here
systemd-258/src/basic/env-util.c:916:20: branch_true: following ‘true’ branch...
systemd-258/src/basic/env-util.c:916:40: branch_true: ...to here
systemd-258/src/basic/env-util.c:922:29: call_function: calling ‘env_name_is_valid’ from ‘replace_env_argv’
systemd-258/src/basic/env-util.c:922:29: return_function: returning to ‘replace_env_argv’ from ‘env_name_is_valid’
systemd-258/src/basic/env-util.c:922:28: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-util.c:930:35: branch_false: ...to here
systemd-258/src/basic/env-util.c:930:35: branch_true: following ‘true’ branch (when ‘ret_bad_variables’ is non-NULL)...
systemd-258/src/basic/env-util.c:931:37: call_function: inlined call to ‘strv_extend’ from ‘replace_env_argv’
systemd-258/src/basic/env-util.c:934:28: branch_true: following ‘true’ branch (when ‘r < 0’)...
systemd-258/src/basic/env-util.c:917:52: branch_true: ...to here
systemd-258/src/basic/env-util.c:917:52: call_function: calling ‘strv_freep’ from ‘replace_env_argv’
systemd-258/src/basic/env-util.c:917:52: return_function: returning to ‘replace_env_argv’ from ‘strv_freep’
systemd-258/src/basic/env-util.c:899:48: call_function: calling ‘strv_freep’ from ‘replace_env_argv’
systemd-258/src/basic/env-util.c:899:48: return_function: returning to ‘replace_env_argv’ from ‘strv_freep’
systemd-258/src/basic/env-util.c:899:36: call_function: calling ‘strv_freep’ from ‘replace_env_argv’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-malloc-leak]: leak of ‘v’
systemd-258/src/basic/nulstr-util.c:20:8: enter_function: entry to ‘strv_parse_nulstr_full’
systemd-258/src/basic/nulstr-util.c:32:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/nulstr-util.c:34:12: branch_false: ...to here
systemd-258/src/basic/nulstr-util.c:38:12: branch_false: following ‘false’ branch (when ‘l != 0’)...
 branch_false: ...to here
systemd-258/src/basic/nulstr-util.c:48:13: acquire_memory: allocated here
systemd-258/src/basic/nulstr-util.c:49:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/nulstr-util.c:52:33: branch_false: following ‘false’ branch...
systemd-258/src/basic/nulstr-util.c:68:9: branch_false: ...to here
systemd-258/src/basic/nulstr-util.c:68:9: branch_true: following ‘true’ branch...
systemd-258/src/basic/nulstr-util.c:68:9: branch_true: ...to here
systemd-258/src/basic/nulstr-util.c:21:36: call_function: calling ‘strv_freep’ from ‘strv_parse_nulstr_full’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-malloc-leak]: leak of ‘z’
systemd-258/src/shared/specifier.c:430:5: enter_function: entry to ‘specifier_escape_strv’
systemd-258/src/shared/specifier.c:434:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/specifier.c:436:13: call_function: inlined call to ‘strv_isempty’ from ‘specifier_escape_strv’
systemd-258/src/shared/specifier.c:441:13: call_function: calling ‘malloc_multiply’ from ‘specifier_escape_strv’
systemd-258/src/shared/specifier.c:441:13: return_function: returning to ‘specifier_escape_strv’ from ‘malloc_multiply’
systemd-258/src/shared/specifier.c:442:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/specifier.c:445:28: branch_true: following ‘true’ branch...
systemd-258/src/shared/specifier.c:447:22: branch_true: ...to here
systemd-258/src/shared/specifier.c:447:22: call_function: calling ‘specifier_escape’ from ‘specifier_escape_strv’
systemd-258/src/shared/specifier.c:431:36: call_function: calling ‘strv_freep’ from ‘specifier_escape_strv’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def349]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
systemd-258/src/test/test-nulstr-util.c:32:1: enter_function: entry to ‘test_strv_parse_nulstr_full’
systemd-258/src/test/test-nulstr-util.c:36:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-nulstr-util.c:36:9: call_function: calling ‘strv_freep’ from ‘test_strv_parse_nulstr_full’
systemd-258/src/test/test-nulstr-util.c:36:9: return_function: returning to ‘test_strv_parse_nulstr_full’ from ‘strv_freep’
systemd-258/src/test/test-nulstr-util.c:36:9: call_function: calling ‘strv_freep’ from ‘test_strv_parse_nulstr_full’
systemd-258/src/test/test-nulstr-util.c:40:9: call_function: calling ‘strv_freep’ from ‘test_strv_parse_nulstr_full’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def350]
systemd-258/src/basic/strv.h:20:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/basic/proc-cmdline.c:395:5: enter_function: entry to ‘proc_cmdline_get_key_many_internal’
systemd-258/src/basic/proc-cmdline.c:402:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/proc-cmdline.c:406:13: branch_false: ...to here
systemd-258/src/basic/proc-cmdline.c:406:13: call_function: calling ‘proc_cmdline_strv’ from ‘proc_cmdline_get_key_many_internal’
systemd-258/src/basic/proc-cmdline.c:406:13: return_function: returning to ‘proc_cmdline_get_key_many_internal’ from ‘proc_cmdline_strv’
systemd-258/src/basic/proc-cmdline.c:407:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/proc-cmdline.c:410:9: branch_false: ...to here
systemd-258/src/basic/proc-cmdline.c:410:9: acquire_resource: ‘va_start’ called here
systemd-258/src/basic/proc-cmdline.c:411:13: call_function: calling ‘cmdline_get_key_ap’ from ‘proc_cmdline_get_key_many_internal’
systemd-258/src/basic/proc-cmdline.c:396:36: call_function: calling ‘strv_freep’ from ‘proc_cmdline_get_key_many_internal’
#   18|   
#   19|   char** strv_free(char **l);
#   20|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free);
#   21|   #define _cleanup_strv_free_ _cleanup_(strv_freep)
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def351]
systemd-258/src/basic/strv.h:53:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:115:12: enter_function: entry to ‘parse_argv’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:198:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:200:28: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:200:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:203:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:203:29: call_function: inlined call to ‘strv_extend’ from ‘parse_argv’
#   51|   int strv_extend_with_size(char ***l, size_t *n, const char *value);
#   52|   static inline int strv_extend(char ***l, const char *value) {
#   53|->         return strv_extend_with_size(l, NULL, value);
#   54|   }
#   55|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
systemd-258/src/basic/strv.h:63:16: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258/src/test/test-exec-util.c:198:12: enter_function: entry to ‘gather_stdout_one’
systemd-258/src/test/test-exec-util.c:202:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-exec-util.c:203:9: branch_false: ...to here
systemd-258/src/test/test-exec-util.c:203:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-exec-util.c:204:9: branch_false: ...to here
systemd-258/src/test/test-exec-util.c:206:9: acquire_memory: allocated here
systemd-258/src/test/test-exec-util.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-exec-util.c:207:9: call_function: inlined call to ‘strv_push’ from ‘gather_stdout_one’
#   61|   int strv_push_with_size(char ***l, size_t *n, char *value);
#   62|   static inline int strv_push(char ***l, char *value) {
#   63|->         return strv_push_with_size(l, NULL, value);
#   64|   }
#   65|   int strv_push_pair(char ***l, char *a, char *b);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
systemd-258/src/basic/strv.h:70:16: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("first")’
systemd-258/src/test/test-strv.c:826:1: enter_function: entry to ‘test_strv_push_prepend’
systemd-258/src/test/test-strv.c:829:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:831:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:831:9: acquire_memory: allocated here
systemd-258/src/test/test-strv.c:831:9: call_function: inlined call to ‘strv_push_prepend’ from ‘test_strv_push_prepend’
#   68|   
#   69|   static inline int strv_push_prepend(char ***l, char *value) {
#   70|->         return strv_insert(l, 0, value);
#   71|   }
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def354]
systemd-258/src/basic/strv.h:75:16: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/basic/env-util.c:689:5: enter_function: entry to ‘replace_env_full’
systemd-258/src/basic/env-util.c:715:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-util.c:717:12: branch_false: ...to here
systemd-258/src/basic/env-util.c:720:14: branch_true: following ‘true’ branch (when ‘ret_unset_variables’ is non-NULL)...
systemd-258/src/basic/env-util.c:721:14: branch_true: ...to here
systemd-258/src/basic/env-util.c:721:14: branch_true: following ‘true’ branch (when ‘ret_bad_variables’ is non-NULL)...
systemd-258/src/basic/env-util.c:723:9: branch_true: ...to here
systemd-258/src/basic/env-util.c:866:12: branch_true: following ‘true’ branch (when ‘state == 3’)...
systemd-258/src/basic/env-util.c:867:23: branch_true: ...to here
systemd-258/src/basic/env-util.c:869:17: branch_false: following ‘false’ branch...
systemd-258/src/basic/env-util.c:871:59: branch_false: ...to here
systemd-258/src/basic/env-util.c:871:21: call_function: calling ‘strv_env_get_n_validated’ from ‘replace_env_full’
#   73|   int strv_consume_with_size(char ***l, size_t *n, char *value);
#   74|   static inline int strv_consume(char ***l, char *value) {
#   75|->         return strv_consume_with_size(l, NULL, value);
#   76|   }
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def355]
systemd-258/src/basic/strv.h:75:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258/src/sysctl/sysctl.c:359:12: enter_function: entry to ‘parse_argv’
systemd-258/src/sysctl/sysctl.c:383:9: branch_false: following ‘false’ branch...
systemd-258/src/sysctl/sysctl.c:384:9: branch_false: ...to here
systemd-258/src/sysctl/sysctl.c:384:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/sysctl/sysctl.c:386:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/sysctl/sysctl.c:388:17: branch_true: ...to here
systemd-258/src/sysctl/sysctl.c:415:29: acquire_memory: allocated here
systemd-258/src/sysctl/sysctl.c:416:28: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
systemd-258/src/sysctl/sysctl.c:419:29: call_function: inlined call to ‘strv_consume’ from ‘parse_argv’
#   73|   int strv_consume_with_size(char ***l, size_t *n, char *value);
#   74|   static inline int strv_consume(char ***l, char *value) {
#   75|->         return strv_consume_with_size(l, NULL, value);
#   76|   }
#   77|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
systemd-258/src/basic/sysctl-util.c:63:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(property)’
systemd-258/src/basic/sysctl-util.c:146:5: enter_function: entry to ‘sysctl_write_ip_neighbor_property’
systemd-258/src/basic/sysctl-util.c:149:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/sysctl-util.c:150:9: branch_false: ...to here
systemd-258/src/basic/sysctl-util.c:150:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/sysctl-util.c:151:9: branch_false: ...to here
systemd-258/src/basic/sysctl-util.c:151:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/sysctl-util.c:153:14: branch_false: ...to here
systemd-258/src/basic/sysctl-util.c:157:20: branch_true: following ‘true’ branch...
systemd-258/src/basic/sysctl-util.c:159:21: branch_true: ...to here
systemd-258/src/basic/sysctl-util.c:159:21: branch_true: following ‘true’ branch...
systemd-258/src/basic/sysctl-util.c:159:21: branch_false: following ‘false’ branch...
systemd-258/src/basic/sysctl-util.c:159:21: branch_false: ...to here
systemd-258/src/basic/sysctl-util.c:159:21: branch_true: following ‘true’ branch...
systemd-258/src/basic/sysctl-util.c:163:16: call_function: calling ‘sysctl_write_full’ from ‘sysctl_write_ip_neighbor_property’
#   61|                   return -ENOMEM;
#   62|   
#   63|->         cur_v = hashmap_remove2(*shadow, k, (void**)&cur_k);
#   64|   
#   65|           r = hashmap_ensure_put(shadow, &path_hash_ops_free_free, k, v);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def357]
systemd-258/src/basic/terminal-util.c:1473:13: warning[-Wanalyzer-null-argument]: use of NULL ‘s’ where non-null expected
systemd-258/src/basic/terminal-util.c:1465:5: enter_function: entry to ‘getttyname_harder’
systemd-258/src/basic/terminal-util.c:1466:30: release_memory: ‘s’ is NULL
systemd-258/src/basic/terminal-util.c:1469:13: call_function: calling ‘getttyname_malloc’ from ‘getttyname_harder’
systemd-258/src/basic/terminal-util.c:1469:13: return_function: returning to ‘getttyname_harder’ from ‘getttyname_malloc’
systemd-258/src/basic/terminal-util.c:1470:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/terminal-util.c:1473:13: branch_false: ...to here
systemd-258/src/basic/terminal-util.c:1473:13: release_memory: ‘s’ is NULL
systemd-258/src/basic/terminal-util.c:1473:13: danger: argument 1 (‘s’) NULL where non-null expected
# 1471|                   return r;
# 1472|   
# 1473|->         if (streq(s, "tty"))
# 1474|                   return get_ctty(0, NULL, ret);
# 1475|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
systemd-258/src/basic/tmpfile-util.c:194:1: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/basic/tmpfile-util.c:127:12: enter_function: entry to ‘tempfn_build’
systemd-258/src/basic/tmpfile-util.c:132:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/tmpfile-util.c:133:9: branch_false: ...to here
systemd-258/src/basic/tmpfile-util.c:133:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/tmpfile-util.c:144:12: branch_false: ...to here
systemd-258/src/basic/tmpfile-util.c:153:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/tmpfile-util.c:154:24: branch_false: ...to here
systemd-258/src/basic/tmpfile-util.c:153:13: branch_false: following ‘false’ branch...
systemd-258/src/basic/tmpfile-util.c:157:19: branch_false: ...to here
systemd-258/src/basic/tmpfile-util.c:159:12: branch_true: following ‘true’ branch (when ‘child != 0’)...
systemd-258/src/basic/tmpfile-util.c:160:21: branch_true: ...to here
systemd-258/src/basic/tmpfile-util.c:160:21: acquire_memory: allocated here
systemd-258/src/basic/tmpfile-util.c:161:20: branch_false: following ‘false’ branch...
systemd-258/src/basic/tmpfile-util.c:177:14: call_function: inlined call to ‘strempty’ from ‘tempfn_build’
systemd-258/src/basic/tmpfile-util.c:177:14: call_function: inlined call to ‘strempty’ from ‘tempfn_build’
 branch_false: ...to here
systemd-258/src/basic/tmpfile-util.c:178:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/basic/tmpfile-util.c:194:1: danger: ‘d’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#  192|           *ret = TAKE_PTR(result);
#  193|           return 0;
#  194|-> }
#  195|   
#  196|   int tempfn_xxxxxx(const char *p, const char *extra, char **ret) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def359]
systemd-258/src/basic/tmpfile-util.c:428:14: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
systemd-258/src/basic/tmpfile-util.c:420:5: enter_function: entry to ‘mkdtemp_open’
systemd-258/src/basic/tmpfile-util.c:421:30: release_memory: ‘p’ is NULL
systemd-258/src/basic/tmpfile-util.c:424:13: call_function: calling ‘mkdtemp_malloc’ from ‘mkdtemp_open’
systemd-258/src/basic/tmpfile-util.c:424:13: return_function: returning to ‘mkdtemp_open’ from ‘mkdtemp_malloc’
systemd-258/src/basic/tmpfile-util.c:425:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/tmpfile-util.c:428:14: branch_false: ...to here
systemd-258/src/basic/tmpfile-util.c:428:14: release_memory: ‘p’ is NULL
systemd-258/src/basic/tmpfile-util.c:428:14: danger: argument 1 (‘p’) NULL where non-null expected
#  426|                   return r;
#  427|   
#  428|->         fd = RET_NERRNO(open(p, O_DIRECTORY|O_CLOEXEC|flags));
#  429|           if (fd < 0) {
#  430|                   (void) rmdir(p);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def360]
systemd-258/src/basic/user-util.c:474:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*i’
systemd-258/src/basic/user-util.c:511:5: enter_function: entry to ‘merge_gid_lists’
systemd-258/src/basic/user-util.c:513:9: branch_false: following ‘false’ branch...
systemd-258/src/basic/user-util.c:515:21: branch_false: ...to here
systemd-258/src/basic/user-util.c:515:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/user-util.c:518:22: branch_false: ...to here
systemd-258/src/basic/user-util.c:518:22: call_function: calling ‘malloc_multiply’ from ‘merge_gid_lists’
systemd-258/src/basic/user-util.c:518:22: return_function: returning to ‘merge_gid_lists’ from ‘malloc_multiply’
systemd-258/src/basic/user-util.c:519:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/basic/user-util.c:523:28: branch_true: following ‘true’ branch (when ‘i < size1’)...
systemd-258/src/basic/user-util.c:524:54: branch_true: ...to here
systemd-258/src/basic/user-util.c:524:22: call_function: calling ‘gid_list_has’ from ‘merge_gid_lists’
#  472|   
#  473|           FOREACH_ARRAY(i, list, size)
#  474|->                 if (*i == val)
#  475|                           return true;
#  476|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def361]
systemd-258/src/basic/user-util.c:508:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘gid’
systemd-258/src/basic/user-util.c:500:5: enter_function: entry to ‘in_group’
systemd-258/src/basic/user-util.c:504:13: call_function: calling ‘get_group_creds’ from ‘in_group’
systemd-258/src/basic/user-util.c:504:13: return_function: returning to ‘in_group’ from ‘get_group_creds’
systemd-258/src/basic/user-util.c:505:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/user-util.c:508:16: branch_false: ...to here
systemd-258/src/basic/user-util.c:508:16: danger: use of uninitialized value ‘gid’ here
#  506|                   return r;
#  507|   
#  508|->         return in_gid(gid);
#  509|   }
#  510|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def362]
systemd-258/src/basic/user-util.c:1050:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘uid’
systemd-258/src/basic/user-util.c:1040:5: enter_function: entry to ‘is_this_me’
systemd-258/src/basic/user-util.c:1046:13: call_function: calling ‘get_user_creds’ from ‘is_this_me’
systemd-258/src/basic/user-util.c:1046:13: return_function: returning to ‘is_this_me’ from ‘get_user_creds’
systemd-258/src/basic/user-util.c:1047:12: branch_false: following ‘false’ branch...
systemd-258/src/basic/user-util.c:1050:23: branch_false: ...to here
systemd-258/src/basic/user-util.c:1050:16: danger: use of uninitialized value ‘uid’ here
# 1048|                   return r;
# 1049|   
# 1050|->         return uid == getuid();
# 1051|   }
# 1052|   

Error: COMPILER_WARNING: [#def363] [important]
systemd-258/src/basic/xattr-util.c:305:24: error[error]: variable ‘args’ has initializer but incomplete type
#  303|   
#  304|           if (have_xattrat && !isempty(path)) {
#  305|->                 struct xattr_args args = {
#  306|                           .value = PTR_TO_UINT64(value),
#  307|                           .size = size,

Error: COMPILER_WARNING: [#def364] [important]
systemd-258/src/basic/xattr-util.c:305:35: error[error]: storage size of ‘args’ isn’t known
#  303|   
#  304|           if (have_xattrat && !isempty(path)) {
#  305|->                 struct xattr_args args = {
#  306|                           .value = PTR_TO_UINT64(value),
#  307|                           .size = size,

Error: COMPILER_WARNING: [#def365] [important]
systemd-258/src/basic/xattr-util.c:306:26: error[error]: ‘struct xattr_args’ has no member named ‘value’
#  304|           if (have_xattrat && !isempty(path)) {
#  305|                   struct xattr_args args = {
#  306|->                         .value = PTR_TO_UINT64(value),
#  307|                           .size = size,
#  308|                           .flags = xattr_flags,

Error: COMPILER_WARNING: [#def366]
systemd-258/src/basic/xattr-util.c:306:34: warning[warning]: excess elements in struct initializer
#  304|           if (have_xattrat && !isempty(path)) {
#  305|                   struct xattr_args args = {
#  306|->                         .value = PTR_TO_UINT64(value),
#  307|                           .size = size,
#  308|                           .flags = xattr_flags,

Error: COMPILER_WARNING: [#def367] [important]
systemd-258/src/basic/xattr-util.c:307:26: error[error]: ‘struct xattr_args’ has no member named ‘size’
#  305|                   struct xattr_args args = {
#  306|                           .value = PTR_TO_UINT64(value),
#  307|->                         .size = size,
#  308|                           .flags = xattr_flags,
#  309|                   };

Error: COMPILER_WARNING: [#def368]
systemd-258/src/basic/xattr-util.c:307:33: warning[warning]: excess elements in struct initializer
#  305|                   struct xattr_args args = {
#  306|                           .value = PTR_TO_UINT64(value),
#  307|->                         .size = size,
#  308|                           .flags = xattr_flags,
#  309|                   };

Error: COMPILER_WARNING: [#def369] [important]
systemd-258/src/basic/xattr-util.c:308:26: error[error]: ‘struct xattr_args’ has no member named ‘flags’
#  306|                           .value = PTR_TO_UINT64(value),
#  307|                           .size = size,
#  308|->                         .flags = xattr_flags,
#  309|                   };
#  310|   

Error: COMPILER_WARNING: [#def370]
systemd-258/src/basic/xattr-util.c:308:34: warning[warning]: excess elements in struct initializer
#  306|                           .value = PTR_TO_UINT64(value),
#  307|                           .size = size,
#  308|->                         .flags = xattr_flags,
#  309|                   };
#  310|   

Error: COMPILER_WARNING: [#def371] [important]
systemd-258/src/basic/xattr-util.c:311:32: error[-Wimplicit-function-declaration]: implicit declaration of function ‘setxattrat’; did you mean ‘setxattr’?
#  309|                   };
#  310|   
#  311|->                 r = RET_NERRNO(setxattrat(fd, path,
#  312|                                             at_flags_normalize_nofollow(at_flags),
#  313|                                             name,

Error: COMPILER_WARNING: [#def372] [important]
systemd-258/src/basic/xattr-util.c:363:32: error[-Wimplicit-function-declaration]: implicit declaration of function ‘removexattrat’; did you mean ‘removexattr’?
#  361|   
#  362|           if (have_xattrat && !isempty(path)) {
#  363|->                 r = RET_NERRNO(removexattrat(fd, path,
#  364|                                                at_flags_normalize_nofollow(at_flags),
#  365|                                                name));

Error: CPPCHECK_WARNING (CWE-401): [#def373]
systemd-258/src/bless-boot/bless-boot.c:279: error[memleak]: Memory leak: suffix
#  277|                   *ret_done = done;
#  278|   
#  279|->         return 0;
#  280|   }
#  281|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def374]
systemd-258/src/boot/efi-efivars.c:93:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
systemd-258/src/boot/efi-efivars.c:79:12: enter_function: entry to ‘efivar_get_str16’
systemd-258/src/boot/efi-efivars.c:85:9: branch_false: following ‘false’ branch...
systemd-258/src/boot/efi-efivars.c:86:9: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:86:9: branch_false: following ‘false’ branch...
systemd-258/src/boot/efi-efivars.c:88:15: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:88:15: call_function: calling ‘efivar_get_raw’ from ‘efivar_get_str16’
systemd-258/src/boot/efi-efivars.c:88:15: return_function: returning to ‘efivar_get_str16’ from ‘efivar_get_raw’
systemd-258/src/boot/efi-efivars.c:89:12: branch_false: following ‘false’ branch (when ‘err == 0’)...
systemd-258/src/boot/efi-efivars.c:93:13: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:93:13: danger: use of uninitialized value ‘size’ here
#   91|   
#   92|           /* Make sure there are no incomplete characters in the buffer */
#   93|->         if ((size % sizeof(char16_t)) != 0)
#   94|                   return EFI_INVALID_PARAMETER;
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def375]
systemd-258/src/boot/efi-efivars.c:147:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
systemd-258/src/boot/efi-efivars.c:135:12: enter_function: entry to ‘efivar_get_uint32_le’
systemd-258/src/boot/efi-efivars.c:140:9: branch_false: following ‘false’ branch...
systemd-258/src/boot/efi-efivars.c:141:9: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:141:9: branch_false: following ‘false’ branch...
systemd-258/src/boot/efi-efivars.c:143:15: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:143:15: call_function: calling ‘efivar_get_raw’ from ‘efivar_get_uint32_le’
systemd-258/src/boot/efi-efivars.c:143:15: return_function: returning to ‘efivar_get_uint32_le’ from ‘efivar_get_raw’
systemd-258/src/boot/efi-efivars.c:144:12: branch_false: following ‘false’ branch (when ‘err == 0’)...
systemd-258/src/boot/efi-efivars.c:147:13: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:147:13: danger: use of uninitialized value ‘size’ here
#  145|                   return err;
#  146|   
#  147|->         if (size != sizeof(uint32_t))
#  148|                   return EFI_BUFFER_TOO_SMALL;
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def376]
systemd-258/src/boot/efi-efivars.c:169:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
systemd-258/src/boot/efi-efivars.c:157:12: enter_function: entry to ‘efivar_get_uint64_le’
systemd-258/src/boot/efi-efivars.c:162:9: branch_false: following ‘false’ branch...
systemd-258/src/boot/efi-efivars.c:163:9: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:163:9: branch_false: following ‘false’ branch...
systemd-258/src/boot/efi-efivars.c:165:15: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:165:15: call_function: calling ‘efivar_get_raw’ from ‘efivar_get_uint64_le’
systemd-258/src/boot/efi-efivars.c:165:15: return_function: returning to ‘efivar_get_uint64_le’ from ‘efivar_get_raw’
systemd-258/src/boot/efi-efivars.c:166:12: branch_false: following ‘false’ branch (when ‘err == 0’)...
systemd-258/src/boot/efi-efivars.c:169:13: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:169:13: danger: use of uninitialized value ‘size’ here
#  167|                   return err;
#  168|   
#  169|->         if (size != sizeof(uint64_t))
#  170|                   return EFI_BUFFER_TOO_SMALL;
#  171|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def377]
systemd-258/src/boot/efi-efivars.c:217:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘b’
systemd-258/src/boot/efi-efivars.c:204:12: enter_function: entry to ‘efivar_get_boolean_u8’
systemd-258/src/boot/efi-efivars.c:205:33: release_memory: ‘b’ is NULL
systemd-258/src/boot/efi-efivars.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/boot/efi-efivars.c:210:9: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:210:9: branch_false: following ‘false’ branch...
systemd-258/src/boot/efi-efivars.c:212:15: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:212:15: call_function: calling ‘efivar_get_raw’ from ‘efivar_get_boolean_u8’
systemd-258/src/boot/efi-efivars.c:212:15: return_function: returning to ‘efivar_get_boolean_u8’ from ‘efivar_get_raw’
systemd-258/src/boot/efi-efivars.c:213:12: branch_false: following ‘false’ branch (when ‘err == 0’)...
systemd-258/src/boot/efi-efivars.c:216:12: branch_false: ...to here
systemd-258/src/boot/efi-efivars.c:216:12: branch_true: following ‘true’ branch (when ‘ret’ is non-NULL)...
systemd-258/src/boot/efi-efivars.c:217:24: branch_true: ...to here
systemd-258/src/boot/efi-efivars.c:217:24: release_memory: ‘b’ is NULL
systemd-258/src/boot/efi-efivars.c:217:24: danger: dereference of NULL ‘b’
#  215|   
#  216|           if (ret)
#  217|->                 *ret = *b > 0;
#  218|   
#  219|           return EFI_SUCCESS;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def378]
systemd-258/src/boot/efi-string.c:624:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
#  622|           assert(ctx);
#  623|   
#  624|->         assert_se(INC_SAFE(&need, ctx->n));
#  625|   
#  626|           if (need < ctx->n_buf)

Error: GCC_ANALYZER_WARNING (CWE-404): [#def379]
systemd-258/src/boot/efi-string.c:634:29: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
#  632|   
#  633|           /* We cannot use realloc here as ctx->buf may be ctx->stack_buf, which we cannot free. */
#  634|->         char16_t *new_buf = xnew(char16_t, ctx->n_buf);
#  635|           memcpy(new_buf, ctx->buf, ctx->n * sizeof(*ctx->buf));
#  636|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def380]
systemd-258/src/boot/efi-string.c:635:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*ctx.buf’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
#  633|           /* We cannot use realloc here as ctx->buf may be ctx->stack_buf, which we cannot free. */
#  634|           char16_t *new_buf = xnew(char16_t, ctx->n_buf);
#  635|->         memcpy(new_buf, ctx->buf, ctx->n * sizeof(*ctx->buf));
#  636|   
#  637|           free(ctx->dyn_buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
systemd-258/src/boot/efi-string.c:673:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.dyn_buf’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
#  671|                   push_padding(ctx, ' ', sp->padded_len);
#  672|   
#  673|->         assert(ctx->n < ctx->n_buf);
#  674|           return true;
#  675|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def382]
systemd-258/src/boot/efi-string.c:673:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
#  671|                   push_padding(ctx, ' ', sp->padded_len);
#  672|   
#  673|->         assert(ctx->n < ctx->n_buf);
#  674|           return true;
#  675|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def383]
systemd-258/src/boot/efi-string.c:794:33: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
#  792|                           uint64_t u;
#  793|                           if (!parse_number8(ctx->format, &u, &ctx->format) || u > INT_MAX)
#  794|->                                 assert_not_reached();
#  795|                           ctx->format--; /* Point it back to the last digit. */
#  796|                           i = u;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
systemd-258/src/boot/efi-string.c:973:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.dyn_buf’
systemd-258/src/boot/efi-string.c:1011:11: enter_function: entry to ‘xvasprintf_status’
systemd-258/src/boot/efi-string.c:1012:16: call_function: calling ‘printf_internal’ from ‘xvasprintf_status’
#  971|           va_end(ctx.ap);
#  972|   
#  973|->         assert(ctx.n < ctx.n_buf);
#  974|           ctx.buf[ctx.n++] = '\0';
#  975|   

Error: GCC_ANALYZER_WARNING (CWE-131): [#def385]
systemd-258/src/boot/fuzz-efi-string.c:8:25: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#    6|   
#    7|   static char16_t *memdup_str16(const uint8_t *data, size_t size) {
#    8|->         char16_t *ret = memdup(data, size);
#    9|           assert_se(ret);
#   10|           ret[size / sizeof(char16_t) - 1] = '\0';

Error: GCC_ANALYZER_WARNING (CWE-775): [#def386]
systemd-258/src/bootctl/bootctl-install.c:292:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(from, 524544)’
systemd-258/src/bootctl/bootctl-install.c:238:19: acquire_resource: opened here
systemd-258/src/bootctl/bootctl-install.c:239:12: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-install.c:242:12: branch_false: ...to here
systemd-258/src/bootctl/bootctl-install.c:292:1: danger: ‘open(from, 524544)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  290|   
#  291|           return 0;
#  292|-> }
#  293|   
#  294|   static int mkdir_one(const char *prefix, const char *suffix) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
systemd-258/src/bootctl/bootctl-status.c:665:77: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(fn)’
systemd-258/src/bootctl/bootctl-status.c:644:9: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-status.c:648:12: branch_false: ...to here
systemd-258/src/bootctl/bootctl-status.c:648:12: branch_false: following ‘false’ branch (when ‘fn’ is non-NULL)...
systemd-258/src/bootctl/bootctl-status.c:651:13: branch_false: ...to here
systemd-258/src/bootctl/bootctl-status.c:654:9: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-status.c:656:12: branch_false: ...to here
systemd-258/src/bootctl/bootctl-status.c:656:12: branch_false: following ‘false’ branch (when ‘n != 0’)...
systemd-258/src/bootctl/bootctl-status.c:659:20: branch_false: ...to here
systemd-258/src/bootctl/bootctl-status.c:659:19: branch_true: following ‘true’ branch...
systemd-258/src/bootctl/bootctl-status.c:662:21: branch_true: ...to here
systemd-258/src/bootctl/bootctl-status.c:662:21: acquire_memory: allocated here
systemd-258/src/bootctl/bootctl-status.c:663:20: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-status.c:665:77: branch_false: ...to here
systemd-258/src/bootctl/bootctl-status.c:665:77: danger: ‘strdup(fn)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  663|                   if (!t)
#  664|                           return -ENOMEM;
#  665|->                 r = hashmap_ensure_put(known_files, &path_hash_ops_free, t, INT_TO_PTR(n));
#  666|                   if (r < 0)
#  667|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
systemd-258/src/bootctl/bootctl-util.c:114:9: warning[-Wanalyzer-malloc-leak]: leak of ‘marker’
systemd-258/src/bootctl/bootctl-util.c:68:5: enter_function: entry to ‘get_file_version’
systemd-258/src/bootctl/bootctl-util.c:75:9: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-util.c:76:9: branch_false: ...to here
systemd-258/src/bootctl/bootctl-util.c:76:9: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-util.c:78:13: branch_false: ...to here
systemd-258/src/bootctl/bootctl-util.c:78:12: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-util.c:81:13: branch_false: ...to here
systemd-258/src/bootctl/bootctl-util.c:82:12: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-util.c:87:13: branch_false: ...to here
systemd-258/src/bootctl/bootctl-util.c:87:12: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-util.c:92:15: branch_false: ...to here
systemd-258/src/bootctl/bootctl-util.c:93:12: branch_false: following ‘false’ branch (when ‘buf != 18446744073709551615’)...
systemd-258/src/bootctl/bootctl-util.c:96:31: branch_false: ...to here
systemd-258/src/bootctl/bootctl-util.c:96:13: call_function: inlined call to ‘mempmem_safe’ from ‘get_file_version’
systemd-258/src/bootctl/bootctl-util.c:96:13: call_function: inlined call to ‘mempmem_safe’ from ‘get_file_version’
systemd-258/src/bootctl/bootctl-util.c:102:13: call_function: calling ‘memmem_safe’ from ‘get_file_version’
systemd-258/src/bootctl/bootctl-util.c:102:13: return_function: returning to ‘get_file_version’ from ‘memmem_safe’
systemd-258/src/bootctl/bootctl-util.c:103:12: branch_false: following ‘false’ branch...
systemd-258/src/bootctl/bootctl-util.c:108:18: acquire_memory: allocated here
systemd-258/src/bootctl/bootctl-util.c:109:12: branch_false: following ‘false’ branch (when ‘marker’ is non-NULL)...
systemd-258/src/bootctl/bootctl-util.c:114:9: branch_false: ...to here
systemd-258/src/bootctl/bootctl-util.c:114:9: branch_true: following ‘true’ branch...
systemd-258/src/bootctl/bootctl-util.c:114:9: branch_true: ...to here
systemd-258/src/bootctl/bootctl-util.c:114:9: danger: ‘marker’ leaks here; was allocated at [(42)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/41)
#  112|           }
#  113|   
#  114|->         log_debug("EFI binary LoaderInfo marker: \"%s\"", marker);
#  115|           r = 0;
#  116|           *ret = marker;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
systemd-258/src/cgtop/cgtop.c:329:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/cgtop/cgtop.c:302:12: enter_function: entry to ‘process’
systemd-258/src/cgtop/cgtop.c:312:9: branch_false: following ‘false’ branch...
systemd-258/src/cgtop/cgtop.c:313:9: branch_false: ...to here
systemd-258/src/cgtop/cgtop.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/cgtop/cgtop.c:315:13: call_function: inlined call to ‘hashmap_get’ from ‘process’
systemd-258/src/cgtop/cgtop.c:316:12: branch_true: following ‘true’ branch...
systemd-258/src/cgtop/cgtop.c:317:21: call_function: inlined call to ‘hashmap_get’ from ‘process’
systemd-258/src/cgtop/cgtop.c:318:20: branch_true: following ‘true’ branch...
systemd-258/src/cgtop/cgtop.c:319:29: branch_true: ...to here
systemd-258/src/cgtop/cgtop.c:320:28: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
systemd-258/src/cgtop/cgtop.c:323:35: branch_false: ...to here
systemd-258/src/cgtop/cgtop.c:323:35: acquire_memory: allocated here
systemd-258/src/cgtop/cgtop.c:324:28: branch_false: following ‘false’ branch...
systemd-258/src/cgtop/cgtop.c:329:29: branch_false: ...to here
systemd-258/src/cgtop/cgtop.c:329:29: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
#  327|                           }
#  328|   
#  329|->                         r = hashmap_put(a, g->path, g);
#  330|                           if (r < 0) {
#  331|                                   group_free(g);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
systemd-258/src/cgtop/cgtop.c:329:29: warning[-Wanalyzer-malloc-leak]: leak of ‘g’
systemd-258/src/cgtop/cgtop.c:302:12: enter_function: entry to ‘process’
systemd-258/src/cgtop/cgtop.c:312:9: branch_false: following ‘false’ branch...
systemd-258/src/cgtop/cgtop.c:313:9: branch_false: ...to here
systemd-258/src/cgtop/cgtop.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/cgtop/cgtop.c:315:13: call_function: inlined call to ‘hashmap_get’ from ‘process’
systemd-258/src/cgtop/cgtop.c:316:12: branch_true: following ‘true’ branch...
systemd-258/src/cgtop/cgtop.c:317:21: call_function: inlined call to ‘hashmap_get’ from ‘process’
systemd-258/src/cgtop/cgtop.c:318:20: branch_true: following ‘true’ branch...
systemd-258/src/cgtop/cgtop.c:319:29: branch_true: ...to here
systemd-258/src/cgtop/cgtop.c:319:29: acquire_memory: allocated here
systemd-258/src/cgtop/cgtop.c:320:28: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
systemd-258/src/cgtop/cgtop.c:323:35: branch_false: ...to here
systemd-258/src/cgtop/cgtop.c:324:28: branch_false: following ‘false’ branch...
systemd-258/src/cgtop/cgtop.c:329:29: branch_false: ...to here
systemd-258/src/cgtop/cgtop.c:329:29: danger: ‘g’ leaks here; was allocated at [(12)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/11)
#  327|                           }
#  328|   
#  329|->                         r = hashmap_put(a, g->path, g);
#  330|                           if (r < 0) {
#  331|                                   group_free(g);

Error: COMPILER_WARNING: [#def391] [important]
systemd-258/src/core/bpf-devices.c:5:10: error[fatal error]: linux/bpf_insn.h: No such file or directory
#    3|   #include <fnmatch.h>
#    4|   #include <linux/bpf.h>
#    5|-> #include <linux/bpf_insn.h>
#    6|   #include <sys/stat.h>
#    7|   

Error: COMPILER_WARNING: [#def392] [important]
systemd-258/src/core/bpf-firewall.c:4:10: error[fatal error]: linux/bpf_insn.h: No such file or directory
#    2|   
#    3|   #include <linux/bpf.h>
#    4|-> #include <linux/bpf_insn.h>
#    5|   #include <linux/if_ether.h>
#    6|   #include <net/if.h>

Error: COMPILER_WARNING (CWE-9001): [#def393]
systemd-258/src/core/bpf/restrict-fs/restrict-fs.bpf.c:20:1: warning[-Wattributes]: ‘preserve_access_index’ attribute directive ignored
#   18|   struct super_block {
#   19|           unsigned long s_magic;
#   20|-> } __attribute__((preserve_access_index));
#   21|   
#   22|   struct inode {

Error: COMPILER_WARNING (CWE-9001): [#def394]
systemd-258/src/core/bpf/restrict-fs/restrict-fs.bpf.c:24:1: warning[-Wattributes]: ‘preserve_access_index’ attribute directive ignored
#   22|   struct inode {
#   23|           struct super_block *i_sb;
#   24|-> } __attribute__((preserve_access_index));
#   25|   
#   26|   struct file {

Error: COMPILER_WARNING (CWE-9001): [#def395]
systemd-258/src/core/bpf/restrict-fs/restrict-fs.bpf.c:28:1: warning[-Wattributes]: ‘preserve_access_index’ attribute directive ignored
#   26|   struct file {
#   27|           struct inode *f_inode;
#   28|-> } __attribute__((preserve_access_index));
#   29|   
#   30|   /*

Error: COMPILER_WARNING: [#def396] [important]
systemd-258/src/core/bpf/restrict-fs/restrict-fs.bpf.c:51:9: error[-Wimplicit-function-declaration]: implicit declaration of function ‘__builtin_preserve_access_index’
#   49|                   return ret;
#   50|   
#   51|->         BPF_CORE_READ_INTO(&raw_magic_number, file, f_inode, i_sb, s_magic);
#   52|           /* super_block.s_magic is unsigned long, but magic_map keys are
#   53|            * uint32_t. Using s_magic as-is would fail on big-endian systems,

Error: COMPILER_WARNING: [#def397] [important]
systemd-258/src/core/exec-invoke.c:10:10: error[fatal error]: sys/ioprio.h: No such file or directory
#    8|   #include <sys/eventfd.h>
#    9|   #include <sys/ioctl.h>
#   10|-> #include <sys/ioprio.h>
#   11|   #include <sys/keyctl.h>
#   12|   #include <sys/mount.h>

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
systemd-258/src/core/namespace.c:3138:1: warning[-Wanalyzer-malloc-leak]: leak of ‘o’
systemd-258/src/core/namespace.c:3091:5: enter_function: entry to ‘mount_image_add’
systemd-258/src/core/namespace.c:3095:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3096:9: branch_false: ...to here
systemd-258/src/core/namespace.c:3096:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3097:9: branch_false: ...to here
systemd-258/src/core/namespace.c:3097:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3099:20: branch_false: ...to here
systemd-258/src/core/namespace.c:3100:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3103:13: branch_false: ...to here
systemd-258/src/core/namespace.c:3103:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3109:9: branch_false: ...to here
systemd-258/src/core/namespace.c:3109:9: branch_true: following ‘true’ branch (when ‘i’ is non-NULL)...
systemd-258/src/core/namespace.c:3109:9: branch_true: ...to here
systemd-258/src/core/namespace.c:3112:21: call_function: inlined call to ‘malloc_multiply’ from ‘mount_image_add’
systemd-258/src/core/namespace.c:3113:20: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3117:49: branch_false: ...to here
systemd-258/src/core/namespace.c:3120:20: branch_true: following ‘true’ branch...
systemd-258/src/core/namespace.c:3110:66: branch_true: ...to here
systemd-258/src/core/namespace.c:3110:66: call_function: calling ‘mount_options_free_allp’ from ‘mount_image_add’
systemd-258/src/core/namespace.c:3138:1: danger: ‘o’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
# 3136|   
# 3137|           return 0;
# 3138|-> }
# 3139|   
# 3140|   void temporary_filesystem_free_many(TemporaryFileSystem *t, size_t n) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
systemd-258/src/core/namespace.h:213:1: warning[-Wanalyzer-malloc-leak]: leak of ‘dir’
systemd-258/src/test/test-namespace.c:28:1: enter_function: entry to ‘test_namespace_cleanup_tmpdir’
systemd-258/src/test/test-namespace.c:31:17: acquire_memory: allocated here
systemd-258/src/test/test-namespace.c:31:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:30:60: branch_false: ...to here
systemd-258/src/test/test-namespace.c:30:60: call_function: calling ‘namespace_cleanup_tmpdirp’ from ‘test_namespace_cleanup_tmpdir’
#  211|   
#  212|   char* namespace_cleanup_tmpdir(char *p);
#  213|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char*, namespace_cleanup_tmpdir);
#  214|   
#  215|   int setup_tmp_dirs(

Error: GCC_ANALYZER_WARNING (CWE-775): [#def400]
systemd-258/src/core/smack-setup.c:123:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<unknown>’
systemd-258/src/core/smack-setup.c:50:12: enter_function: entry to ‘write_access2_rules’
systemd-258/src/core/smack-setup.c:55:24: acquire_resource: opened here
systemd-258/src/core/smack-setup.c:55:24: call_function: inlined call to ‘RET_NERRNO’ from ‘write_access2_rules’
systemd-258/src/core/smack-setup.c:56:12: branch_false: ...to here
systemd-258/src/core/smack-setup.c:56:12: branch_false: following ‘false’ branch...
systemd-258/src/core/smack-setup.c:62:25: branch_false: ...to here
systemd-258/src/core/smack-setup.c:63:12: branch_false: following ‘false’ branch...
systemd-258/src/core/smack-setup.c:70:15: branch_false: ...to here
systemd-258/src/core/smack-setup.c:52:33: call_function: inlined call to ‘closedirp’ from ‘write_access2_rules’
 branch_false: ...to here
systemd-258/src/core/smack-setup.c:123:1: danger: ‘<unknown>’ leaks here; was opened at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#  121|   
#  122|           return r;
#  123|-> }
#  124|   
#  125|   static int write_cipso2_rules(const char *srcdir) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def401]
systemd-258/src/core/smack-setup.c:185:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<unknown>’
systemd-258/src/core/smack-setup.c:125:12: enter_function: entry to ‘write_cipso2_rules’
systemd-258/src/core/smack-setup.c:130:25: acquire_resource: opened here
systemd-258/src/core/smack-setup.c:130:25: call_function: inlined call to ‘RET_NERRNO’ from ‘write_cipso2_rules’
systemd-258/src/core/smack-setup.c:131:12: branch_false: ...to here
systemd-258/src/core/smack-setup.c:131:12: branch_false: following ‘false’ branch...
systemd-258/src/core/smack-setup.c:138:15: branch_false: ...to here
systemd-258/src/core/smack-setup.c:127:33: call_function: inlined call to ‘closedirp’ from ‘write_cipso2_rules’
 branch_false: ...to here
systemd-258/src/core/smack-setup.c:185:1: danger: ‘<unknown>’ leaks here; was opened at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  183|   
#  184|           return r;
#  185|-> }
#  186|   
#  187|   static int write_netlabel_rules(const char *srcdir) {

Error: CPPCHECK_WARNING (CWE-404): [#def402]
systemd-258/src/core/smack-setup.c:204: error[resourceLeak]: Resource leak: dst
#  202|                   if (errno != ENOENT)
#  203|                           log_warning_errno(errno, "Failed to open %s/: %m", srcdir);
#  204|->                 return errno; /* positive on purpose */
#  205|           }
#  206|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def403]
systemd-258/src/core/smack-setup.c:244:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/sys/fs/smackfs/netlabel", "we")’
systemd-258/src/core/smack-setup.c:187:12: enter_function: entry to ‘write_netlabel_rules’
systemd-258/src/core/smack-setup.c:192:15: acquire_resource: opened here
systemd-258/src/core/smack-setup.c:193:12: branch_false: following ‘false’ branch...
systemd-258/src/core/smack-setup.c:200:15: branch_false: ...to here
systemd-258/src/core/smack-setup.c:189:33: call_function: inlined call to ‘closedirp’ from ‘write_netlabel_rules’
 branch_false: ...to here
systemd-258/src/core/smack-setup.c:244:1: danger: ‘fopen("/sys/fs/smackfs/netlabel", "we")’ leaks here; was opened at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#  242|   
#  243|           return r;
#  244|-> }
#  245|   
#  246|   static int write_onlycap_list(void) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
systemd-258/src/core/smack-setup.c:244:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/sys/fs/smackfs/netlabel", "we")’
systemd-258/src/core/smack-setup.c:187:12: enter_function: entry to ‘write_netlabel_rules’
systemd-258/src/core/smack-setup.c:192:15: acquire_memory: allocated here
systemd-258/src/core/smack-setup.c:193:12: branch_false: following ‘false’ branch...
systemd-258/src/core/smack-setup.c:200:15: branch_false: ...to here
systemd-258/src/core/smack-setup.c:189:33: call_function: inlined call to ‘closedirp’ from ‘write_netlabel_rules’
 branch_false: ...to here
systemd-258/src/core/smack-setup.c:244:1: danger: ‘fopen("/sys/fs/smackfs/netlabel", "we")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#  242|   
#  243|           return r;
#  244|-> }
#  245|   
#  246|   static int write_onlycap_list(void) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
systemd-258/src/coredump/coredumpctl.c:459:1: warning[-Wanalyzer-malloc-leak]: leak of ‘value’
systemd-258/src/coredump/coredumpctl.c:865:12: enter_function: entry to ‘print_entry’
systemd-258/src/coredump/coredumpctl.c:874:17: branch_true: following ‘true’ branch...
systemd-258/src/coredump/coredumpctl.c:875:24: branch_true: ...to here
systemd-258/src/coredump/coredumpctl.c:875:24: call_function: calling ‘print_field’ from ‘print_entry’
#  457|   
#  458|           return 0;
#  459|-> }
#  460|   
#  461|   #define RETRIEVE(d, l, name, arg)                    \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
systemd-258/src/coredump/coredumpctl.c:623:1: warning[-Wanalyzer-malloc-leak]: leak of ‘mid’
systemd-258/src/coredump/coredumpctl.c:865:12: enter_function: entry to ‘print_entry’
systemd-258/src/coredump/coredumpctl.c:870:9: branch_false: following ‘false’ branch...
systemd-258/src/coredump/coredumpctl.c:872:12: branch_false: ...to here
systemd-258/src/coredump/coredumpctl.c:872:12: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
systemd-258/src/coredump/coredumpctl.c:873:24: branch_true: ...to here
systemd-258/src/coredump/coredumpctl.c:873:24: call_function: calling ‘print_list’ from ‘print_entry’
#  621|   
#  622|           return 0;
#  623|-> }
#  624|   
#  625|   static int print_info(FILE *file, sd_journal *j, bool need_space) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
systemd-258/src/coredump/coredumpctl.c:623:1: warning[-Wanalyzer-malloc-leak]: leak of ‘pid’
systemd-258/src/coredump/coredumpctl.c:865:12: enter_function: entry to ‘print_entry’
systemd-258/src/coredump/coredumpctl.c:870:9: branch_false: following ‘false’ branch...
systemd-258/src/coredump/coredumpctl.c:872:12: branch_false: ...to here
systemd-258/src/coredump/coredumpctl.c:872:12: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
systemd-258/src/coredump/coredumpctl.c:873:24: branch_true: ...to here
systemd-258/src/coredump/coredumpctl.c:873:24: call_function: calling ‘print_list’ from ‘print_entry’
#  621|   
#  622|           return 0;
#  623|-> }
#  624|   
#  625|   static int print_info(FILE *file, sd_journal *j, bool need_space) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
systemd-258/src/coredump/coredumpctl.c:623:1: warning[-Wanalyzer-malloc-leak]: leak of ‘uid’
systemd-258/src/coredump/coredumpctl.c:865:12: enter_function: entry to ‘print_entry’
systemd-258/src/coredump/coredumpctl.c:870:9: branch_false: following ‘false’ branch...
systemd-258/src/coredump/coredumpctl.c:872:12: branch_false: ...to here
systemd-258/src/coredump/coredumpctl.c:872:12: branch_true: following ‘true’ branch (when ‘t’ is non-NULL)...
systemd-258/src/coredump/coredumpctl.c:873:24: branch_true: ...to here
systemd-258/src/coredump/coredumpctl.c:873:24: call_function: calling ‘print_list’ from ‘print_entry’
#  621|   
#  622|           return 0;
#  623|-> }
#  624|   
#  625|   static int print_info(FILE *file, sd_journal *j, bool need_space) {

Error: CPPCHECK_WARNING (CWE-457): [#def409]
systemd-258/src/coredump/coredumpctl.c:828: error[uninitvar]: Uninitialized variable: module_name
#  826|   
#  827|                                   /* We only print the build-id for the 'main' ELF module */
#  828|->                                 if (!path_equal_filename(module_name, exe))
#  829|                                           continue;
#  830|   

Error: CPPCHECK_WARNING (CWE-457): [#def410]
systemd-258/src/coredump/coredumpctl.c:831: error[uninitvar]: Uninitialized variable: module_json
#  829|                                           continue;
#  830|   
#  831|->                                 build_id = sd_json_variant_by_key(module_json, "buildId");
#  832|                                   if (build_id)
#  833|                                           fprintf(file, "      build-id: %s\n", sd_json_variant_string(build_id));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
systemd-258/src/coredump/coredumpctl.c:849:1: warning[-Wanalyzer-malloc-leak]: leak of ‘mid’
systemd-258/src/coredump/coredumpctl.c:865:12: enter_function: entry to ‘print_entry’
systemd-258/src/coredump/coredumpctl.c:874:17: branch_false: following ‘false’ branch...
systemd-258/src/coredump/coredumpctl.c:877:24: branch_false: ...to here
systemd-258/src/coredump/coredumpctl.c:877:24: call_function: calling ‘print_info’ from ‘print_entry’
#  847|   
#  848|           return 0;
#  849|-> }
#  850|   
#  851|   static int focus(sd_journal *j) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
systemd-258/src/coredump/coredumpctl.c:849:1: warning[-Wanalyzer-malloc-leak]: leak of ‘uid’
systemd-258/src/coredump/coredumpctl.c:865:12: enter_function: entry to ‘print_entry’
systemd-258/src/coredump/coredumpctl.c:874:17: branch_false: following ‘false’ branch...
systemd-258/src/coredump/coredumpctl.c:877:24: branch_false: ...to here
systemd-258/src/coredump/coredumpctl.c:877:24: call_function: calling ‘print_info’ from ‘print_entry’
#  847|   
#  848|           return 0;
#  849|-> }
#  850|   
#  851|   static int focus(sd_journal *j) {

Error: CPPCHECK_WARNING (CWE-457): [#def413]
systemd-258/src/creds/creds.c:156: error[uninitvar]: Uninitialized variable: &p
#  154|           else {
#  155|                   /* Otherwise take the dirs from the env vars we got passed */
#  156|->                 r = (encrypted ? get_encrypted_credentials_dir : get_credentials_dir)(&p);
#  157|                   if (r == -ENXIO) /* No environment variable? */
#  158|                           goto not_found;

Error: CPPCHECK_WARNING (CWE-768): [#def414]
systemd-258/src/creds/creds.c:1091: error[unknownEvaluationOrder]: Expression 'arg_with_key,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}})' depends on order of evaluation of side effects
# 1089|                   if (sd_id128_equal(arg_with_key, _CRED_AUTO))
# 1090|                           arg_with_key = _CRED_AUTO_SCOPED;
# 1091|->                 else if (sd_id128_in_set(arg_with_key, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED))
# 1092|                           arg_with_key = CRED_AES256_GCM_BY_HOST_SCOPED;
# 1093|                   else if (sd_id128_in_set(arg_with_key, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED))

Error: CPPCHECK_WARNING (CWE-768): [#def415]
systemd-258/src/creds/creds.c:1093: error[unknownEvaluationOrder]: Expression 'arg_with_key,((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of side effects
# 1091|                   else if (sd_id128_in_set(arg_with_key, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED))
# 1092|                           arg_with_key = CRED_AES256_GCM_BY_HOST_SCOPED;
# 1093|->                 else if (sd_id128_in_set(arg_with_key, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED))
# 1094|                           arg_with_key = CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED;
# 1095|                   else if (sd_id128_in_set(arg_with_key, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED))

Error: CPPCHECK_WARNING (CWE-768): [#def416]
systemd-258/src/creds/creds.c:1095: error[unknownEvaluationOrder]: Expression 'arg_with_key,((const union sd_id128){.bytes={0xaf,0x49,0x50,0xa8,0x49,0x13,0x4e,0xb1,0xa7,0x38,0x46,0x30,0x4f,0xf3,0x0c,0x05}}),((const union sd_id128){.bytes={0xad,0xbc,0x4c,0xa3,0xef,0xb6,0x42,0x01,0xba,0x88,0x1b,0x6f,0x2e,0x40,0x95,0xea}})' depends on order of evaluation of side effects
# 1093|                   else if (sd_id128_in_set(arg_with_key, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED))
# 1094|                           arg_with_key = CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED;
# 1095|->                 else if (sd_id128_in_set(arg_with_key, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED))
# 1096|                           arg_with_key = CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED;
# 1097|                   else

Error: CPPCHECK_WARNING (CWE-457): [#def417]
systemd-258/src/cryptenroll/cryptenroll-list.c:82: error[uninitvar]: Uninitialized variable: z
#   80|                           unsigned u;
#   81|   
#   82|->                         if (!sd_json_variant_is_string(z)) {
#   83|                                   log_warning("Token JSON data's keyslot field is not an array of strings, ignoring.");
#   84|                                   continue;

Error: CPPCHECK_WARNING (CWE-457): [#def418]
systemd-258/src/cryptenroll/cryptenroll-tpm2.c:71: error[uninitvar]: Uninitialized variable: i
#   69|                                           _cleanup_(iovec_done) struct iovec thash = {};
#   70|   
#   71|->                                         r = sd_json_variant_unhex(i, &thash.iov_base, &thash.iov_len);
#   72|                                           if (r < 0)
#   73|                                                   return log_error_errno(r, "Invalid hex data in 'tpm2-policy-hash' field item : %m");

Error: CPPCHECK_WARNING (CWE-457): [#def419]
systemd-258/src/cryptenroll/cryptenroll-wipe.c:134: error[uninitvar]: Uninitialized variable: z
#  132|                           int slot;
#  133|   
#  134|->                         if (!sd_json_variant_is_string(z)) {
#  135|                                   log_warning("Token JSON data's keyslot field is not an array of strings, ignoring.");
#  136|                                   continue;

Error: CPPCHECK_WARNING (CWE-457): [#def420]
systemd-258/src/cryptenroll/cryptenroll-wipe.c:227: error[uninitvar]: Uninitialized variable: z
#  225|                           int slot;
#  226|   
#  227|->                         if (!sd_json_variant_is_string(z)) {
#  228|                                   log_warning("Token JSON data's keyslot field is not an array of strings, ignoring.");
#  229|                                   continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
systemd-258/src/cryptsetup/cryptsetup-generator.c:607:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/cryptsetup/cryptsetup-generator.c:600:20: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
systemd-258/src/cryptsetup/cryptsetup-generator.c:603:27: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-generator.c:603:27: acquire_memory: allocated here
systemd-258/src/cryptsetup/cryptsetup-generator.c:604:20: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-generator.c:607:21: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-generator.c:607:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  605|                           return mfree(d);
#  606|   
#  607|->                 r = hashmap_put(arg_disks, d->uuid, d);
#  608|                   if (r < 0) {
#  609|                           free(d->uuid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
systemd-258/src/cryptsetup/cryptsetup-generator.c:607:21: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/cryptsetup/cryptsetup-generator.c:599:21: acquire_memory: allocated here
systemd-258/src/cryptsetup/cryptsetup-generator.c:600:20: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
systemd-258/src/cryptsetup/cryptsetup-generator.c:603:27: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-generator.c:604:20: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-generator.c:607:21: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-generator.c:607:21: danger: ‘d’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  605|                           return mfree(d);
#  606|   
#  607|->                 r = hashmap_put(arg_disks, d->uuid, d);
#  608|                   if (r < 0) {
#  609|                           free(d->uuid);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def423]
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:102:37: warning[-Wanalyzer-malloc-leak]: leak of ‘uri’
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:81:5: enter_function: entry to ‘find_pkcs11_auto_data’
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:94:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:95:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:95:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:96:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:96:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:97:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:97:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:98:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:98:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:102:29: branch_true: following ‘true’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:103:68: branch_true: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:110:20: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:113:22: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:121:20: branch_false: following ‘false’ branch (when ‘uri’ is NULL)...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:125:17: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:125:17: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:128:21: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:129:20: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:133:23: acquire_memory: allocated here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:134:20: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:137:22: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:137:20: branch_true: following ‘true’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:141:21: branch_true: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:142:20: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:146:17: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:146:17: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:147:17: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:147:17: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:148:21: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:149:20: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:103:68: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘find_pkcs11_auto_data’
systemd-258/src/cryptsetup/cryptsetup-pkcs11.c:102:37: danger: ‘uri’ leaks here; was allocated at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
#  100|           /* Loads PKCS#11 metadata from LUKS2 JSON token headers. */
#  101|   
#  102|->         for (int token = 0; token < sym_crypt_token_max(CRYPT_LUKS2); token++) {
#  103|                   _cleanup_(sd_json_variant_unrefp) sd_json_variant *v = NULL;
#  104|                   sd_json_variant *w;

Error: CPPCHECK_WARNING (CWE-457): [#def424]
systemd-258/src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-tpm2.c:290: error[uninitvar]: Uninitialized variable: e
#  288|                   uint64_t u;
#  289|   
#  290|->                 if (!sd_json_variant_is_number(e)) {
#  291|                           crypt_log_debug(cd, "TPM2 PCR is not a number.");
#  292|                           return 1;

Error: CPPCHECK_WARNING (CWE-457): [#def425]
systemd-258/src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-tpm2.c:345: error[uninitvar]: Uninitialized variable: i
#  343|                   sd_json_variant *i;
#  344|                   JSON_VARIANT_ARRAY_FOREACH(i, w) {
#  345|->                         r = sd_json_variant_unbase64(i, /* ret= */ NULL, /* ret_size= */ NULL);
#  346|                           if (r < 0)
#  347|                                   return crypt_log_debug_errno(cd, r, "Invalid base64 data in 'tpm2-blob' field: %m");

Error: CPPCHECK_WARNING (CWE-457): [#def426]
systemd-258/src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-tpm2.c:364: error[uninitvar]: Uninitialized variable: i
#  362|                   sd_json_variant *i;
#  363|                   JSON_VARIANT_ARRAY_FOREACH(i, w) {
#  364|->                         r = sd_json_variant_unhex(i, /* ret= */ NULL, /* ret_size= */ NULL);
#  365|                           if (r < 0)
#  366|                                   return crypt_log_debug_errno(cd, r, "Invalid hex data in 'tpm2-policy-hash' field: %m");

Error: GCC_ANALYZER_WARNING (CWE-457): [#def427]
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:45:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘required’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:13:5: enter_function: entry to ‘acquire_luks2_key’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:32:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:32:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:34:13: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:34:13: call_function: calling ‘parse_luks2_fido2_data’ from ‘acquire_luks2_key’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:34:13: return_function: returning to ‘acquire_luks2_key’ from ‘parse_luks2_fido2_data’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:35:12: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:38:12: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:38:12: branch_false: following ‘false’ branch (when ‘pin’ is NULL)...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:45:13: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-fido2.c:45:13: danger: use of uninitialized value ‘required’ here
#   43|   
#   44|           /* configured to use pin but none was provided */
#   45|->         if ((required & FIDO2ENROLL_PIN) && strv_isempty(pins))
#   46|                   return -ENOANO;
#   47|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def428]
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:207:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘encrypted_key_size’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:177:5: enter_function: entry to ‘acquire_luks2_key’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:195:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:196:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:196:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:197:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:197:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:199:13: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:199:13: call_function: calling ‘parse_luks2_pkcs11_data’ from ‘acquire_luks2_key’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:199:13: return_function: returning to ‘acquire_luks2_key’ from ‘parse_luks2_pkcs11_data’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:200:12: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:203:13: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:206:12: branch_true: following ‘true’ branch (when ‘userdata’ is non-NULL)...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:207:21: branch_true: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:207:21: danger: use of uninitialized value ‘encrypted_key_size’ here
#  205|   
#  206|           if (pkcs11_params) /* systemd based activation with interactive pin query callbacks */
#  207|->                 r = acquire_luks2_key_systemd(
#  208|                           pkcs11_uri,
#  209|                           pkcs11_params,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def429]
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:213:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘encrypted_key_size’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:177:5: enter_function: entry to ‘acquire_luks2_key’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:195:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:196:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:196:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:197:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:197:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:199:13: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:199:13: call_function: calling ‘parse_luks2_pkcs11_data’ from ‘acquire_luks2_key’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:199:13: return_function: returning to ‘acquire_luks2_key’ from ‘parse_luks2_pkcs11_data’
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:200:12: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:203:13: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:206:12: branch_false: following ‘false’ branch (when ‘userdata’ is NULL)...
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:213:21: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup-tokens/luks2-pkcs11.c:213:21: danger: use of uninitialized value ‘encrypted_key_size’ here
#  211|                           &decrypted_key, &decrypted_key_size);
#  212|           else /* default activation that provides single PIN if needed */
#  213|->                 r = acquire_luks2_key_by_pin(
#  214|                           cd, pkcs11_uri, pin, pin_size,
#  215|                           encrypted_key, encrypted_key_size,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
systemd-258/src/delta/delta.c:213:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(filename)’
systemd-258/src/delta/delta.c:432:12: enter_function: entry to ‘process_suffix_chop’
systemd-258/src/delta/delta.c:433:9: branch_false: following ‘false’ branch...
systemd-258/src/delta/delta.c:435:14: call_function: inlined call to ‘path_is_absolute’ from ‘process_suffix_chop’
systemd-258/src/delta/delta.c:435:12: branch_false: following ‘false’ branch...
systemd-258/src/delta/delta.c:436:24: branch_false: ...to here
systemd-258/src/delta/delta.c:436:24: call_function: calling ‘process_suffix’ from ‘process_suffix_chop’
#  211|           if (r < 0)
#  212|                   return r;
#  213|->         assert(r > 0);
#  214|   
#  215|           TAKE_PTR(f);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def431]
systemd-258/src/dissect/dissect.c:1747:72: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(root, 589824)’
systemd-258/src/dissect/dissect.c:1546:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1586:17: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1743:23: acquire_resource: opened here
systemd-258/src/dissect/dissect.c:1744:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1747:72: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1747:72: danger: ‘open(root, 589824)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1745|                           return log_error_errno(errno, "Failed to open mount directory: %m");
# 1746|   
# 1747|->                 _cleanup_(sym_archive_write_freep) struct archive *a = sym_archive_write_new();
# 1748|                   if (!a)
# 1749|                           return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def432]
systemd-258/src/dissect/dissect.c:1752:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(root, 589824)’
systemd-258/src/dissect/dissect.c:1546:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1586:17: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1743:23: acquire_resource: opened here
systemd-258/src/dissect/dissect.c:1744:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1747:72: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1748:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1751:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1751:20: branch_true: following ‘true’ branch...
systemd-258/src/dissect/dissect.c:1752:29: branch_true: ...to here
systemd-258/src/dissect/dissect.c:1752:29: danger: ‘open(root, 589824)’ leaks here; was opened at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 1750|   
# 1751|                   if (arg_target)
# 1752|->                         r = sym_archive_write_set_format_filter_by_ext(a, arg_target);
# 1753|                   else
# 1754|                           r = sym_archive_write_set_format_gnutar(a);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def433]
systemd-258/src/dissect/dissect.c:1754:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(root, 589824)’
systemd-258/src/dissect/dissect.c:1546:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1586:17: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1743:23: acquire_resource: opened here
systemd-258/src/dissect/dissect.c:1744:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1747:72: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1748:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1751:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1751:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1754:29: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1754:29: danger: ‘open(root, 589824)’ leaks here; was opened at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 1752|                           r = sym_archive_write_set_format_filter_by_ext(a, arg_target);
# 1753|                   else
# 1754|->                         r = sym_archive_write_set_format_gnutar(a);
# 1755|                   if (r != ARCHIVE_OK)
# 1756|                           return log_error_errno(SYNTHETIC_ERRNO(ENOTRECOVERABLE), "Failed to set libarchive output format: %s", sym_archive_error_string(a));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def434]
systemd-258/src/dissect/dissect.c:1756:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(root, 589824)’
systemd-258/src/dissect/dissect.c:1546:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1586:17: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1743:23: acquire_resource: opened here
systemd-258/src/dissect/dissect.c:1744:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1747:72: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1748:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1751:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1755:20: branch_true: following ‘true’ branch (when ‘r != 0’)...
systemd-258/src/dissect/dissect.c:1756:32: branch_true: ...to here
systemd-258/src/dissect/dissect.c:1756:32: branch_true: following ‘true’ branch...
systemd-258/src/dissect/dissect.c:1756:32: branch_true: ...to here
systemd-258/src/dissect/dissect.c:1756:32: danger: ‘open(root, 589824)’ leaks here; was opened at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 1754|                           r = sym_archive_write_set_format_gnutar(a);
# 1755|                   if (r != ARCHIVE_OK)
# 1756|->                         return log_error_errno(SYNTHETIC_ERRNO(ENOTRECOVERABLE), "Failed to set libarchive output format: %s", sym_archive_error_string(a));
# 1757|   
# 1758|                   if (arg_target) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def435]
systemd-258/src/dissect/dissect.c:1763:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(root, 589824)’
systemd-258/src/dissect/dissect.c:1538:12: enter_function: entry to ‘action_list_or_mtree_or_copy_or_make_archive’
systemd-258/src/dissect/dissect.c:1546:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1586:17: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1743:23: acquire_resource: opened here
systemd-258/src/dissect/dissect.c:1744:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1747:72: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1748:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1751:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1755:20: branch_false: following ‘false’ branch (when ‘r == 0’)...
systemd-258/src/dissect/dissect.c:1758:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1758:20: branch_true: following ‘true’ branch...
systemd-258/src/dissect/dissect.c:1759:29: call_function: inlined call to ‘fopen_tmpfile_linkable’ from ‘action_list_or_mtree_or_copy_or_make_archive’
systemd-258/src/dissect/dissect.c:1760:28: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1763:29: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1763:29: danger: ‘open(root, 589824)’ leaks here; was opened at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
# 1761|                                   return log_error_errno(r, "Failed to create target file '%s': %m", arg_target);
# 1762|   
# 1763|->                         r = sym_archive_write_open_FILE(a, f);
# 1764|                   } else {
# 1765|                           if (isatty_safe(STDOUT_FILENO))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def436]
systemd-258/src/dissect/dissect.c:1768:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(root, 589824)’
systemd-258/src/dissect/dissect.c:1546:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1586:17: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1743:23: acquire_resource: opened here
systemd-258/src/dissect/dissect.c:1744:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1747:72: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1748:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1751:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1755:20: branch_false: following ‘false’ branch (when ‘r == 0’)...
systemd-258/src/dissect/dissect.c:1758:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1758:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1765:29: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1765:28: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1768:29: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1768:29: danger: ‘open(root, 589824)’ leaks here; was opened at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
# 1766|                                   return log_error_errno(SYNTHETIC_ERRNO(EBADF), "Refusing to write archive to TTY.");
# 1767|   
# 1768|->                         r = sym_archive_write_open_fd(a, STDOUT_FILENO);
# 1769|                   }
# 1770|                   if (r != ARCHIVE_OK)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def437]
systemd-258/src/dissect/dissect.c:1771:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(root, 589824)’
systemd-258/src/dissect/dissect.c:1538:12: enter_function: entry to ‘action_list_or_mtree_or_copy_or_make_archive’
systemd-258/src/dissect/dissect.c:1546:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1586:17: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1743:23: acquire_resource: opened here
systemd-258/src/dissect/dissect.c:1744:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1747:72: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1748:20: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1751:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1755:20: branch_false: following ‘false’ branch (when ‘r == 0’)...
systemd-258/src/dissect/dissect.c:1758:21: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1758:20: branch_true: following ‘true’ branch...
systemd-258/src/dissect/dissect.c:1759:29: call_function: inlined call to ‘fopen_tmpfile_linkable’ from ‘action_list_or_mtree_or_copy_or_make_archive’
systemd-258/src/dissect/dissect.c:1760:28: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:1763:29: branch_false: ...to here
systemd-258/src/dissect/dissect.c:1770:20: branch_true: following ‘true’ branch (when ‘r != 0’)...
systemd-258/src/dissect/dissect.c:1771:32: branch_true: ...to here
systemd-258/src/dissect/dissect.c:1771:32: branch_true: following ‘true’ branch...
systemd-258/src/dissect/dissect.c:1771:32: branch_true: ...to here
systemd-258/src/dissect/dissect.c:1771:32: danger: ‘open(root, 589824)’ leaks here; was opened at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
# 1769|                   }
# 1770|                   if (r != ARCHIVE_OK)
# 1771|->                         return log_error_errno(SYNTHETIC_ERRNO(ENOTRECOVERABLE), "Failed to set libarchive output file: %s", sym_archive_error_string(a));
# 1772|   
# 1773|                   r = recurse_dir(dfd,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def438]
systemd-258/src/dissect/dissect.c:2120:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘loop’
systemd-258/src/dissect/dissect.c:2045:51: release_memory: ‘loop’ is NULL
systemd-258/src/dissect/dissect.c:2050:9: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:2052:14: branch_false: ...to here
systemd-258/src/dissect/dissect.c:2053:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:2056:13: branch_false: ...to here
systemd-258/src/dissect/dissect.c:2056:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:2059:13: branch_false: ...to here
systemd-258/src/dissect/dissect.c:2059:12: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:2064:19: branch_false: ...to here
systemd-258/src/dissect/dissect.c:2064:19: branch_false: following ‘false’ branch...
systemd-258/src/dissect/dissect.c:2118:13: branch_false: ...to here
systemd-258/src/dissect/dissect.c:2118:13: release_memory: ‘loop’ is NULL
systemd-258/src/dissect/dissect.c:2119:12: branch_true: following ‘true’ branch...
systemd-258/src/dissect/dissect.c:2120:17: branch_true: ...to here
systemd-258/src/dissect/dissect.c:2120:17: branch_true: following ‘true’ branch...
systemd-258/src/dissect/dissect.c:2120:17: branch_true: ...to here
systemd-258/src/dissect/dissect.c:2120:17: release_memory: ‘loop’ is NULL
systemd-258/src/dissect/dissect.c:2120:17: danger: dereference of NULL ‘loop’
# 2118|           r = loop_device_set_autoclear(loop, true);
# 2119|           if (r < 0)
# 2120|->                 log_warning_errno(r, "Failed to enable autoclear logic on '%s', ignoring: %m", loop->node);
# 2121|   
# 2122|           loop_device_unrelinquish(loop);

Error: CPPCHECK_WARNING (CWE-404): [#def439]
systemd-258/src/fsck/fsck.c:368: error[resourceLeak]: Resource leak: console
#  366|               show_progress &&
#  367|               pipe(progress_pipe) < 0)
#  368|->                 return log_error_errno(errno, "pipe(): %m");
#  369|   
#  370|           r = safe_fork("(fsck)", FORK_RESET_SIGNALS|FORK_DEATHSIG_SIGTERM|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE, &pid);

Error: CPPCHECK_WARNING (CWE-401): [#def440]
systemd-258/src/fstab-generator/fstab-generator.c:1214: error[memleak]: Memory leak: what
# 1212|           _cleanup_free_ char *combined_options = NULL;
# 1213|           if (strdup_to(&combined_options, arg_root_options) < 0)
# 1214|->                 return log_oom();
# 1215|   
# 1216|           if (arg_root_rw >= 0 || !fstab_test_option(combined_options, "ro\0" "rw\0"))

Error: CPPCHECK_WARNING (CWE-401): [#def441]
systemd-258/src/fstab-generator/fstab-generator.c:1218: error[memleak]: Memory leak: what
# 1216|           if (arg_root_rw >= 0 || !fstab_test_option(combined_options, "ro\0" "rw\0"))
# 1217|                   if (!strextend_with_separator(&combined_options, ",", arg_root_rw > 0 || (arg_root_rw < 0 && default_rw) ? "rw" : "ro"))
# 1218|->                         return log_oom();
# 1219|   
# 1220|           if (extra_opts)

Error: CPPCHECK_WARNING (CWE-401): [#def442]
systemd-258/src/fstab-generator/fstab-generator.c:1222: error[memleak]: Memory leak: what
# 1220|           if (extra_opts)
# 1221|                   if (!strextend_with_separator(&combined_options, ",", extra_opts))
# 1222|->                         return log_oom();
# 1223|   
# 1224|           log_debug("Found entry what=%s where=/sysroot type=%s opts=%s", what, strna(fstype), strempty(combined_options));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
systemd-258/src/fundamental/cleanup-fundamental.h:60:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/portable/portabled-image-bus.c:569:12: enter_function: entry to ‘normalize_portable_changes’
systemd-258/src/portable/portabled-image-bus.c:580:9: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-image-bus.c:581:9: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:581:9: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-image-bus.c:583:12: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:583:12: branch_false: following ‘false’ branch (when ‘n_changes_detached != 0’)...
systemd-258/src/portable/portabled-image-bus.c:586:19: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:587:12: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-image-bus.c:590:9: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:593:12: branch_false: following ‘false’ branch (when ‘n_changes_attached != 0’)...
 branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:600:28: branch_true: following ‘true’ branch (when ‘i < n_changes_detached’)...
 branch_true: ...to here
systemd-258/src/portable/portabled-image-bus.c:609:20: branch_true: following ‘true’ branch (when ‘found != 0’)...
systemd-258/src/portable/portabled-image-bus.c:600:52: branch_true: ...to here
systemd-258/src/portable/portabled-image-bus.c:600:28: branch_true: following ‘true’ branch (when ‘i < n_changes_detached’)...
 branch_true: ...to here
systemd-258/src/portable/portabled-image-bus.c:612:32: acquire_memory: allocated here
systemd-258/src/portable/portabled-image-bus.c:613:28: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-image-bus.c:616:29: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:616:28: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-image-bus.c:622:32: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:600:28: branch_true: following ‘true’ branch (when ‘i < n_changes_detached’)...
 branch_true: ...to here
systemd-258/src/portable/portabled-image-bus.c:604:29: call_function: inlined call to ‘path_equal_filename’ from ‘normalize_portable_changes’
systemd-258/src/portable/portabled-image-bus.c:590:9: call_function: calling ‘array_cleanup’ from ‘normalize_portable_changes’
#   58|           if (*c->parray) {
#   59|                   assert(c->pfunc);
#   60|->                 c->pfunc(*c->parray, *c->pn);
#   61|                   *c->parray = NULL;
#   62|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
systemd-258/src/fundamental/cleanup-fundamental.h:60:17: warning[-Wanalyzer-malloc-leak]: leak of ‘changes’
systemd-258/src/portable/portabled-image-bus.c:569:12: enter_function: entry to ‘normalize_portable_changes’
systemd-258/src/portable/portabled-image-bus.c:580:9: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-image-bus.c:581:9: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:581:9: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-image-bus.c:583:12: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:583:12: branch_false: following ‘false’ branch (when ‘n_changes_detached != 0’)...
systemd-258/src/portable/portabled-image-bus.c:586:19: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:586:19: acquire_memory: allocated here
systemd-258/src/portable/portabled-image-bus.c:587:12: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-image-bus.c:590:9: branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:593:12: branch_false: following ‘false’ branch (when ‘n_changes_attached != 0’)...
 branch_false: ...to here
systemd-258/src/portable/portabled-image-bus.c:600:28: branch_true: following ‘true’ branch (when ‘i < n_changes_detached’)...
 branch_true: ...to here
systemd-258/src/portable/portabled-image-bus.c:604:29: call_function: inlined call to ‘path_equal_filename’ from ‘normalize_portable_changes’
systemd-258/src/portable/portabled-image-bus.c:590:9: call_function: calling ‘array_cleanup’ from ‘normalize_portable_changes’
#   58|           if (*c->parray) {
#   59|                   assert(c->pfunc);
#   60|->                 c->pfunc(*c->parray, *c->pn);
#   61|                   *c->parray = NULL;
#   62|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
systemd-258/src/fundamental/cleanup-fundamental.h:60:17: warning[-Wanalyzer-malloc-leak]: leak of ‘elements’
systemd-258/src/shared/format-table.c:3132:5: enter_function: entry to ‘table_print_with_pager’
systemd-258/src/shared/format-table.c:3141:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/format-table.c:3146:13: branch_false: ...to here
systemd-258/src/shared/format-table.c:3151:13: call_function: calling ‘table_print_json’ from ‘table_print_with_pager’
#   58|           if (*c->parray) {
#   59|                   assert(c->pfunc);
#   60|->                 c->pfunc(*c->parray, *c->pn);
#   61|                   *c->parray = NULL;
#   62|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
systemd-258/src/fundamental/cleanup-fundamental.h:60:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fd_array’
systemd-258/src/shared/serialize.c:383:5: enter_function: entry to ‘deserialize_fd_many’
systemd-258/src/shared/serialize.c:387:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/serialize.c:389:20: branch_false: ...to here
systemd-258/src/shared/serialize.c:389:20: call_function: calling ‘malloc_multiply’ from ‘deserialize_fd_many’
systemd-258/src/shared/serialize.c:389:20: return_function: returning to ‘deserialize_fd_many’ from ‘malloc_multiply’
systemd-258/src/shared/serialize.c:390:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/serialize.c:393:9: branch_false: ...to here
systemd-258/src/shared/serialize.c:393:9: call_function: calling ‘array_cleanup’ from ‘deserialize_fd_many’
#   58|           if (*c->parray) {
#   59|                   assert(c->pfunc);
#   60|->                 c->pfunc(*c->parray, *c->pn);
#   61|                   *c->parray = NULL;
#   62|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
systemd-258/src/fundamental/cleanup-fundamental.h:60:17: warning[-Wanalyzer-malloc-leak]: leak of ‘overlays’
systemd-258/src/core/namespace.c:3808:5: enter_function: entry to ‘refresh_extensions_in_namespace’
systemd-258/src/core/namespace.c:3821:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3822:9: branch_false: ...to here
systemd-258/src/core/namespace.c:3822:9: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3824:9: branch_false: ...to here
systemd-258/src/core/namespace.c:3827:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3830:13: branch_false: ...to here
systemd-258/src/core/namespace.c:3831:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3833:12: branch_false: ...to here
systemd-258/src/core/namespace.c:3833:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3836:25: branch_false: ...to here
systemd-258/src/core/namespace.c:3837:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3840:13: branch_false: ...to here
systemd-258/src/core/namespace.c:3841:12: branch_false: following ‘false’ branch...
systemd-258/src/core/namespace.c:3851:25: branch_false: ...to here
systemd-258/src/core/namespace.c:3844:13: call_function: calling ‘append_extensions’ from ‘refresh_extensions_in_namespace’
#   58|           if (*c->parray) {
#   59|                   assert(c->pfunc);
#   60|->                 c->pfunc(*c->parray, *c->pn);
#   61|                   *c->parray = NULL;
#   62|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
systemd-258/src/fundamental/cleanup-fundamental.h:64:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_iov’
systemd-258/src/test/test-memory-util.c:25:1: enter_function: entry to ‘test_cleanup_array’
systemd-258/src/test/test-memory-util.c:30:15: call_function: calling ‘malloc_multiply’ from ‘test_cleanup_array’
systemd-258/src/test/test-memory-util.c:30:15: return_function: returning to ‘test_cleanup_array’ from ‘malloc_multiply’
systemd-258/src/test/test-memory-util.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:33:9: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:39:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:40:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:40:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:41:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:41:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:43:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:43:17: call_function: calling ‘array_cleanup’ from ‘test_cleanup_array’
systemd-258/src/test/test-memory-util.c:43:17: return_function: returning to ‘test_cleanup_array’ from ‘array_cleanup’
systemd-258/src/fundamental/cleanup-fundamental.h:64:9: danger: ‘saved_iov’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   62|           }
#   63|   
#   64|->         *c->pn = 0;
#   65|   }
#   66|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
systemd-258/src/fundamental/string-util-fundamental.h:86:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pretty’
systemd-258/src/resolve/resolvectl.c:1558:12: enter_function: entry to ‘map_domains_internal’
systemd-258/src/resolve/resolvectl.c:1566:21: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolvectl.c:1569:9: branch_false: ...to here
systemd-258/src/resolve/resolvectl.c:1569:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolvectl.c:1570:9: branch_false: ...to here
systemd-258/src/resolve/resolvectl.c:1570:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolvectl.c:1571:9: branch_false: ...to here
systemd-258/src/resolve/resolvectl.c:1571:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolvectl.c:1573:13: branch_false: ...to here
systemd-258/src/resolve/resolvectl.c:1574:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolvectl.c:1580:21: call_function: calling ‘read_domain_one’ from ‘map_domains_internal’
systemd-258/src/resolve/resolvectl.c:1580:21: return_function: returning to ‘map_domains_internal’ from ‘read_domain_one’
systemd-258/src/resolve/resolvectl.c:1581:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolvectl.c:1583:20: branch_false: ...to here
systemd-258/src/resolve/resolvectl.c:1583:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolvectl.c:1586:21: branch_false: ...to here
systemd-258/src/resolve/resolvectl.c:1589:21: call_function: inlined call to ‘strv_consume’ from ‘map_domains_internal’
systemd-258/src/resolve/resolvectl.c:1586:21: call_function: inlined call to ‘isempty’ from ‘map_domains_internal’
#   84|   
#   85|   static inline bool isempty(const sd_char *a) {
#   86|->         return !a || a[0] == '\0';
#   87|   }
#   88|   

Error: CPPCHECK_WARNING (CWE-457): [#def450]
systemd-258/src/fuzz/fuzz-bootspec.c:35: error[uninitvar]: Uninitialized variable: entry
#   33|   
#   34|           JSON_VARIANT_ARRAY_FOREACH(entry, variant) {
#   35|->                 if (!sd_json_variant_is_array(entry) ||
#   36|                       sd_json_variant_elements(entry) < 1)
#   37|                           return -EINVAL;

Error: CPPCHECK_WARNING (CWE-401): [#def451]
systemd-258/src/growfs/makefs.c:36: error[memleak]: Memory leak: fstype
#   34|           device = strdup(argv[2]);
#   35|           if (!device)
#   36|->                 return log_oom();
#   37|   
#   38|           if (stat(device, &st) < 0)

Error: CPPCHECK_WARNING (CWE-401): [#def452]
systemd-258/src/growfs/makefs.c:39: error[memleak]: Memory leak: fstype
#   37|   
#   38|           if (stat(device, &st) < 0)
#   39|->                 return log_error_errno(errno, "Failed to stat \"%s\": %m", device);
#   40|   
#   41|           if (S_ISBLK(st.st_mode)) {

Error: CPPCHECK_WARNING (CWE-401): [#def453]
systemd-258/src/growfs/makefs.c:46: error[memleak]: Memory leak: fstype
#   44|                   lock_fd = lock_whole_block_device(st.st_rdev, LOCK_EX);
#   45|                   if (lock_fd < 0)
#   46|->                         return log_error_errno(lock_fd, "Failed to lock whole block device of \"%s\": %m", device);
#   47|           } else
#   48|                   log_debug("%s is not a block device, no need to lock.", device);

Error: CPPCHECK_WARNING (CWE-457): [#def454]
systemd-258/src/home/homectl.c:940: error[uninitvar]: Uninitialized variable: z
#  938|                                   sd_json_variant *u;
#  939|   
#  940|->                                 if (!sd_json_variant_is_object(z))
#  941|                                           return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "perMachine entry is not an object, refusing.");
#  942|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
systemd-258/src/home/homed-bus.c:109:22: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(_filename)’
systemd-258/src/home/homed-bus.c:76:5: enter_function: entry to ‘bus_message_read_blobs’
systemd-258/src/home/homed-bus.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:81:9: branch_false: ...to here
systemd-258/src/home/homed-bus.c:81:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:85:13: branch_false: ...to here
systemd-258/src/home/homed-bus.c:86:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:89:13: branch_false: ...to here
systemd-258/src/home/homed-bus.c:90:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/home/homed-bus.c:100:20: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:102:20: branch_false: ...to here
systemd-258/src/home/homed-bus.c:102:20: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:105:28: branch_false: ...to here
systemd-258/src/home/homed-bus.c:105:28: acquire_memory: allocated here
systemd-258/src/home/homed-bus.c:106:20: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:109:22: branch_false: ...to here
systemd-258/src/home/homed-bus.c:110:20: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:113:21: branch_false: ...to here
systemd-258/src/home/homed-bus.c:114:20: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:117:21: branch_false: ...to here
systemd-258/src/home/homed-bus.c:118:20: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:121:21: call_function: inlined call to ‘fd_verify_safe_flags’ from ‘bus_message_read_blobs’
systemd-258/src/home/homed-bus.c:122:20: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:125:20: branch_false: ...to here
systemd-258/src/home/homed-bus.c:125:20: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-bus.c:128:50: branch_false: ...to here
systemd-258/src/home/homed-bus.c:109:22: danger: ‘strdup(_filename)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
#  107|                           return -ENOMEM;
#  108|   
#  109|->                 fd = fcntl(_fd, F_DUPFD_CLOEXEC, 3);
#  110|                   if (fd < 0)
#  111|                           return -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
systemd-258/src/home/homed-manager-bus.c:1014:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(fn)’
systemd-258/src/home/homed-manager-bus.c:953:12: enter_function: entry to ‘method_add_signing_key’
systemd-258/src/home/homed-manager-bus.c:954:22: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:957:9: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:957:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:959:21: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:962:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:965:13: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:965:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:967:14: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:967:14: call_function: calling ‘valid_public_key_name’ from ‘method_add_signing_key’
systemd-258/src/home/homed-manager-bus.c:967:14: return_function: returning to ‘method_add_signing_key’ from ‘valid_public_key_name’
systemd-258/src/home/homed-manager-bus.c:967:12: branch_true: following ‘true’ branch...
systemd-258/src/home/homed-manager-bus.c:969:13: branch_true: ...to here
systemd-258/src/home/homed-manager-bus.c:969:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/home/homed-manager-bus.c:972:13: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:972:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:975:13: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:981:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:983:12: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:983:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:986:45: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:988:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:990:12: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:990:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:994:13: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:995:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:998:13: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:998:13: call_function: calling ‘manager_has_public_key’ from ‘method_add_signing_key’
systemd-258/src/home/homed-manager-bus.c:998:13: return_function: returning to ‘method_add_signing_key’ from ‘manager_has_public_key’
systemd-258/src/home/homed-manager-bus.c:998:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:1001:30: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:1003:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:1006:40: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:1006:40: acquire_memory: allocated here
systemd-258/src/home/homed-manager-bus.c:1007:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:1010:34: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:1011:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:1014:13: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:1015:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager-bus.c:1018:13: branch_false: ...to here
systemd-258/src/home/homed-manager-bus.c:1014:13: danger: ‘strdup(fn)’ leaks here; was allocated at [(40)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/39)
# 1012|                   return log_oom();
# 1013|   
# 1014|->         r = write_string_file(p, pem_reformatted, WRITE_STRING_FILE_CREATE|WRITE_STRING_FILE_ATOMIC|WRITE_STRING_FILE_MKDIR_0755|WRITE_STRING_FILE_MODE_0444);
# 1015|           if (r < 0)
# 1016|                   return log_error_errno(r, "Failed to write public key PEM to '%s': %m", p);

Error: CPPCHECK_WARNING (CWE-768): [#def457]
systemd-258/src/home/homed-manager.c:842: error[unknownEvaluationOrder]: Expression 'hr,_USER_STORAGE_INVALID,NULL,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  840|                           _USER_STORAGE_INVALID,
#  841|                           NULL,
#  842|->                         SD_ID128_NULL,
#  843|                           SD_ID128_NULL,
#  844|                           SD_ID128_NULL,

Error: CPPCHECK_WARNING (CWE-768): [#def458]
systemd-258/src/home/homed-manager.c:843: error[unknownEvaluationOrder]: Expression 'hr,_USER_STORAGE_INVALID,NULL,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  841|                           NULL,
#  842|                           SD_ID128_NULL,
#  843|->                         SD_ID128_NULL,
#  844|                           SD_ID128_NULL,
#  845|                           NULL,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
systemd-258/src/home/homed-operation.c:24:28: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258/src/home/homed-operation.c:11:12: enter_function: entry to ‘operation_new’
systemd-258/src/home/homed-operation.c:14:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-operation.c:15:9: branch_false: ...to here
systemd-258/src/home/homed-operation.c:15:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-operation.c:17:13: call_function: inlined call to ‘malloc_multiply’ from ‘operation_new’
systemd-258/src/home/homed-operation.c:18:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-operation.c:24:28: branch_false: ...to here
systemd-258/src/home/homed-operation.c:24:28: danger: ‘malloc(72)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   22|                   .type = type,
#   23|                   .n_ref = 1,
#   24|->                 .message = sd_bus_message_ref(m),
#   25|                   .send_fd = -EBADF,
#   26|                   .result = -1,

Error: CPPCHECK_WARNING (CWE-768): [#def460]
systemd-258/src/home/homework-cifs.c:241: error[unknownEvaluationOrder]: Expression 'new_home,USER_CIFS,NULL,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  239|                           USER_CIFS,
#  240|                           NULL,
#  241|->                         SD_ID128_NULL,
#  242|                           SD_ID128_NULL,
#  243|                           SD_ID128_NULL,

Error: CPPCHECK_WARNING (CWE-768): [#def461]
systemd-258/src/home/homework-cifs.c:242: error[unknownEvaluationOrder]: Expression 'new_home,USER_CIFS,NULL,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  240|                           NULL,
#  241|                           SD_ID128_NULL,
#  242|->                         SD_ID128_NULL,
#  243|                           SD_ID128_NULL,
#  244|                           NULL,

Error: CPPCHECK_WARNING (CWE-768): [#def462]
systemd-258/src/home/homework-directory.c:235: error[unknownEvaluationOrder]: Expression 'new_home,user_record_storage(h),ip,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  233|                           user_record_storage(h),
#  234|                           ip,
#  235|->                         SD_ID128_NULL,
#  236|                           SD_ID128_NULL,
#  237|                           SD_ID128_NULL,

Error: CPPCHECK_WARNING (CWE-768): [#def463]
systemd-258/src/home/homework-directory.c:236: error[unknownEvaluationOrder]: Expression 'new_home,user_record_storage(h),ip,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  234|                           ip,
#  235|                           SD_ID128_NULL,
#  236|->                         SD_ID128_NULL,
#  237|                           SD_ID128_NULL,
#  238|                           NULL,

Error: CPPCHECK_WARNING (CWE-768): [#def464]
systemd-258/src/home/homework-fscrypt.c:673: error[unknownEvaluationOrder]: Expression 'new_home,USER_FSCRYPT,ip,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  671|                           USER_FSCRYPT,
#  672|                           ip,
#  673|->                         SD_ID128_NULL,
#  674|                           SD_ID128_NULL,
#  675|                           SD_ID128_NULL,

Error: CPPCHECK_WARNING (CWE-768): [#def465]
systemd-258/src/home/homework-fscrypt.c:674: error[unknownEvaluationOrder]: Expression 'new_home,USER_FSCRYPT,ip,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  672|                           ip,
#  673|                           SD_ID128_NULL,
#  674|->                         SD_ID128_NULL,
#  675|                           SD_ID128_NULL,
#  676|                           NULL,

Error: CPPCHECK_WARNING (CWE-768): [#def466]
systemd-258/src/home/homework.c:1401: error[unknownEvaluationOrder]: Expression 'h,new_storage,NULL,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
# 1399|                                   new_storage,
# 1400|                                   NULL,
# 1401|->                                 SD_ID128_NULL,
# 1402|                                   SD_ID128_NULL,
# 1403|                                   SD_ID128_NULL,

Error: CPPCHECK_WARNING (CWE-768): [#def467]
systemd-258/src/home/homework.c:1402: error[unknownEvaluationOrder]: Expression 'h,new_storage,NULL,((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
# 1400|                                   NULL,
# 1401|                                   SD_ID128_NULL,
# 1402|->                                 SD_ID128_NULL,
# 1403|                                   SD_ID128_NULL,
# 1404|                                   NULL,

Error: COMPILER_WARNING: [#def468] [important]
systemd-258/src/home/homework.h:5:10: error[fatal error]: sys/keyctl.h: No such file or directory
#    3|   
#    4|   #include <linux/fscrypt.h>
#    5|-> #include <sys/keyctl.h>
#    6|   
#    7|   #include "sd-id128.h"

Error: CPPCHECK_WARNING (CWE-457): [#def469]
systemd-258/src/home/user-record-sign.c:110: error[uninitvar]: Uninitialized variable: e
#  108|                   sd_json_variant *data;
#  109|   
#  110|->                 if (!sd_json_variant_is_object(e))
#  111|                           return -EINVAL;
#  112|   

Error: CPPCHECK_WARNING (CWE-457): [#def470]
systemd-258/src/home/user-record-util.c:1075: error[uninitvar]: Uninitialized variable: k
# 1073|   
# 1074|           JSON_VARIANT_OBJECT_FOREACH(k, e, v)
# 1075|->                 if (!STR_IN_SET(k, "matchMachineId", "matchHostname"))
# 1076|                           return false;
# 1077|   

Error: CPPCHECK_WARNING (CWE-457): [#def471]
systemd-258/src/home/user-record-util.c:1106: error[uninitvar]: Uninitialized variable: e
# 1104|                           _cleanup_(sd_json_variant_unrefp) sd_json_variant *z = NULL;
# 1105|   
# 1106|->                         if (!sd_json_variant_is_object(e))
# 1107|                                   return -EINVAL;
# 1108|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
systemd-258/src/home/user-record-util.c:1573:22: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(filename)’
systemd-258/src/home/user-record-util.c:1517:9: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1518:9: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1518:9: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1519:9: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1519:9: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1520:9: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1520:9: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1529:13: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1529:12: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1545:9: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1545:9: branch_true: following ‘true’ branch...
systemd-258/src/home/user-record-util.c:1548:68: branch_true: ...to here
systemd-258/src/home/user-record-util.c:1554:32: acquire_memory: allocated here
systemd-258/src/home/user-record-util.c:1555:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1558:24: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1559:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1562:27: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1563:20: branch_false: following ‘false’ branch (when ‘initial >= 0’)...
systemd-258/src/home/user-record-util.c:1566:21: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1567:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1570:24: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1571:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1573:22: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1573:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1576:22: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1576:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1578:20: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1578:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1581:21: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1581:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1584:21: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1585:20: branch_false: following ‘false’ branch...
systemd-258/src/home/user-record-util.c:1588:21: branch_false: ...to here
systemd-258/src/home/user-record-util.c:1573:22: danger: ‘strdup(filename)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
# 1571|                   if (size < 0)
# 1572|                           return -errno;
# 1573|->                 if (!DEC_SAFE(&size, initial))
# 1574|                           return -EOVERFLOW;
# 1575|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def473]
systemd-258/src/import/curl-util.c:344:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/import/curl-util.c:327:12: branch_false: following ‘false’ branch (when ‘first’ is non-NULL)...
systemd-258/src/import/curl-util.c:330:13: branch_false: ...to here
systemd-258/src/import/curl-util.c:331:12: branch_false: following ‘false’ branch...
systemd-258/src/import/curl-util.c:334:9: branch_false: ...to here
systemd-258/src/import/curl-util.c:334:9: acquire_resource: ‘va_start’ called here
systemd-258/src/import/curl-util.c:341:20: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
systemd-258/src/import/curl-util.c:344:21: branch_false: ...to here
systemd-258/src/import/curl-util.c:344:21: danger: missing call to ‘va_end’ to match ‘va_start’ at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  342|                           break;
#  343|   
#  344|->                 n = curl_slist_append(l, i);
#  345|                   if (!n) {
#  346|                           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
systemd-258/src/import/import-tar.c:70:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/import/import-tar.c:89:5: enter_function: entry to ‘tar_import_new’
systemd-258/src/import/import-tar.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:101:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:101:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:103:16: branch_false: ...to here
systemd-258/src/import/import-tar.c:103:16: acquire_memory: allocated here
systemd-258/src/import/import-tar.c:104:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:107:13: call_function: inlined call to ‘malloc_multiply’ from ‘tar_import_new’
systemd-258/src/import/import-tar.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:111:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:121:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/import/import-tar.c:122:28: branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
 branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
#   68|                   return NULL;
#   69|   
#   70|->         sd_event_source_unref(i->input_event_source);
#   71|   
#   72|           if (i->tar_pid > 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
systemd-258/src/import/import-tar.c:70:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258/src/import/import-tar.c:89:5: enter_function: entry to ‘tar_import_new’
systemd-258/src/import/import-tar.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:101:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:101:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:103:16: branch_false: ...to here
systemd-258/src/import/import-tar.c:104:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:107:13: call_function: inlined call to ‘malloc_multiply’ from ‘tar_import_new’
systemd-258/src/import/import-tar.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:111:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:121:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/import/import-tar.c:122:28: branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
 branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
#   68|                   return NULL;
#   69|   
#   70|->         sd_event_source_unref(i->input_event_source);
#   71|   
#   72|           if (i->tar_pid > 1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
systemd-258/src/import/import-tar.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/import/import-tar.c:89:5: enter_function: entry to ‘tar_import_new’
systemd-258/src/import/import-tar.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:101:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:101:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:103:16: branch_false: ...to here
systemd-258/src/import/import-tar.c:103:16: acquire_memory: allocated here
systemd-258/src/import/import-tar.c:104:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:107:13: call_function: inlined call to ‘malloc_multiply’ from ‘tar_import_new’
systemd-258/src/import/import-tar.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:111:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:121:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/import/import-tar.c:122:28: branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
 branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
#   73|                   sigkill_wait(i->tar_pid);
#   74|   
#   75|->         rm_rf_subvolume_and_free(i->temp_path);
#   76|   
#   77|           import_compress_free(&i->compress);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
systemd-258/src/import/import-tar.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258/src/import/import-tar.c:89:5: enter_function: entry to ‘tar_import_new’
systemd-258/src/import/import-tar.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:101:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:101:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:103:16: branch_false: ...to here
systemd-258/src/import/import-tar.c:104:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:107:13: call_function: inlined call to ‘malloc_multiply’ from ‘tar_import_new’
systemd-258/src/import/import-tar.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:111:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:121:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/import/import-tar.c:122:28: branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
 branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
#   73|                   sigkill_wait(i->tar_pid);
#   74|   
#   75|->         rm_rf_subvolume_and_free(i->temp_path);
#   76|   
#   77|           import_compress_free(&i->compress);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
systemd-258/src/import/import-tar.c:77:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/import/import-tar.c:89:5: enter_function: entry to ‘tar_import_new’
systemd-258/src/import/import-tar.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:101:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:101:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:103:16: branch_false: ...to here
systemd-258/src/import/import-tar.c:103:16: acquire_memory: allocated here
systemd-258/src/import/import-tar.c:104:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:107:13: call_function: inlined call to ‘malloc_multiply’ from ‘tar_import_new’
systemd-258/src/import/import-tar.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:111:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:121:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/import/import-tar.c:122:28: branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
 branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
#   75|           rm_rf_subvolume_and_free(i->temp_path);
#   76|   
#   77|->         import_compress_free(&i->compress);
#   78|   
#   79|           sd_event_unref(i->event);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
systemd-258/src/import/import-tar.c:77:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258/src/import/import-tar.c:89:5: enter_function: entry to ‘tar_import_new’
systemd-258/src/import/import-tar.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:101:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:101:9: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:103:16: branch_false: ...to here
systemd-258/src/import/import-tar.c:104:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:107:13: call_function: inlined call to ‘malloc_multiply’ from ‘tar_import_new’
systemd-258/src/import/import-tar.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/import/import-tar.c:111:9: branch_false: ...to here
systemd-258/src/import/import-tar.c:121:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/import/import-tar.c:122:28: branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
 branch_true: ...to here
systemd-258/src/import/import-tar.c:96:49: call_function: inlined call to ‘tar_import_unrefp’ from ‘tar_import_new’
#   75|           rm_rf_subvolume_and_free(i->temp_path);
#   76|   
#   77|->         import_compress_free(&i->compress);
#   78|   
#   79|           sd_event_unref(i->event);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def480]
systemd-258/src/import/pull-job.c:27:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*j.close_disk_fd’
systemd-258/src/import/pull-job.c:640:5: enter_function: entry to ‘pull_job_new’
systemd-258/src/import/pull-job.c:649:9: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:650:9: branch_false: ...to here
systemd-258/src/import/pull-job.c:650:9: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:651:9: branch_false: ...to here
systemd-258/src/import/pull-job.c:651:9: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:653:13: branch_false: ...to here
systemd-258/src/import/pull-job.c:654:12: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:657:13: call_function: inlined call to ‘malloc_multiply’ from ‘pull_job_new’
systemd-258/src/import/pull-job.c:658:12: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:668:31: branch_false: ...to here
systemd-258/src/import/pull-job.c:646:45: call_function: inlined call to ‘pull_job_unrefp’ from ‘pull_job_new’
 branch_true: ...to here
systemd-258/src/import/pull-job.c:646:45: call_function: inlined call to ‘pull_job_unrefp’ from ‘pull_job_new’
#   25|                   return;
#   26|   
#   27|->         if (j->close_disk_fd)
#   28|                   safe_close(j->disk_fd);
#   29|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
systemd-258/src/import/pull-job.c:668:31: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(url)’
systemd-258/src/import/pull-job.c:640:5: enter_function: entry to ‘pull_job_new’
systemd-258/src/import/pull-job.c:649:9: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:650:9: branch_false: ...to here
systemd-258/src/import/pull-job.c:650:9: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:651:9: branch_false: ...to here
systemd-258/src/import/pull-job.c:651:9: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:653:13: branch_false: ...to here
systemd-258/src/import/pull-job.c:653:13: acquire_memory: allocated here
systemd-258/src/import/pull-job.c:654:12: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:657:13: call_function: inlined call to ‘malloc_multiply’ from ‘pull_job_new’
systemd-258/src/import/pull-job.c:658:12: branch_false: following ‘false’ branch...
systemd-258/src/import/pull-job.c:668:31: branch_false: ...to here
systemd-258/src/import/pull-job.c:668:31: danger: ‘strdup(url)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#  666|                   .glue = glue,
#  667|                   .content_length = UINT64_MAX,
#  668|->                 .start_usec = now(CLOCK_MONOTONIC),
#  669|                   .compressed_max = 64LLU * 1024LLU * 1024LLU * 1024LLU, /* 64GB safety limit */
#  670|                   .uncompressed_max = 64LLU * 1024LLU * 1024LLU * 1024LLU, /* 64GB safety limit */

Error: COMPILER_WARNING (CWE-9001): [#def482]
systemd-258/src/import/pull-job.c: scope_hint: In function ‘pull_job_begin’
systemd-258/src/import/pull-job.c:742:13: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
#  742 |         if (curl_easy_setopt(j->curl, CURLOPT_NOPROGRESS, 0) != CURLE_OK)
#      |             ^
#  740|                   return -EIO;
#  741|   
#  742|->         if (curl_easy_setopt(j->curl, CURLOPT_NOPROGRESS, 0) != CURLE_OK)
#  743|                   return -EIO;
#  744|   

Error: CPPCHECK_WARNING (CWE-401): [#def483]
systemd-258/src/import/qcow2-util.c:256: error[memleak]: Memory leak: l2_table
#  254|           buffer1 = malloc(HEADER_CLUSTER_SIZE(&header));
#  255|           if (!buffer1)
#  256|->                 return -ENOMEM;
#  257|   
#  258|           buffer2 = malloc(HEADER_CLUSTER_SIZE(&header));

Error: CPPCHECK_WARNING (CWE-401): [#def484]
systemd-258/src/import/qcow2-util.c:260: error[memleak]: Memory leak: buffer1
#  258|           buffer2 = malloc(HEADER_CLUSTER_SIZE(&header));
#  259|           if (!buffer2)
#  260|->                 return -ENOMEM;
#  261|   
#  262|           /* Empty the file if it exists, we rely on zero bits */

Error: CPPCHECK_WARNING (CWE-401): [#def485]
systemd-258/src/import/qcow2-util.c:260: error[memleak]: Memory leak: l2_table
#  258|           buffer2 = malloc(HEADER_CLUSTER_SIZE(&header));
#  259|           if (!buffer2)
#  260|->                 return -ENOMEM;
#  261|   
#  262|           /* Empty the file if it exists, we rely on zero bits */

Error: CPPCHECK_WARNING (CWE-401): [#def486]
systemd-258/src/import/qcow2-util.c:264: error[memleak]: Memory leak: buffer1
#  262|           /* Empty the file if it exists, we rely on zero bits */
#  263|           if (ftruncate(raw_fd, 0) < 0)
#  264|->                 return -errno;
#  265|   
#  266|           if (ftruncate(raw_fd, HEADER_SIZE(&header)) < 0)

Error: CPPCHECK_WARNING (CWE-401): [#def487]
systemd-258/src/import/qcow2-util.c:264: error[memleak]: Memory leak: buffer2
#  262|           /* Empty the file if it exists, we rely on zero bits */
#  263|           if (ftruncate(raw_fd, 0) < 0)
#  264|->                 return -errno;
#  265|   
#  266|           if (ftruncate(raw_fd, HEADER_SIZE(&header)) < 0)

Error: CPPCHECK_WARNING (CWE-401): [#def488]
systemd-258/src/import/qcow2-util.c:264: error[memleak]: Memory leak: l2_table
#  262|           /* Empty the file if it exists, we rely on zero bits */
#  263|           if (ftruncate(raw_fd, 0) < 0)
#  264|->                 return -errno;
#  265|   
#  266|           if (ftruncate(raw_fd, HEADER_SIZE(&header)) < 0)

Error: CPPCHECK_WARNING (CWE-401): [#def489]
systemd-258/src/import/qcow2-util.c:267: error[memleak]: Memory leak: buffer1
#  265|   
#  266|           if (ftruncate(raw_fd, HEADER_SIZE(&header)) < 0)
#  267|->                 return -errno;
#  268|   
#  269|           sz = sizeof(uint64_t) * HEADER_L1_SIZE(&header);

Error: CPPCHECK_WARNING (CWE-401): [#def490]
systemd-258/src/import/qcow2-util.c:267: error[memleak]: Memory leak: buffer2
#  265|   
#  266|           if (ftruncate(raw_fd, HEADER_SIZE(&header)) < 0)
#  267|->                 return -errno;
#  268|   
#  269|           sz = sizeof(uint64_t) * HEADER_L1_SIZE(&header);

Error: CPPCHECK_WARNING (CWE-401): [#def491]
systemd-258/src/import/qcow2-util.c:267: error[memleak]: Memory leak: l2_table
#  265|   
#  266|           if (ftruncate(raw_fd, HEADER_SIZE(&header)) < 0)
#  267|->                 return -errno;
#  268|   
#  269|           sz = sizeof(uint64_t) * HEADER_L1_SIZE(&header);

Error: CPPCHECK_WARNING (CWE-401): [#def492]
systemd-258/src/import/qcow2-util.c:272: error[memleak]: Memory leak: buffer1
#  270|           l = pread(qcow2_fd, l1_table, sz, HEADER_L1_TABLE_OFFSET(&header));
#  271|           if (l < 0)
#  272|->                 return -errno;
#  273|           if ((uint64_t) l != sz)
#  274|                   return -EIO;

Error: CPPCHECK_WARNING (CWE-401): [#def493]
systemd-258/src/import/qcow2-util.c:272: error[memleak]: Memory leak: buffer2
#  270|           l = pread(qcow2_fd, l1_table, sz, HEADER_L1_TABLE_OFFSET(&header));
#  271|           if (l < 0)
#  272|->                 return -errno;
#  273|           if ((uint64_t) l != sz)
#  274|                   return -EIO;

Error: CPPCHECK_WARNING (CWE-401): [#def494]
systemd-258/src/import/qcow2-util.c:272: error[memleak]: Memory leak: l2_table
#  270|           l = pread(qcow2_fd, l1_table, sz, HEADER_L1_TABLE_OFFSET(&header));
#  271|           if (l < 0)
#  272|->                 return -errno;
#  273|           if ((uint64_t) l != sz)
#  274|                   return -EIO;

Error: CPPCHECK_WARNING (CWE-401): [#def495]
systemd-258/src/import/qcow2-util.c:274: error[memleak]: Memory leak: buffer1
#  272|                   return -errno;
#  273|           if ((uint64_t) l != sz)
#  274|->                 return -EIO;
#  275|   
#  276|           for (i = 0; i < HEADER_L1_SIZE(&header); i++) {

Error: CPPCHECK_WARNING (CWE-401): [#def496]
systemd-258/src/import/qcow2-util.c:274: error[memleak]: Memory leak: buffer2
#  272|                   return -errno;
#  273|           if ((uint64_t) l != sz)
#  274|->                 return -EIO;
#  275|   
#  276|           for (i = 0; i < HEADER_L1_SIZE(&header); i++) {

Error: CPPCHECK_WARNING (CWE-401): [#def497]
systemd-258/src/import/qcow2-util.c:274: error[memleak]: Memory leak: l2_table
#  272|                   return -errno;
#  273|           if ((uint64_t) l != sz)
#  274|->                 return -EIO;
#  275|   
#  276|           for (i = 0; i < HEADER_L1_SIZE(&header); i++) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def498]
systemd-258/src/journal-remote/journal-remote-main.c:105:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*d.io_event’
systemd-258/src/journal-remote/journal-remote-main.c:462:12: enter_function: entry to ‘setup_microhttpd_server’
systemd-258/src/journal-remote/journal-remote-main.c:490:9: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:492:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:493:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:510:12: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:525:13: call_function: inlined call to ‘malloc_multiply’ from ‘setup_microhttpd_server’
systemd-258/src/journal-remote/journal-remote-main.c:526:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:529:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:486:61: call_function: inlined call to ‘MHDDaemonWrapper_freep’ from ‘setup_microhttpd_server’
#  103|                   return NULL;
#  104|   
#  105|->         d->io_event = sd_event_source_unref(d->io_event);
#  106|           d->timer_event = sd_event_source_unref(d->timer_event);
#  107|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def499]
systemd-258/src/journal-remote/journal-remote-main.c:134:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<Ueed8>[1]’
systemd-258/src/journal-remote/journal-remote-main.c:651:12: enter_function: entry to ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:711:17: branch_true: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:712:22: call_function: calling ‘spawn_getter’ from ‘create_remoteserver’
#  132|                   return log_error_errno(errno, "Failed to create pager pipe: %m");
#  133|   
#  134|->         r = safe_fork_full("(remote)",
#  135|                              (int[]) {STDIN_FILENO, fd[1], STDERR_FILENO },
#  136|                              NULL, 0,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def500]
systemd-258/src/journal-remote/journal-remote-main.c:134:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
systemd-258/src/journal-remote/journal-remote-main.c:651:12: enter_function: entry to ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:711:17: branch_true: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:712:22: call_function: calling ‘spawn_getter’ from ‘create_remoteserver’
#  132|                   return log_error_errno(errno, "Failed to create pager pipe: %m");
#  133|   
#  134|->         r = safe_fork_full("(remote)",
#  135|                              (int[]) {STDIN_FILENO, fd[1], STDERR_FILENO },
#  136|                              NULL, 0,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def501]
systemd-258/src/journal-remote/journal-remote-main.c:134:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[1]’
systemd-258/src/journal-remote/journal-remote-main.c:651:12: enter_function: entry to ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:721:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:721:12: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:724:22: branch_true: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:724:20: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:730:31: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:730:31: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:730:31: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:730:31: call_function: calling ‘memcpy_safe’ from ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:730:31: return_function: returning to ‘create_remoteserver’ from ‘memcpy_safe’
systemd-258/src/journal-remote/journal-remote-main.c:732:17: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:733:22: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:733:22: call_function: calling ‘spawn_curl’ from ‘create_remoteserver’
#  132|                   return log_error_errno(errno, "Failed to create pager pipe: %m");
#  133|   
#  134|->         r = safe_fork_full("(remote)",
#  135|                              (int[]) {STDIN_FILENO, fd[1], STDERR_FILENO },
#  136|                              NULL, 0,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def502]
systemd-258/src/journal-remote/journal-remote-main.c:139:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
systemd-258/src/journal-remote/journal-remote-main.c:651:12: enter_function: entry to ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:711:17: branch_true: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:712:22: call_function: calling ‘spawn_getter’ from ‘create_remoteserver’
#  137|                              FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REARRANGE_STDIO|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE, &child_pid);
#  138|           if (r < 0) {
#  139|->                 safe_close_pair(fd);
#  140|                   return r;
#  141|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def503]
systemd-258/src/journal-remote/journal-remote-main.c:146:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
systemd-258/src/journal-remote/journal-remote-main.c:651:12: enter_function: entry to ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:711:17: branch_true: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:712:22: call_function: calling ‘spawn_getter’ from ‘create_remoteserver’
#  144|           if (r == 0) {
#  145|                   execvp(child, argv);
#  146|->                 log_error_errno(errno, "Failed to exec child %s: %m", child);
#  147|                   _exit(EXIT_FAILURE);
#  148|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def504]
systemd-258/src/journal-remote/journal-remote-main.c:150:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
systemd-258/src/journal-remote/journal-remote-main.c:651:12: enter_function: entry to ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:711:17: branch_true: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:712:22: call_function: calling ‘spawn_getter’ from ‘create_remoteserver’
#  148|           }
#  149|   
#  150|->         safe_close(fd[1]);
#  151|   
#  152|           r = fd_nonblock(fd[0], true);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def505]
systemd-258/src/journal-remote/journal-remote-main.c:152:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd[0]’
systemd-258/src/journal-remote/journal-remote-main.c:651:12: enter_function: entry to ‘create_remoteserver’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:711:17: branch_true: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:712:22: call_function: calling ‘spawn_getter’ from ‘create_remoteserver’
#  150|           safe_close(fd[1]);
#  151|   
#  152|->         r = fd_nonblock(fd[0], true);
#  153|           if (r < 0)
#  154|                   log_warning_errno(r, "Failed to set child pipe to non-blocking: %m");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def506]
systemd-258/src/journal-remote/journal-remote-main.c:784:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
systemd-258/src/journal-remote/journal-remote-main.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:668:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:669:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:672:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:673:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:676:17: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:678:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:710:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:721:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:721:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:748:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:755:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:761:13: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:761:12: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:767:9: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:767:9: branch_true: following ‘true’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:770:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/journal-remote/journal-remote-main.c:776:25: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:778:30: acquire_resource: opened here
systemd-258/src/journal-remote/journal-remote-main.c:779:28: branch_false: following ‘false’ branch...
systemd-258/src/journal-remote/journal-remote-main.c:781:25: branch_false: ...to here
systemd-258/src/journal-remote/journal-remote-main.c:784:21: danger: ‘fd’ leaks here; was opened at [(21)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/20)
#  782|                   }
#  783|   
#  784|->                 r = journal_remote_add_source(s, fd, (char*) output_name, false);
#  785|                   if (r < 0)
#  786|                           return r;

Error: COMPILER_WARNING (CWE-9001): [#def507]
systemd-258/src/journal-remote/journal-upload.c: scope_hint: In function ‘start_upload’
systemd-258/src/journal-remote/journal-upload.c:311:25: warning[-Wattribute-warning]: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument
#  311 |                         easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0,
#      |                         ^
#  309|   
#  310|                   if (STRPTR_IN_SET(arg_trust, "-", "all"))
#  311|->                         easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0,
#  312|                                       LOG_ERR, return -EUCLEAN);
#  313|                   else if (arg_trust || startswith(u->url, "https://"))

Error: COMPILER_WARNING: [#def508] [important]
systemd-258/src/journal/journalctl-filter.c:267:73: error[error]: ‘TASK_COMM_LEN’ undeclared (first use in this function)
#  265|                           return log_error_errno(r, "Failed to extract filename of '%s': %m", path);
#  266|   
#  267|->                 r = journal_add_match_pair(j, "_COMM", strshorten(comm, TASK_COMM_LEN-1));
#  268|                   if (r < 0)
#  269|                           return log_error_errno(r, "Failed to add match: %m");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
systemd-258/src/journal/journalctl-util.c:171:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(data,  size)’
systemd-258/src/journal/journalctl-util.c:140:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journalctl-util.c:141:9: branch_false: ...to here
systemd-258/src/journal/journalctl-util.c:141:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journalctl-util.c:142:9: branch_false: ...to here
systemd-258/src/journal/journalctl-util.c:142:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/journal/journalctl-util.c:144:9: branch_true: following ‘true’ branch...
systemd-258/src/journal/journalctl-util.c:145:29: branch_true: ...to here
systemd-258/src/journal/journalctl-util.c:149:20: branch_false: following ‘false’ branch...
systemd-258/src/journal/journalctl-util.c:152:17: branch_false: ...to here
systemd-258/src/journal/journalctl-util.c:152:17: branch_true: following ‘true’ branch...
systemd-258/src/journal/journalctl-util.c:156:30: branch_true: ...to here
systemd-258/src/journal/journalctl-util.c:162:29: acquire_memory: allocated here
systemd-258/src/journal/journalctl-util.c:163:28: branch_false: following ‘false’ branch...
systemd-258/src/journal/journalctl-util.c:166:32: branch_false: ...to here
systemd-258/src/journal/journalctl-util.c:170:25: branch_false: following ‘false’ branch...
systemd-258/src/journal/journalctl-util.c:171:29: branch_false: ...to here
systemd-258/src/journal/journalctl-util.c:171:29: danger: ‘strndup(data,  size)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  169|   
#  170|                           log_debug("Matched %s with pattern %s=%s", u, field, patterns[i]);
#  171|->                         r = set_ensure_consume(&found, &string_hash_ops_free, TAKE_PTR(u));
#  172|                           if (r < 0)
#  173|                                   return r;

Error: CPPCHECK_WARNING (CWE-628): [#def510]
systemd-258/src/journal/journald-client.c:84: error[invalidFunctionArg]: Invalid memchr() argument nr 2. The value is -1 but the valid values are '0:'.
#   82|            * We do not expect both the allow list and deny list to be empty, as this condition is tested
#   83|            * before writing to xattr. */
#   84|->         const char *deny_list_xattr = memchr(xattr, (char)0xff, xattr_size);
#   85|           if (!deny_list_xattr)
#   86|                   return log_debug_errno(SYNTHETIC_ERRNO(EBADMSG),

Error: COMPILER_WARNING: [#def511] [important]
systemd-258/src/journal/journald-manager.c:1536:14: error[error]: ‘MAX_AUDIT_MESSAGE_LENGTH’ undeclared (first use in this function)
# 1534|   
# 1535|           /* Fix it up, if it is too small. We use the same fixed value as auditd here. Awful! */
# 1536|->         mm = PAGE_ALIGN(MAX3((size_t) v + 1,
# 1537|                               (size_t) LINE_MAX,
# 1538|                               ALIGN(sizeof(struct nlmsghdr)) + ALIGN((size_t) MAX_AUDIT_MESSAGE_LENGTH)) + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def512]
systemd-258/src/journal/journald-native.c:227:29: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/journal/journald-native.c:302:6: enter_function: entry to ‘manager_process_native_message’
systemd-258/src/journal/journald-native.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-native.c:314:9: branch_false: ...to here
systemd-258/src/journal/journald-native.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-native.c:316:12: branch_false: ...to here
systemd-258/src/journal/journald-native.c:325:21: call_function: calling ‘manager_process_entry’ from ‘manager_process_native_message’
#  225|                           memcpy(k + (e - p) + 1, e + 1 + sizeof(uint64_t), l);
#  226|   
#  227|->                         if (journal_field_valid(p, e - p, false)) {
#  228|                                   iovec[n] = IOVEC_MAKE(k, (e - p) + 1 + l);
#  229|                                   entry_size += iovec[n].iov_len;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def513]
systemd-258/src/journal/journald-stream.c:912:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*m.stdout_fd’
systemd-258/src/journal/journald-stream.c:888:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-stream.c:889:9: branch_false: ...to here
systemd-258/src/journal/journald-stream.c:889:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-stream.c:891:13: branch_false: ...to here
systemd-258/src/journal/journald-stream.c:891:12: branch_true: following ‘true’ branch...
systemd-258/src/journal/journald-stream.c:892:38: branch_true: ...to here
systemd-258/src/journal/journald-stream.c:896:20: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-stream.c:898:17: branch_false: ...to here
systemd-258/src/journal/journald-stream.c:901:20: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-stream.c:904:24: branch_false: ...to here
systemd-258/src/journal/journald-stream.c:907:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/journal/journald-stream.c:910:24: branch_false: ...to here
systemd-258/src/journal/journald-stream.c:912:20: danger: ‘*m.stdout_fd’ leaks here
#  910|                   (void) chmod(sa.un.sun_path, 0666);
#  911|   
#  912|->                 if (listen(m->stdout_fd, SOMAXCONN_DELUXE) < 0)
#  913|                           return log_error_errno(errno, "listen(%s) failed: %m", sa.un.sun_path);
#  914|           } else

Error: GCC_ANALYZER_WARNING (CWE-416): [#def514]
systemd-258/src/journal/journald-sync.c:24:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘ssr’
systemd-258/src/journal/journald-sync.c:190:5: enter_function: entry to ‘sync_req_new’
systemd-258/src/journal/journald-sync.c:193:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-sync.c:194:9: branch_false: ...to here
systemd-258/src/journal/journald-sync.c:194:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-sync.c:195:9: branch_false: ...to here
systemd-258/src/journal/journald-sync.c:195:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-sync.c:197:50: call_function: inlined call to ‘malloc_multiply’ from ‘sync_req_new’
systemd-258/src/journal/journald-sync.c:198:12: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-sync.c:203:25: branch_false: ...to here
systemd-258/src/journal/journald-sync.c:248:20: branch_true: following ‘true’ branch...
systemd-258/src/journal/journald-sync.c:197:44: call_function: inlined call to ‘sync_req_freep’ from ‘sync_req_new’
#   22|                   return NULL;
#   23|   
#   24|->         if (ssr->req)
#   25|                   LIST_REMOVE(by_sync_req, ssr->req->stream_sync_reqs, ssr);
#   26|           if (ssr->stream)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
systemd-258/src/journal/journald-syslog.c:474:1: warning[-Wanalyzer-malloc-leak]: leak of ‘identifier’
systemd-258/src/journal/journald-syslog.c:325:6: enter_function: entry to ‘manager_process_syslog_message’
systemd-258/src/journal/journald-syslog.c:345:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-syslog.c:346:9: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:346:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-syslog.c:348:9: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:348:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-syslog.c:351:9: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:351:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-syslog.c:353:12: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:363:27: branch_true: following ‘true’ branch (when ‘i != 0’)...
systemd-258/src/journal/journald-syslog.c:364:45: branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:364:20: branch_true: following ‘true’ branch...
systemd-258/src/journal/journald-syslog.c:367:22: branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:372:17: branch_true: following ‘true’ branch (when ‘i == raw_len’)...
systemd-258/src/journal/journald-syslog.c:374:23: branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:392:14: call_function: inlined call to ‘client_context_test_priority’ from ‘manager_process_syslog_message’
systemd-258/src/journal/journald-syslog.c:395:9: branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:396:25: call_function: calling ‘syslog_skip_timestamp’ from ‘manager_process_syslog_message’
systemd-258/src/journal/journald-syslog.c:396:25: return_function: returning to ‘manager_process_syslog_message’ from ‘syslog_skip_timestamp’
systemd-258/src/journal/journald-syslog.c:397:12: branch_false: following ‘false’ branch (when ‘syslog_ts_len != 0’)...
systemd-258/src/journal/journald-syslog.c:401:9: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:401:9: call_function: calling ‘syslog_parse_identifier’ from ‘manager_process_syslog_message’
systemd-258/src/journal/journald-syslog.c:401:9: return_function: returning to ‘manager_process_syslog_message’ from ‘syslog_parse_identifier’
systemd-258/src/journal/journald-syslog.c:403:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:474:1: danger: ‘identifier’ leaks here; was allocated at [(51)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/50)
#  472|   
#  473|           manager_dispatch_message(m, iovec, n, mm, context, tv, priority, 0);
#  474|-> }
#  475|   
#  476|   int manager_open_syslog_socket(Manager *m, const char *syslog_socket) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
systemd-258/src/journal/journald-syslog.c:474:1: warning[-Wanalyzer-malloc-leak]: leak of ‘pid’
systemd-258/src/journal/journald-syslog.c:325:6: enter_function: entry to ‘manager_process_syslog_message’
systemd-258/src/journal/journald-syslog.c:345:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-syslog.c:346:9: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:346:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-syslog.c:348:9: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:348:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-syslog.c:351:9: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:351:9: branch_false: following ‘false’ branch...
systemd-258/src/journal/journald-syslog.c:353:12: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:363:27: branch_true: following ‘true’ branch (when ‘i != 0’)...
systemd-258/src/journal/journald-syslog.c:364:45: branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:364:20: branch_true: following ‘true’ branch...
systemd-258/src/journal/journald-syslog.c:367:22: branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:372:17: branch_true: following ‘true’ branch (when ‘i == raw_len’)...
systemd-258/src/journal/journald-syslog.c:374:23: branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:392:14: call_function: inlined call to ‘client_context_test_priority’ from ‘manager_process_syslog_message’
systemd-258/src/journal/journald-syslog.c:395:9: branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:396:25: call_function: calling ‘syslog_skip_timestamp’ from ‘manager_process_syslog_message’
systemd-258/src/journal/journald-syslog.c:396:25: return_function: returning to ‘manager_process_syslog_message’ from ‘syslog_skip_timestamp’
systemd-258/src/journal/journald-syslog.c:397:12: branch_false: following ‘false’ branch (when ‘syslog_ts_len != 0’)...
systemd-258/src/journal/journald-syslog.c:401:9: branch_false: ...to here
systemd-258/src/journal/journald-syslog.c:401:9: call_function: calling ‘syslog_parse_identifier’ from ‘manager_process_syslog_message’
systemd-258/src/journal/journald-syslog.c:401:9: return_function: returning to ‘manager_process_syslog_message’ from ‘syslog_parse_identifier’
systemd-258/src/journal/journald-syslog.c:403:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/journal/journald-syslog.c:474:1: danger: ‘pid’ leaks here; was allocated at [(55)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/54)
#  472|   
#  473|           manager_dispatch_message(m, iovec, n, mm, context, tv, priority, 0);
#  474|-> }
#  475|   
#  476|   int manager_open_syslog_socket(Manager *m, const char *syslog_socket) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
systemd-258/src/kernel-install/kernel-install.c:301:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258/src/kernel-install/kernel-install.c:1086:12: enter_function: entry to ‘do_add’
systemd-258/src/kernel-install/kernel-install.c:1094:9: branch_false: following ‘false’ branch...
systemd-258/src/kernel-install/kernel-install.c:1095:9: branch_false: ...to here
systemd-258/src/kernel-install/kernel-install.c:1095:9: branch_false: following ‘false’ branch...
systemd-258/src/kernel-install/kernel-install.c:1096:9: branch_false: ...to here
systemd-258/src/kernel-install/kernel-install.c:1096:9: branch_false: following ‘false’ branch...
systemd-258/src/kernel-install/kernel-install.c:1098:13: branch_false: ...to here
systemd-258/src/kernel-install/kernel-install.c:1098:13: call_function: calling ‘context_set_version’ from ‘do_add’
#  299|                   return log_oom();
#  300|   
#  301|->         log_debug("%s (%s) set via %s.", name, p, source);
#  302|   
#  303|           *dest = p;

Error: COMPILER_WARNING: [#def518] [important]
systemd-258/src/libc/bpf.c:3:10: error[fatal error]: sys/bpf.h: No such file or directory
#    1|   /* SPDX-License-Identifier: LGPL-2.1-or-later */
#    2|   
#    3|-> #include <sys/bpf.h>
#    4|   #include <sys/syscall.h>
#    5|   #include <unistd.h>

Error: COMPILER_WARNING: [#def519] [important]
systemd-258/src/libc/ioprio.c:3:10: error[fatal error]: sys/ioprio.h: No such file or directory
#    1|   /* SPDX-License-Identifier: LGPL-2.1-or-later */
#    2|   
#    3|-> #include <sys/ioprio.h>
#    4|   #include <sys/syscall.h>
#    5|   #include <unistd.h>

Error: COMPILER_WARNING: [#def520] [important]
systemd-258/src/libc/kcmp.c:3:10: error[fatal error]: sys/kcmp.h: No such file or directory
#    1|   /* SPDX-License-Identifier: LGPL-2.1-or-later */
#    2|   
#    3|-> #include <sys/kcmp.h>
#    4|   #include <sys/syscall.h>
#    5|   #include <unistd.h>

Error: COMPILER_WARNING: [#def521] [important]
systemd-258/src/libc/keyctl.c:3:10: error[fatal error]: sys/keyctl.h: No such file or directory
#    1|   /* SPDX-License-Identifier: LGPL-2.1-or-later */
#    2|   
#    3|-> #include <sys/keyctl.h>
#    4|   #include <sys/syscall.h>
#    5|   #include <unistd.h>

Error: COMPILER_WARNING: [#def522] [important]
systemd-258/src/libc/mempolicy.c:3:10: error[fatal error]: sys/mempolicy.h: No such file or directory
#    1|   /* SPDX-License-Identifier: LGPL-2.1-or-later */
#    2|   
#    3|-> #include <sys/mempolicy.h>
#    4|   #include <sys/syscall.h>
#    5|   #include <unistd.h>

Error: COMPILER_WARNING: [#def523]
systemd-258/src/libc/xattr.c:8:95: warning[warning]: ‘struct xattr_args’ declared inside parameter list will not be visible outside of this definition or declaration
#    6|   
#    7|   #if !HAVE_SETXATTRAT
#    8|-> int missing_setxattrat(int fd, const char *path, int at_flags, const char *name, const struct xattr_args *args, size_t size) {
#    9|           return syscall(__NR_setxattrat, fd, path, at_flags, name, args, size);
#   10|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
systemd-258/src/libsystemd-network/dhcp6-option.h:71:1: warning[-Wanalyzer-malloc-leak]: leak of ‘ia’
systemd-258/src/libsystemd-network/dhcp6-option.c:683:5: enter_function: entry to ‘dhcp6_option_parse_ia’
systemd-258/src/libsystemd-network/dhcp6-option.c:697:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/dhcp6-option.c:698:9: branch_false: ...to here
systemd-258/src/libsystemd-network/dhcp6-option.c:698:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/dhcp6-option.c:708:9: branch_false: ...to here
systemd-258/src/libsystemd-network/dhcp6-option.c:722:12: branch_false: following ‘false’ branch (when ‘header_len <= option_data_len’)...
systemd-258/src/libsystemd-network/dhcp6-option.c:725:14: call_function: inlined call to ‘malloc_multiply’ from ‘dhcp6_option_parse_ia’
systemd-258/src/libsystemd-network/dhcp6-option.c:726:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/dhcp6-option.c:729:9: branch_false: ...to here
systemd-258/src/libsystemd-network/dhcp6-option.c:736:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/dhcp6-option.c:742:17: branch_false: ...to here
systemd-258/src/libsystemd-network/dhcp6-option.c:691:44: call_function: calling ‘dhcp6_ia_freep’ from ‘dhcp6_option_parse_ia’
#   69|   void dhcp6_ia_clear_addresses(DHCP6IA *ia);
#   70|   DHCP6IA *dhcp6_ia_free(DHCP6IA *ia);
#   71|-> DEFINE_TRIVIAL_CLEANUP_FUNC(DHCP6IA*, dhcp6_ia_free);
#   72|   
#   73|   bool dhcp6_option_can_request(uint16_t option);

Error: COMPILER_WARNING: [#def525] [important]
systemd-258/src/libsystemd-network/icmp6-util.c:29:26: error[error]: ‘struct ipv6_mreq’ has no member named ‘ipv6mr_ifindex’
#   27|                   mreq = (struct ipv6_mreq) {
#   28|                           .ipv6mr_multiaddr = IN6_ADDR_ALL_ROUTERS_MULTICAST,
#   29|->                         .ipv6mr_ifindex = ifindex,
#   30|                   };
#   31|                   ICMP6_FILTER_SETPASS(ND_ROUTER_SOLICIT, &filter);

Error: COMPILER_WARNING: [#def526] [important]
systemd-258/src/libsystemd-network/icmp6-util.c:35:26: error[error]: ‘struct ipv6_mreq’ has no member named ‘ipv6mr_ifindex’
#   33|                   mreq = (struct ipv6_mreq) {
#   34|                           .ipv6mr_multiaddr = IN6_ADDR_ALL_NODES_MULTICAST,
#   35|->                         .ipv6mr_ifindex = ifindex,
#   36|                   };
#   37|                   ICMP6_FILTER_SETPASS(ND_ROUTER_ADVERT, &filter);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
systemd-258/src/libsystemd-network/lldp-neighbor.c:421:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(18)’
systemd-258/src/libsystemd-network/lldp-neighbor.c:406:12: enter_function: entry to ‘format_mac_address’
systemd-258/src/libsystemd-network/lldp-neighbor.c:410:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/lldp-neighbor.c:412:12: branch_false: ...to here
systemd-258/src/libsystemd-network/lldp-neighbor.c:412:12: branch_false: following ‘false’ branch (when ‘sz == 7’)...
systemd-258/src/libsystemd-network/lldp-neighbor.c:415:9: branch_false: ...to here
systemd-258/src/libsystemd-network/lldp-neighbor.c:417:13: call_function: inlined call to ‘malloc_multiply’ from ‘format_mac_address’
systemd-258/src/libsystemd-network/lldp-neighbor.c:418:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/lldp-neighbor.c:421:16: branch_false: ...to here
systemd-258/src/libsystemd-network/lldp-neighbor.c:421:9: danger: ‘malloc(18)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  419|                   return -ENOMEM;
#  420|   
#  421|->         *ret = ether_addr_to_string(&a, k);
#  422|           return 1;
#  423|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def528]
systemd-258/src/libsystemd-network/lldp-neighbor.c:566:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘k’
systemd-258/src/libsystemd-network/lldp-neighbor.c:787:5: enter_function: entry to ‘lldp_neighbor_build_json’
systemd-258/src/libsystemd-network/lldp-neighbor.c:795:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/lldp-neighbor.c:796:9: branch_false: ...to here
systemd-258/src/libsystemd-network/lldp-neighbor.c:796:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/lldp-neighbor.c:798:16: branch_false: ...to here
systemd-258/src/libsystemd-network/lldp-neighbor.c:798:16: call_function: calling ‘sd_lldp_neighbor_get_chassis_id_as_string’ from ‘lldp_neighbor_build_json’
systemd-258/src/libsystemd-network/lldp-neighbor.c:798:16: return_function: returning to ‘lldp_neighbor_build_json’ from ‘sd_lldp_neighbor_get_chassis_id_as_string’
systemd-258/src/libsystemd-network/lldp-neighbor.c:799:16: call_function: calling ‘sd_lldp_neighbor_get_port_id_as_string’ from ‘lldp_neighbor_build_json’
#  564|   
#  565|   done:
#  566|->         *ret = n->port_id_as_string = k;
#  567|           return 0;
#  568|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(*opt,  offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1661:29: call_function: calling ‘ndisc_option_parse_default’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(144, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1657:29: call_function: calling ‘ndisc_option_parse_encrypted_dns’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(24, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1633:29: call_function: calling ‘ndisc_option_parse_route’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(25, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1637:29: call_function: calling ‘ndisc_option_parse_rdnss’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(26, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1641:29: call_function: calling ‘ndisc_option_parse_flags_extension’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(3, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1617:29: call_function: calling ‘ndisc_option_parse_prefix’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(31, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1645:29: call_function: calling ‘ndisc_option_parse_dnssl’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(37, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1049:5: enter_function: entry to ‘ndisc_option_add_captive_portal’
systemd-258/src/libsystemd-network/ndisc-option.c:1055:14: call_function: calling ‘in_charset’ from ‘ndisc_option_add_captive_portal’
systemd-258/src/libsystemd-network/ndisc-option.c:1055:14: return_function: returning to ‘ndisc_option_add_captive_portal’ from ‘in_charset’
systemd-258/src/libsystemd-network/ndisc-option.c:1055:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1058:30: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1059:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1066:37: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1067:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1070:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1070:13: call_function: calling ‘ndisc_option_new’ from ‘ndisc_option_add_captive_portal’
systemd-258/src/libsystemd-network/ndisc-option.c:1070:13: return_function: returning to ‘ndisc_option_add_captive_portal’ from ‘ndisc_option_new’
systemd-258/src/libsystemd-network/ndisc-option.c:1071:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1074:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1076:16: call_function: calling ‘ndisc_option_consume’ from ‘ndisc_option_add_captive_portal’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(38, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1653:29: call_function: calling ‘ndisc_option_parse_prefix64’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(5, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1625:29: call_function: calling ‘ndisc_option_parse_mtu’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
systemd-258/src/libsystemd-network/ndisc-option.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(8, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1629:29: call_function: calling ‘ndisc_option_parse_home_agent’ from ‘ndisc_parse_options’
#  235|   
#  236|   static int ndisc_option_consume(Set **options, sd_ndisc_option *p) {
#  237|->         assert(options);
#  238|           assert(p);
#  239|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
systemd-258/src/libsystemd-network/ndisc-option.c:245:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/libsystemd-network/ndisc-option.c:1049:5: enter_function: entry to ‘ndisc_option_add_captive_portal’
systemd-258/src/libsystemd-network/ndisc-option.c:1055:14: call_function: calling ‘in_charset’ from ‘ndisc_option_add_captive_portal’
systemd-258/src/libsystemd-network/ndisc-option.c:1055:14: return_function: returning to ‘ndisc_option_add_captive_portal’ from ‘in_charset’
systemd-258/src/libsystemd-network/ndisc-option.c:1055:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1058:30: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1059:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1066:37: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1066:37: acquire_memory: allocated here
systemd-258/src/libsystemd-network/ndisc-option.c:1067:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1070:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1070:13: call_function: calling ‘ndisc_option_new’ from ‘ndisc_option_add_captive_portal’
systemd-258/src/libsystemd-network/ndisc-option.c:1070:13: return_function: returning to ‘ndisc_option_add_captive_portal’ from ‘ndisc_option_new’
systemd-258/src/libsystemd-network/ndisc-option.c:1071:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1074:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1076:16: call_function: calling ‘ndisc_option_consume’ from ‘ndisc_option_add_captive_portal’
#  243|           }
#  244|   
#  245|->         return set_ensure_consume(options, &ndisc_option_hash_ops, p);
#  246|   }
#  247|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
systemd-258/src/libsystemd-network/ndisc-option.c:289:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(type,  offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1613:29: call_function: calling ‘ndisc_option_parse_link_layer_address’ from ‘ndisc_parse_options’
#  287|           p->mac = *mac;
#  288|   
#  289|->         return set_ensure_consume(options, &ndisc_option_hash_ops, p);
#  290|   }
#  291|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
systemd-258/src/libsystemd-network/ndisc-option.c:474:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ndisc_option_new(4, offset)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1621:29: call_function: calling ‘ndisc_option_parse_redirected_header’ from ‘ndisc_parse_options’
#  472|   
#  473|           /* For safety, here we copy only IPv6 header. */
#  474|->         memcpy(&p->hdr, hdr, sizeof(struct ip6_hdr));
#  475|   
#  476|           return ndisc_option_consume(options, p);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
systemd-258/src/libsystemd-network/ndisc-option.c:1274:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
systemd-258/src/libsystemd-network/ndisc-option.c:1579:5: enter_function: entry to ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1583:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1584:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1586:13: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1587:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1590:13: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1591:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1593:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1595:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1598:21: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1598:51: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1599:25: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: call_function: calling ‘ndisc_option_parse’ from ‘ndisc_parse_options’
systemd-258/src/libsystemd-network/ndisc-option.c:1602:21: return_function: returning to ‘ndisc_parse_options’ from ‘ndisc_option_parse’
systemd-258/src/libsystemd-network/ndisc-option.c:1603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1606:17: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1657:29: call_function: calling ‘ndisc_option_parse_encrypted_dns’ from ‘ndisc_parse_options’
# 1272|                   usec_t lifetime,
# 1273|                   usec_t valid_until) {
# 1274|->         assert(options);
# 1275|   
# 1276|           sd_ndisc_option *p = ndisc_option_new(SD_NDISC_OPTION_ENCRYPTED_DNS, offset);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def544]
systemd-258/src/libsystemd-network/ndisc-option.c:1795:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
systemd-258/src/libsystemd-network/ndisc-option.c:1697:5: enter_function: entry to ‘ndisc_send’
systemd-258/src/libsystemd-network/ndisc-option.c:1700:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1701:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1701:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1702:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1702:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1704:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1707:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1711:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1715:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1718:31: branch_false: ...to here
 branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1719:12: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1719:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1721:16: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1724:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1727:12: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1729:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1729:9: branch_false: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1729:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/ndisc-option.c:1730:41: branch_true: ...to here
systemd-258/src/libsystemd-network/ndisc-option.c:1730:41: release_memory: ‘buf’ is NULL
systemd-258/src/libsystemd-network/ndisc-option.c:1768:29: call_function: calling ‘ndisc_option_build_flags_extension’ from ‘ndisc_send’
systemd-258/src/libsystemd-network/ndisc-option.c:1768:29: return_function: returning to ‘ndisc_send’ from ‘ndisc_option_build_flags_extension’
systemd-258/src/libsystemd-network/ndisc-option.c:1795:32: release_memory: ‘buf’ is NULL
systemd-258/src/libsystemd-network/ndisc-option.c:1795:17: release_memory: ‘buf’ is NULL
systemd-258/src/libsystemd-network/ndisc-option.c:1795:32: danger: dereference of NULL ‘buf’
# 1793|                           log_debug_errno(r, "Failed to build NDisc option %u, ignoring: %m", option->type);
# 1794|   
# 1795|->                 iov[n_iov++] = IOVEC_MAKE(buf, buf[1] * 8);
# 1796|                   TAKE_PTR(buf);
# 1797|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def545]
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:431:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lease’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1400:5: enter_function: entry to ‘dhcp_lease_load’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1429:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1430:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1430:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1432:13: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1432:13: call_function: calling ‘dhcp_lease_new’ from ‘dhcp_lease_load’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1432:13: return_function: returning to ‘dhcp_lease_load’ from ‘dhcp_lease_new’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1433:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1436:19: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1437:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1401:56: call_function: inlined call to ‘sd_dhcp_lease_unrefp’ from ‘dhcp_lease_load’
#  429|                   free(lease->servers[i].addr);
#  430|   
#  431|->         dns_resolver_done_many(lease->dnr, lease->n_dnr);
#  432|           free(lease->static_routes);
#  433|           free(lease->classless_routes);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:435:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lease’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1400:5: enter_function: entry to ‘dhcp_lease_load’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1429:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1430:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1430:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1432:13: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1432:13: call_function: calling ‘dhcp_lease_new’ from ‘dhcp_lease_load’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1432:13: return_function: returning to ‘dhcp_lease_load’ from ‘dhcp_lease_new’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1433:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1436:19: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1437:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1401:56: call_function: inlined call to ‘sd_dhcp_lease_unrefp’ from ‘dhcp_lease_load’
#  433|           free(lease->classless_routes);
#  434|           free(lease->vendor_specific);
#  435|->         strv_free(lease->search_domains);
#  436|           free(lease->sixrd_br_addresses);
#  437|           return mfree(lease);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1195:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1173:5: enter_function: entry to ‘dhcp_lease_insert_private_option’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1176:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1178:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1178:9: branch_false: following ‘false’ branch (when ‘cur’ is NULL)...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1189:18: call_function: inlined call to ‘malloc_multiply’ from ‘dhcp_lease_insert_private_option’
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1190:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1193:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-lease.c:1195:24: danger: ‘malloc(32)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 1193|           option->tag = tag;
# 1194|           option->length = len;
# 1195|->         option->data = memdup(data, len);
# 1196|           if (!option->data) {
# 1197|                   free(option);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:36:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:67:5: enter_function: entry to ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:72:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:72:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:73:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:73:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:74:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:77:64: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:78:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:96:17: call_function: inlined call to ‘malloc_multiply’ from ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:97:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:103:30: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:112:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:113:35: branch_true: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:113:35: acquire_memory: allocated here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:114:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:118:13: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:118:13: call_function: calling ‘dhcp_server_put_lease’ from ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:68:70: call_function: inlined call to ‘sd_dhcp_server_lease_unrefp’ from ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:68:70: call_function: inlined call to ‘sd_dhcp_server_lease_unrefp’ from ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:36:1: danger: ‘<unknown>’ leaks here; was allocated at [(17)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/16)
#   34|   }
#   35|   
#   36|-> DEFINE_TRIVIAL_REF_UNREF_FUNC(sd_dhcp_server_lease, sd_dhcp_server_lease, dhcp_server_lease_free);
#   37|   
#   38|   DEFINE_HASH_OPS_WITH_VALUE_DESTRUCTOR(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def549]
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:36:1: warning[-Wanalyzer-malloc-leak]: leak of ‘lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:67:5: enter_function: entry to ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:72:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:72:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:73:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:73:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:74:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:77:64: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:78:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:96:17: call_function: inlined call to ‘malloc_multiply’ from ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:97:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:103:30: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:112:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:118:13: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:118:13: call_function: calling ‘dhcp_server_put_lease’ from ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:68:70: call_function: inlined call to ‘sd_dhcp_server_lease_unrefp’ from ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:68:70: call_function: inlined call to ‘sd_dhcp_server_lease_unrefp’ from ‘dhcp_server_set_lease’
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:36:1: danger: ‘lease’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#   34|   }
#   35|   
#   36|-> DEFINE_TRIVIAL_REF_UNREF_FUNC(sd_dhcp_server_lease, sd_dhcp_server_lease, dhcp_server_lease_free);
#   37|   
#   38|   DEFINE_HASH_OPS_WITH_VALUE_DESTRUCTOR(

Error: CPPCHECK_WARNING (CWE-457): [#def550]
systemd-258/src/libsystemd-network/sd-dhcp-server-lease.c:521: error[uninitvar]: Uninitialized variable: i
#  519|           sd_json_variant *i;
#  520|           JSON_VARIANT_ARRAY_FOREACH(i, info.leases)
#  521|->                 RET_GATHER(r, json_dispatch_dhcp_lease(server, i, /* use_boottime = */ sd_id128_equal(info.boot_id, boot_id)));
#  522|   
#  523|           m = hashmap_size(server->bound_leases_by_client_id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
systemd-258/src/libsystemd-network/sd-dhcp-server.c:126:9: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:16:5: enter_function: entry to ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:22:12: branch_false: following ‘false’ branch (when ‘size > 239’)...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:25:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: call_function: calling ‘sd_dhcp_server_new’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: return_function: returning to ‘LLVMFuzzerTestOneInput’ from ‘sd_dhcp_server_new’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: call_function: calling ‘sd_dhcp_server_attach_event’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:17:58: call_function: inlined call to ‘sd_dhcp_server_unrefp’ from ‘LLVMFuzzerTestOneInput’
#  124|           sd_dhcp_server_stop(server);
#  125|   
#  126|->         sd_event_unref(server->event);
#  127|   
#  128|           free(server->boot_server_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
systemd-258/src/libsystemd-network/sd-dhcp-server.c:287:35: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:16:5: enter_function: entry to ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:22:12: branch_false: following ‘false’ branch (when ‘size > 239’)...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:25:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: call_function: calling ‘sd_dhcp_server_new’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: return_function: returning to ‘LLVMFuzzerTestOneInput’ from ‘sd_dhcp_server_new’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: call_function: calling ‘sd_dhcp_server_attach_event’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:17:58: call_function: inlined call to ‘sd_dhcp_server_unrefp’ from ‘LLVMFuzzerTestOneInput’
#  285|           running = sd_dhcp_server_is_running(server);
#  286|   
#  287|->         server->receive_message = sd_event_source_disable_unref(server->receive_message);
#  288|           server->receive_broadcast = sd_event_source_disable_unref(server->receive_broadcast);
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
systemd-258/src/libsystemd-network/sd-dhcp-server.c:288:37: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:16:5: enter_function: entry to ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:22:12: branch_false: following ‘false’ branch (when ‘size > 239’)...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:25:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: call_function: calling ‘sd_dhcp_server_new’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: return_function: returning to ‘LLVMFuzzerTestOneInput’ from ‘sd_dhcp_server_new’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: call_function: calling ‘sd_dhcp_server_attach_event’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:17:58: call_function: inlined call to ‘sd_dhcp_server_unrefp’ from ‘LLVMFuzzerTestOneInput’
#  286|   
#  287|           server->receive_message = sd_event_source_disable_unref(server->receive_message);
#  288|->         server->receive_broadcast = sd_event_source_disable_unref(server->receive_broadcast);
#  289|   
#  290|           server->fd_raw = safe_close(server->fd_raw);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
systemd-258/src/libsystemd-network/sd-dhcp-server.c:290:26: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:16:5: enter_function: entry to ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:22:12: branch_false: following ‘false’ branch (when ‘size > 239’)...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:25:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: call_function: calling ‘sd_dhcp_server_new’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: return_function: returning to ‘LLVMFuzzerTestOneInput’ from ‘sd_dhcp_server_new’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: call_function: calling ‘sd_dhcp_server_attach_event’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:17:58: call_function: inlined call to ‘sd_dhcp_server_unrefp’ from ‘LLVMFuzzerTestOneInput’
#  288|           server->receive_broadcast = sd_event_source_disable_unref(server->receive_broadcast);
#  289|   
#  290|->         server->fd_raw = safe_close(server->fd_raw);
#  291|           server->fd = safe_close(server->fd);
#  292|           server->fd_broadcast = safe_close(server->fd_broadcast);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
systemd-258/src/libsystemd-network/sd-dhcp-server.c:291:22: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:16:5: enter_function: entry to ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:22:12: branch_false: following ‘false’ branch (when ‘size > 239’)...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:25:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: call_function: calling ‘sd_dhcp_server_new’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: return_function: returning to ‘LLVMFuzzerTestOneInput’ from ‘sd_dhcp_server_new’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: call_function: calling ‘sd_dhcp_server_attach_event’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:17:58: call_function: inlined call to ‘sd_dhcp_server_unrefp’ from ‘LLVMFuzzerTestOneInput’
#  289|   
#  290|           server->fd_raw = safe_close(server->fd_raw);
#  291|->         server->fd = safe_close(server->fd);
#  292|           server->fd_broadcast = safe_close(server->fd_broadcast);
#  293|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def556]
systemd-258/src/libsystemd-network/sd-dhcp-server.c:292:32: warning[-Wanalyzer-malloc-leak]: leak of ‘server’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:16:5: enter_function: entry to ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:22:12: branch_false: following ‘false’ branch (when ‘size > 239’)...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:25:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: call_function: calling ‘sd_dhcp_server_new’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: return_function: returning to ‘LLVMFuzzerTestOneInput’ from ‘sd_dhcp_server_new’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: branch_false: ...to here
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:28:9: call_function: calling ‘sd_dhcp_server_attach_event’ from ‘LLVMFuzzerTestOneInput’
systemd-258/src/libsystemd-network/fuzz-dhcp-server-relay.c:17:58: call_function: inlined call to ‘sd_dhcp_server_unrefp’ from ‘LLVMFuzzerTestOneInput’
#  290|           server->fd_raw = safe_close(server->fd_raw);
#  291|           server->fd = safe_close(server->fd);
#  292|->         server->fd_broadcast = safe_close(server->fd_broadcast);
#  293|   
#  294|           if (running)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:789:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:820:12: enter_function: entry to ‘dhcp6_lease_parse_message’
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:829:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:830:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:830:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:831:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:831:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:832:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:832:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:834:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:835:33: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:836:26: branch_true: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:840:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:845:40: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:846:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:851:17: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:1027:29: call_function: calling ‘dhcp6_lease_add_vendor_option’ from ‘dhcp6_lease_parse_message’
#  787|                   return -ENOMEM;
#  788|   
#  789|->         return set_ensure_consume(&lease->vendor_options, &dhcp6_option_hash_ops, TAKE_PTR(option));
#  790|   }
#  791|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
systemd-258/src/libsystemd-network/sd-dns-resolver.c:363:1: warning[-Wanalyzer-malloc-leak]: leak of ‘addr’
systemd-258/src/libsystemd-network/sd-dns-resolver.c:325:5: enter_function: entry to ‘dns_resolvers_to_dot_addrs’
systemd-258/src/libsystemd-network/sd-dns-resolver.c:327:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dns-resolver.c:328:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dns-resolver.c:328:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dns-resolver.c:329:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dns-resolver.c:329:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dns-resolver.c:331:31: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dns-resolver.c:335:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/sd-dns-resolver.c:336:22: branch_true: ...to here
systemd-258/src/libsystemd-network/sd-dns-resolver.c:336:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dns-resolver.c:339:17: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dns-resolver.c:339:17: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/sd-dns-resolver.c:343:32: branch_true: ...to here
systemd-258/src/libsystemd-network/sd-dns-resolver.c:343:32: acquire_memory: allocated here
systemd-258/src/libsystemd-network/sd-dns-resolver.c:344:28: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dns-resolver.c:346:30: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dns-resolver.c:340:76: call_function: calling ‘in_addr_full_freep’ from ‘dns_resolvers_to_dot_addrs’
systemd-258/src/libsystemd-network/sd-dns-resolver.c:363:1: danger: ‘addr’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
#  361|           *ret_n_addrs = n;
#  362|           return n;
#  363|-> }
#  364|   
#  365|   int dns_resolvers_to_dot_strv(const sd_dns_resolver *resolvers, size_t n_resolvers, char ***ret_names) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
systemd-258/src/libsystemd-network/sd-ndisc-neighbor.c:37:27: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258/src/libsystemd-network/sd-ndisc-neighbor.c:26:20: enter_function: entry to ‘ndisc_neighbor_new’
systemd-258/src/libsystemd-network/sd-ndisc-neighbor.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-ndisc-neighbor.c:31:14: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_neighbor_new’
systemd-258/src/libsystemd-network/sd-ndisc-neighbor.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-ndisc-neighbor.c:37:27: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-ndisc-neighbor.c:37:27: danger: ‘malloc(48)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   35|           *na = (sd_ndisc_neighbor) {
#   36|                   .n_ref = 1,
#   37|->                 .packet = icmp6_packet_ref(packet),
#   38|           };
#   39|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
systemd-258/src/libsystemd-network/sd-ndisc-redirect.c:37:27: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258/src/libsystemd-network/sd-ndisc-redirect.c:26:20: enter_function: entry to ‘ndisc_redirect_new’
systemd-258/src/libsystemd-network/sd-ndisc-redirect.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-ndisc-redirect.c:31:14: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_redirect_new’
systemd-258/src/libsystemd-network/sd-ndisc-redirect.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-ndisc-redirect.c:37:27: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-ndisc-redirect.c:37:27: danger: ‘malloc(56)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   35|           *rd = (sd_ndisc_redirect) {
#   36|                   .n_ref = 1,
#   37|->                 .packet = icmp6_packet_ref(packet),
#   38|           };
#   39|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
systemd-258/src/libsystemd-network/sd-ndisc-router-solicit.c:38:27: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(24)’
systemd-258/src/libsystemd-network/sd-ndisc-router-solicit.c:27:26: enter_function: entry to ‘ndisc_router_solicit_new’
systemd-258/src/libsystemd-network/sd-ndisc-router-solicit.c:30:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-ndisc-router-solicit.c:32:14: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_solicit_new’
systemd-258/src/libsystemd-network/sd-ndisc-router-solicit.c:33:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-ndisc-router-solicit.c:38:27: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-ndisc-router-solicit.c:38:27: danger: ‘malloc(24)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   36|           *rs = (sd_ndisc_router_solicit) {
#   37|                   .n_ref = 1,
#   38|->                 .packet = icmp6_packet_ref(packet),
#   39|           };
#   40|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
systemd-258/src/libsystemd-network/sd-ndisc-router.c:39:27: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(80)’
systemd-258/src/libsystemd-network/sd-ndisc-router.c:28:18: enter_function: entry to ‘ndisc_router_new’
systemd-258/src/libsystemd-network/sd-ndisc-router.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-ndisc-router.c:33:14: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_new’
systemd-258/src/libsystemd-network/sd-ndisc-router.c:34:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-ndisc-router.c:39:27: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-ndisc-router.c:39:27: danger: ‘malloc(80)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   37|           *rt = (sd_ndisc_router) {
#   38|                   .n_ref = 1,
#   39|->                 .packet = icmp6_packet_ref(packet),
#   40|                   .iterator = ITERATOR_FIRST,
#   41|           };

Error: COMPILER_WARNING: [#def563] [important]
systemd-258/src/libsystemd-network/test-dhcp-option.c:89:9: error[error]: ‘ETH_ALEN’ undeclared (first use in this function)
#   87|           message = malloc0(len);
#   88|   
#   89|->         assert_se(dhcp_message_init(message, BOOTREQUEST, 0x12345678,
#   90|                                       ARPHRD_ETHER, ETH_ALEN, (uint8_t[16]){}, DHCP_DISCOVER,
#   91|                                       optlen, &optoffset) >= 0);

Error: GCC_ANALYZER_WARNING: [#def564]
systemd-258/src/libsystemd-network/test-lldp-rx.c:108:9: warning[-Wanalyzer-fd-use-without-check]: ‘write’ on possibly invalid file descriptor ‘-9’
systemd-258/src/libsystemd-network/test-lldp-rx.c:418:5: enter_function: entry to ‘main’
systemd-258/src/libsystemd-network/test-lldp-rx.c:424:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/test-lldp-rx.c:425:9: branch_false: ...to here
systemd-258/src/libsystemd-network/test-lldp-rx.c:425:9: call_function: calling ‘test_receive_basic_packet’ from ‘main’
#  106|           assert_se(start_lldp_rx(&lldp_rx, e, lldp_rx_handler, NULL) == 0);
#  107|   
#  108|->         assert_se(write(test_fd[1], frame, sizeof(frame)) == sizeof(frame));
#  109|           sd_event_run(e, 0);
#  110|           assert_se(lldp_rx_handler_calls == 1);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def565]
systemd-258/src/libsystemd/sd-bus/bus-convenience.c:290:51: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/libsystemd/sd-bus/bus-convenience.c:309:14: enter_function: entry to ‘sd_bus_reply_method_errorf’
systemd-258/src/libsystemd/sd-bus/bus-convenience.c:318:9: acquire_resource: ‘va_start’ called here
systemd-258/src/libsystemd/sd-bus/bus-convenience.c:319:13: call_function: calling ‘sd_bus_reply_method_errorfv’ from ‘sd_bus_reply_method_errorf’
#  288|                   va_list ap) {
#  289|   
#  290|->         _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
#  291|   
#  292|           assert_return(call, -EINVAL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def566]
systemd-258/src/libsystemd/sd-bus/bus-convenience.c:358:51: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/libsystemd/sd-bus/bus-convenience.c:377:14: enter_function: entry to ‘sd_bus_reply_method_errnof’
systemd-258/src/libsystemd/sd-bus/bus-convenience.c:386:9: acquire_resource: ‘va_start’ called here
systemd-258/src/libsystemd/sd-bus/bus-convenience.c:387:13: call_function: calling ‘sd_bus_reply_method_errnofv’ from ‘sd_bus_reply_method_errnof’
#  356|                   va_list ap) {
#  357|   
#  358|->         _cleanup_(sd_bus_error_free) sd_bus_error berror = SD_BUS_ERROR_NULL;
#  359|   
#  360|           assert_return(call, -EINVAL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def567]
systemd-258/src/libsystemd/sd-bus/bus-creds.c:953:61: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/libsystemd/sd-bus/bus-creds.c:187:14: enter_function: entry to ‘sd_bus_creds_new_from_pidfd’
systemd-258/src/libsystemd/sd-bus/bus-creds.c:191:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-creds.c:192:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-creds.c:192:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-creds.c:193:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-creds.c:193:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-creds.c:195:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-creds.c:196:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-creds.c:199:16: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-creds.c:199:16: call_function: calling ‘bus_creds_new_from_pidref’ from ‘sd_bus_creds_new_from_pidfd’
#  951|   
#  952|                                                           p = skip_leading_chars(p, /* bad = */ NULL);
#  953|->                                                         if (*p == 0)
#  954|                                                                   break;
#  955|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
systemd-258/src/libsystemd/sd-bus/bus-message.c:130:17: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: return_function: returning to ‘bus_message_remarshal’ from ‘sd_bus_message_new’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4604:35: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: call_function: calling ‘message_append_reply_cookie’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: return_function: returning to ‘bus_message_remarshal’ from ‘message_append_reply_cookie’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4571:58: call_function: inlined call to ‘sd_bus_message_unrefp’ from ‘bus_message_remarshal’
#  128|   
#  129|           if (m->free_fds) {
#  130|->                 close_many(m->fds, m->n_fds);
#  131|                   free(m->fds);
#  132|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def569]
systemd-258/src/libsystemd/sd-bus/bus-message.c:130:17: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4589:21: call_function: calling ‘sd_bus_message_new_method_call’ from ‘bus_message_remarshal’
#  128|   
#  129|           if (m->free_fds) {
#  130|->                 close_many(m->fds, m->n_fds);
#  131|                   free(m->fds);
#  132|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
systemd-258/src/libsystemd/sd-bus/bus-message.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: return_function: returning to ‘bus_message_remarshal’ from ‘sd_bus_message_new’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4604:35: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: call_function: calling ‘message_append_reply_cookie’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: return_function: returning to ‘bus_message_remarshal’ from ‘message_append_reply_cookie’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4571:58: call_function: inlined call to ‘sd_bus_message_unrefp’ from ‘bus_message_remarshal’
#  139|           message_free_last_container(m);
#  140|   
#  141|->         bus_creds_done(&m->creds);
#  142|           return mfree(m);
#  143|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
systemd-258/src/libsystemd/sd-bus/bus-message.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4589:21: call_function: calling ‘sd_bus_message_new_method_call’ from ‘bus_message_remarshal’
#  139|           message_free_last_container(m);
#  140|   
#  141|->         bus_creds_done(&m->creds);
#  142|           return mfree(m);
#  143|   }

Error: GCC_ANALYZER_WARNING (CWE-122): [#def572]
systemd-258/src/libsystemd/sd-bus/bus-message.c:308:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: return_function: returning to ‘bus_message_remarshal’ from ‘sd_bus_message_new’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4604:35: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: call_function: calling ‘message_append_reply_cookie’ from ‘bus_message_remarshal’
#  306|                   return -ENOMEM;
#  307|   
#  308|->         p[0] = (uint8_t) h;
#  309|           p[1] = 1;
#  310|           p[2] = 'u';

Error: GCC_ANALYZER_WARNING (CWE-122): [#def573]
systemd-258/src/libsystemd/sd-bus/bus-message.c:309:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: return_function: returning to ‘bus_message_remarshal’ from ‘sd_bus_message_new’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4604:35: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: call_function: calling ‘message_append_reply_cookie’ from ‘bus_message_remarshal’
#  307|   
#  308|           p[0] = (uint8_t) h;
#  309|->         p[1] = 1;
#  310|           p[2] = 'u';
#  311|           p[3] = 0;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def574]
systemd-258/src/libsystemd/sd-bus/bus-message.c:310:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: return_function: returning to ‘bus_message_remarshal’ from ‘sd_bus_message_new’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4604:35: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: call_function: calling ‘message_append_reply_cookie’ from ‘bus_message_remarshal’
#  308|           p[0] = (uint8_t) h;
#  309|           p[1] = 1;
#  310|->         p[2] = 'u';
#  311|           p[3] = 0;
#  312|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def575]
systemd-258/src/libsystemd/sd-bus/bus-message.c:311:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: return_function: returning to ‘bus_message_remarshal’ from ‘sd_bus_message_new’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4604:35: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: call_function: calling ‘message_append_reply_cookie’ from ‘bus_message_remarshal’
#  309|           p[1] = 1;
#  310|           p[2] = 'u';
#  311|->         p[3] = 0;
#  312|   
#  313|           ((uint32_t*) p)[1] = x;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def576]
systemd-258/src/libsystemd/sd-bus/bus-message.c:313:9: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: return_function: returning to ‘bus_message_remarshal’ from ‘sd_bus_message_new’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4604:35: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: call_function: calling ‘message_append_reply_cookie’ from ‘bus_message_remarshal’
#  311|           p[3] = 0;
#  312|   
#  313|->         ((uint32_t*) p)[1] = x;
#  314|   
#  315|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
systemd-258/src/libsystemd/sd-bus/bus-message.c:470:18: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
#  468|           t->n_ref = 1;
#  469|           t->creds = (sd_bus_creds) { SD_BUS_CREDS_INIT_FIELDS };
#  470|->         t->bus = sd_bus_ref(bus);
#  471|           t->header = (BusMessageHeader*) ((uint8_t*) t + ALIGN(sizeof(struct sd_bus_message)));
#  472|           t->header->endian = BUS_NATIVE_ENDIAN;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
systemd-258/src/libsystemd/sd-bus/bus-message.c:821:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: call_function: calling ‘sd_bus_message_new’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4598:21: return_function: returning to ‘bus_message_remarshal’ from ‘sd_bus_message_new’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4602:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4604:35: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: call_function: calling ‘message_append_reply_cookie’ from ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4606:21: return_function: returning to ‘bus_message_remarshal’ from ‘message_append_reply_cookie’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4571:58: call_function: inlined call to ‘sd_bus_message_unrefp’ from ‘bus_message_remarshal’
#  819|           assert(m->n_ref > 0);
#  820|   
#  821|->         sd_bus_unref(m->bus); /* Each regular ref is also a ref on the bus connection. Let's hence drop it
#  822|                                  * here. Note we have to do this before decrementing our own n_ref here, since
#  823|                                  * otherwise, if this message is currently queued sd_bus_unref() might call

Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
systemd-258/src/libsystemd/sd-bus/bus-message.c:821:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4570:5: enter_function: entry to ‘bus_message_remarshal’
systemd-258/src/libsystemd/sd-bus/bus-message.c:4575:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4576:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4577:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-message.c:4579:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-message.c:4589:21: call_function: calling ‘sd_bus_message_new_method_call’ from ‘bus_message_remarshal’
#  819|           assert(m->n_ref > 0);
#  820|   
#  821|->         sd_bus_unref(m->bus); /* Each regular ref is also a ref on the bus connection. Let's hence drop it
#  822|                                  * here. Note we have to do this before decrementing our own n_ref here, since
#  823|                                  * otherwise, if this message is currently queued sd_bus_unref() might call

Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
systemd-258/src/libsystemd/sd-bus/bus-socket.c:344:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(*b.auth_iovec[0].iov_len + l)’
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1485:5: enter_function: entry to ‘bus_socket_process_authenticating’
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1488:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1489:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1489:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1491:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1491:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1494:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-socket.c:1494:13: call_function: calling ‘bus_socket_write_auth’ from ‘bus_socket_process_authenticating’
#  342|   
#  343|           free_and_replace(b->auth_buffer, p);
#  344|->         b->auth_index = 0;
#  345|           return 0;
#  346|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
systemd-258/src/libsystemd/sd-bus/bus-track.c:55:1: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258/src/libsystemd/sd-bus/bus-track.c:206:14: enter_function: entry to ‘sd_bus_track_add_name’
systemd-258/src/libsystemd/sd-bus/bus-track.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:213:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:213:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:215:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:216:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:234:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:235:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:238:13: call_function: inlined call to ‘malloc_multiply’ from ‘sd_bus_track_add_name’
systemd-258/src/libsystemd/sd-bus/bus-track.c:239:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:248:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:207:52: call_function: inlined call to ‘track_item_unrefp’ from ‘sd_bus_track_add_name’
#   53|   }
#   54|   
#   55|-> DEFINE_PRIVATE_TRIVIAL_UNREF_FUNC(BusTrackItem, track_item, track_item_free);
#   56|   DEFINE_TRIVIAL_CLEANUP_FUNC(BusTrackItem*, track_item_unref);
#   57|   DEFINE_PRIVATE_HASH_OPS_WITH_VALUE_DESTRUCTOR(track_item_hash_ops, char, string_hash_func, string_compare_func,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
systemd-258/src/libsystemd/sd-bus/bus-track.c:252:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258/src/libsystemd/sd-bus/bus-track.c:206:14: enter_function: entry to ‘sd_bus_track_add_name’
systemd-258/src/libsystemd/sd-bus/bus-track.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:213:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:213:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:215:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:216:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:234:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:235:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:238:13: call_function: inlined call to ‘malloc_multiply’ from ‘sd_bus_track_add_name’
systemd-258/src/libsystemd/sd-bus/bus-track.c:239:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:248:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:252:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:252:17: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:252:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:252:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/bus-track.c:252:17: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-bus/bus-track.c:254:9: call_function: calling ‘bus_track_remove_from_queue’ from ‘sd_bus_track_add_name’
systemd-258/src/libsystemd/sd-bus/bus-track.c:207:52: call_function: inlined call to ‘track_item_unrefp’ from ‘sd_bus_track_add_name’
#  250|   
#  251|           /* First, subscribe to this name */
#  252|->         match = MATCH_FOR_NAME(name);
#  253|   
#  254|           bus_track_remove_from_queue(track); /* don't dispatch this while we work in it */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def583]
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4080:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘label_pos’
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4027:36: release_memory: ‘labels’ is NULL
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4034:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4035:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4035:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4037:23: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4040:48: branch_false: following ‘false’ branch (when ‘sep’ is NULL)...
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4065:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4068:12: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4072:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4072:9: release_memory: ‘labels’ is NULL
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4074:44: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4075:23: branch_true: ...to here
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4077:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4080:46: branch_false: ...to here
systemd-258/src/libsystemd/sd-bus/sd-bus.c:4080:28: danger: dereference of NULL ‘label_pos’
# 4078|                           break;
# 4079|   
# 4080|->                 path_pos = stpcpy(path_pos, *label_pos++);
# 4081|                   template_pos = sep + 1;
# 4082|           }

Error: COMPILER_WARNING: [#def584] [important]
systemd-258/src/libsystemd/sd-daemon/sd-daemon.c:478:21: error[error]: ‘SCM_MAX_FD’ undeclared (first use in this function)
#  476|            * case the caller tries to send more fds than the kernel limit. The kernel would return EINVAL which
#  477|            * is not too useful I'd say. */
#  478|->         if (n_fds > SCM_MAX_FD)
#  479|                   return -E2BIG;
#  480|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
systemd-258/src/libsystemd/sd-device/device-enumerator.c:426:37: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)_hashmap_size(*enumerator.devices_by_syspath), 8)’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1164:12: enter_function: entry to ‘device_enumerator_get_first’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: call_function: calling ‘enumerator_sort_devices’ from ‘device_enumerator_get_first’
#  424|                           /* We cannot remove multiple entries in the loop HASHMAP_FOREACH_KEY() above. */
#  425|                           for (size_t i = m; i < n; i++) {
#  426|->                                 r = sd_device_get_syspath(devices[i], &syspath);
#  427|                                   if (r < 0)
#  428|                                           goto failed;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
systemd-258/src/libsystemd/sd-device/device-enumerator.c:431:33: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)_hashmap_size(*enumerator.devices_by_syspath), 8)’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1164:12: enter_function: entry to ‘device_enumerator_get_first’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: call_function: calling ‘enumerator_sort_devices’ from ‘device_enumerator_get_first’
#  429|   
#  430|                                   assert_se(hashmap_remove(enumerator->devices_by_syspath, syspath) == devices[i]);
#  431|->                                 sd_device_unref(devices[i]);
#  432|                           }
#  433|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
systemd-258/src/libsystemd/sd-device/device-enumerator.c:438:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)_hashmap_size(*enumerator.devices_by_syspath), 8)’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1164:12: enter_function: entry to ‘device_enumerator_get_first’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: call_function: calling ‘enumerator_sort_devices’ from ‘device_enumerator_get_first’
#  436|                   }
#  437|   
#  438|->                 typesafe_qsort(devices + n_sorted, n - n_sorted, device_compare);
#  439|                   n_sorted = n;
#  440|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
systemd-258/src/libsystemd/sd-device/device-enumerator.c:443:32: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)_hashmap_size(*enumerator.devices_by_syspath), 8)’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1164:12: enter_function: entry to ‘device_enumerator_get_first’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: call_function: calling ‘enumerator_sort_devices’ from ‘device_enumerator_get_first’
#  441|   
#  442|           HASHMAP_FOREACH(device, enumerator->devices_by_syspath)
#  443|->                 devices[n++] = sd_device_ref(device);
#  444|   
#  445|           /* Move all devices back to the hashmap. Otherwise, devices added by

Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
systemd-258/src/libsystemd/sd-device/device-enumerator.c:462:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply((long unsigned int)_hashmap_size(*enumerator.devices_by_syspath), 8)’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1164:12: enter_function: entry to ‘device_enumerator_get_first’
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1165:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1167:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-enumerator.c:1170:13: call_function: calling ‘enumerator_sort_devices’ from ‘device_enumerator_get_first’
#  460|           }
#  461|   
#  462|->         typesafe_qsort(devices + n_sorted, n - n_sorted, device_compare);
#  463|   
#  464|           device_unref_many(enumerator->devices, enumerator->n_devices);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
systemd-258/src/libsystemd/sd-device/device-filter.c:33:25: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 8)’
systemd-258/src/libsystemd/sd-device/device-filter.c:12:5: enter_function: entry to ‘update_match_strv’
systemd-258/src/libsystemd/sd-device/device-filter.c:16:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:17:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:17:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:19:16: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:20:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:21:20: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:21:20: branch_true: following ‘true’ branch (when ‘value’ is NULL)...
systemd-258/src/libsystemd/sd-device/device-filter.c:24:29: call_function: inlined call to ‘strv_isempty’ from ‘update_match_strv’
systemd-258/src/libsystemd/sd-device/device-filter.c:24:29: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:24:29: branch_true: following ‘true’ branch (when ‘clear_on_null != 0’)...
systemd-258/src/libsystemd/sd-device/device-filter.c:29:29: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:29:29: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-device/device-filter.c:30:28: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:33:25: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:33:25: danger: ‘calloc(1, 8)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#   31|                                   return -ENOMEM;
#   32|   
#   33|->                         strv_free_and_replace(strv, v);
#   34|                   } else {
#   35|                           if (strv_contains(strv, value))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
systemd-258/src/libsystemd/sd-device/device-filter.c:43:21: warning[-Wanalyzer-malloc-leak]: leak of ‘strv’
systemd-258/src/libsystemd/sd-device/device-filter.c:12:5: enter_function: entry to ‘update_match_strv’
systemd-258/src/libsystemd/sd-device/device-filter.c:16:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:17:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:17:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:19:16: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:20:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:21:20: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:21:20: branch_true: following ‘true’ branch (when ‘value’ is NULL)...
systemd-258/src/libsystemd/sd-device/device-filter.c:24:29: call_function: inlined call to ‘strv_isempty’ from ‘update_match_strv’
systemd-258/src/libsystemd/sd-device/device-filter.c:24:29: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:24:29: branch_true: following ‘true’ branch (when ‘clear_on_null != 0’)...
systemd-258/src/libsystemd/sd-device/device-filter.c:29:29: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:29:29: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-device/device-filter.c:30:28: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:33:25: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:43:21: danger: ‘strv’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#   41|                   }
#   42|   
#   43|->                 r = hashmap_update(*match_strv, key, strv);
#   44|                   if (r < 0)
#   45|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
systemd-258/src/libsystemd/sd-device/device-filter.c:60:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(key)’
systemd-258/src/libsystemd/sd-device/device-filter.c:16:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:17:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:17:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:19:16: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:20:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:48:44: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:51:29: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-device/device-filter.c:52:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:55:30: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:56:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-filter.c:59:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-filter.c:60:20: danger: ‘strdup(key)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#   58|   
#   59|                   r = hashmap_ensure_put(match_strv, &string_hash_ops_free_strv_free, key_alloc, strv_alloc);
#   60|->                 if (r < 0)
#   61|                           return r;
#   62|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
systemd-258/src/libsystemd/sd-device/device-monitor.c:392:27: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
systemd-258/src/libsystemd/sd-device/device-monitor.c:265:14: enter_function: entry to ‘sd_device_monitor_new’
systemd-258/src/libsystemd/sd-device/device-monitor.c:266:16: call_function: calling ‘device_monitor_new_full’ from ‘sd_device_monitor_new’
#  390|           assert_return(m, -EINVAL);
#  391|   
#  392|->         m->event_source = sd_event_source_unref(m->event_source);
#  393|           m->event = sd_event_unref(m->event);
#  394|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
systemd-258/src/libsystemd/sd-device/device-monitor.c:393:20: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
systemd-258/src/libsystemd/sd-device/device-monitor.c:265:14: enter_function: entry to ‘sd_device_monitor_new’
systemd-258/src/libsystemd/sd-device/device-monitor.c:266:16: call_function: calling ‘device_monitor_new_full’ from ‘sd_device_monitor_new’
#  391|   
#  392|           m->event_source = sd_event_source_unref(m->event_source);
#  393|->         m->event = sd_event_unref(m->event);
#  394|   
#  395|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
systemd-258/src/libsystemd/sd-device/device-monitor.c:454:19: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
systemd-258/src/libsystemd/sd-device/device-monitor.c:265:14: enter_function: entry to ‘sd_device_monitor_new’
systemd-258/src/libsystemd/sd-device/device-monitor.c:266:16: call_function: calling ‘device_monitor_new_full’ from ‘sd_device_monitor_new’
#  452|   
#  453|           (void) sd_device_monitor_detach_event(m);
#  454|->         m->sock = safe_close(m->sock);
#  455|   
#  456|           uid_range_free(m->mapped_userns_uid_range);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
systemd-258/src/libsystemd/sd-device/device-monitor.c:456:9: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
systemd-258/src/libsystemd/sd-device/device-monitor.c:265:14: enter_function: entry to ‘sd_device_monitor_new’
systemd-258/src/libsystemd/sd-device/device-monitor.c:266:16: call_function: calling ‘device_monitor_new_full’ from ‘sd_device_monitor_new’
#  454|           m->sock = safe_close(m->sock);
#  455|   
#  456|->         uid_range_free(m->mapped_userns_uid_range);
#  457|           free(m->description);
#  458|           hashmap_free(m->subsystem_filter);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
systemd-258/src/libsystemd/sd-device/sd-device.c:112:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(key)’
systemd-258/src/libsystemd/sd-device/sd-device.c:1338:5: enter_function: entry to ‘device_set_driver’
systemd-258/src/libsystemd/sd-device/sd-device.c:1342:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1344:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1344:12: branch_true: following ‘true’ branch (when ‘driver’ is non-NULL)...
systemd-258/src/libsystemd/sd-device/sd-device.c:1345:21: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1346:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1350:13: call_function: inlined call to ‘device_add_property_internal’ from ‘device_set_driver’
#  110|                           return -ENOMEM;
#  111|   
#  112|->                 old_value = ordered_hashmap_get2(*properties, key, (void**) &old_key);
#  113|   
#  114|                   /* ordered_hashmap_replace() does not fail when the hashmap already has the entry. */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def598]
systemd-258/src/libsystemd/sd-device/sd-device.c:1853:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘value’
systemd-258/src/libsystemd/sd-device/sd-device.c:1801:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1802:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1802:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1804:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1805:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1813:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1817:28: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1818:17: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1820:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1817:28: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1818:17: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1851:28: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:1852:33: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:1853:37: danger: use of uninitialized value ‘value’ here
# 1851|                           if (strchr(NEWLINE, db[i])) {
# 1852|                                   db[i] = '\0';
# 1853|->                                 r = handle_db_line(device, key, value);
# 1854|                                   if (r < 0)
# 1855|                                           log_device_debug_errno(device, r, "sd-device: Failed to handle db entry '%c:%s', ignoring: %m",

Error: GCC_ANALYZER_WARNING (CWE-688): [#def599]
systemd-258/src/libsystemd/sd-device/sd-device.c:2134:21: warning[-Wanalyzer-null-argument]: use of NULL ‘dir’ where non-null expected
systemd-258/src/libsystemd/sd-device/sd-device.c:2120:12: enter_function: entry to ‘device_sysattrs_read_all_internal’
systemd-258/src/libsystemd/sd-device/sd-device.c:2121:33: release_memory: ‘dir’ is NULL
systemd-258/src/libsystemd/sd-device/sd-device.c:2124:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2125:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2125:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2127:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2127:13: call_function: calling ‘device_opendir’ from ‘device_sysattrs_read_all_internal’
systemd-258/src/libsystemd/sd-device/sd-device.c:2127:13: return_function: returning to ‘device_sysattrs_read_all_internal’ from ‘device_opendir’
systemd-258/src/libsystemd/sd-device/sd-device.c:2128:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2130:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2130:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2133:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2133:12: branch_true: following ‘true’ branch (when ‘subdir’ is non-NULL)...
systemd-258/src/libsystemd/sd-device/sd-device.c:2134:21: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2134:21: release_memory: ‘dir’ is NULL
systemd-258/src/libsystemd/sd-device/sd-device.c:2134:21: danger: argument 1 (‘dir’) NULL where non-null expected
# 2132|   
# 2133|           if (subdir) {
# 2134|->                 if (faccessat(dirfd(dir), "uevent", F_OK, 0) >= 0)
# 2135|                           return 0; /* this is a child device, skipping */
# 2136|                   if (errno != ENOENT) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def600]
systemd-258/src/libsystemd/sd-device/sd-device.c:2173:21: warning[-Wanalyzer-null-argument]: use of NULL ‘dir’ where non-null expected
systemd-258/src/libsystemd/sd-device/sd-device.c:2120:12: enter_function: entry to ‘device_sysattrs_read_all_internal’
systemd-258/src/libsystemd/sd-device/sd-device.c:2121:33: release_memory: ‘dir’ is NULL
systemd-258/src/libsystemd/sd-device/sd-device.c:2124:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2125:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2125:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2127:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2127:13: call_function: calling ‘device_opendir’ from ‘device_sysattrs_read_all_internal’
systemd-258/src/libsystemd/sd-device/sd-device.c:2127:13: return_function: returning to ‘device_sysattrs_read_all_internal’ from ‘device_opendir’
systemd-258/src/libsystemd/sd-device/sd-device.c:2128:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2130:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2130:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/sd-device.c:2133:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2133:12: branch_false: following ‘false’ branch (when ‘subdir’ is NULL)...
systemd-258/src/libsystemd/sd-device/sd-device.c:2144:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2144:9: release_memory: ‘dir’ is NULL
systemd-258/src/libsystemd/sd-device/sd-device.c:2144:9: branch_false: following ‘false’ branch (when ‘de’ is non-NULL)...
systemd-258/src/libsystemd/sd-device/sd-device.c:2146:29: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2155:20: branch_false: following ‘false’ branch (when ‘subdir’ is NULL)...
systemd-258/src/libsystemd/sd-device/sd-device.c:2161:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/sd-device.c:2173:21: release_memory: ‘dir’ is NULL
systemd-258/src/libsystemd/sd-device/sd-device.c:2173:21: danger: argument 1 (‘dir’) NULL where non-null expected
# 2171|                   }
# 2172|   
# 2173|->                 if (fstatat(dirfd(dir), de->d_name, &statbuf, AT_SYMLINK_NOFOLLOW) < 0)
# 2174|                           continue;
# 2175|   

Error: CPPCHECK_WARNING (CWE-587): [#def601]
systemd-258/src/libsystemd/sd-device/test-sd-device.c:297: error[assignBoolToPointer]: Boolean value assigned to pointer.
#  295|                   unsigned x;
#  296|                   ASSERT_OK(r = device_get_sysattr_unsigned(d, "nsid", &x));
#  297|->                 ASSERT_EQ(x > 0, r > 0);
#  298|           }
#  299|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
systemd-258/src/libsystemd/sd-event/event-util.c:249:17: warning[-Wanalyzer-malloc-leak]: leak of ‘sources’
systemd-258/src/libsystemd/sd-event/event-util.c:283:5: enter_function: entry to ‘event_forward_signals’
systemd-258/src/libsystemd/sd-event/event-util.c:297:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/event-util.c:298:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/event-util.c:298:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/event-util.c:299:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/event-util.c:299:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/event-util.c:300:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/event-util.c:300:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/event-util.c:301:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/event-util.c:301:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/event-util.c:302:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/event-util.c:302:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/event-util.c:304:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/event-util.c:304:12: branch_false: following ‘false’ branch (when ‘n_signals != 0’)...
systemd-258/src/libsystemd/sd-event/event-util.c:310:19: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/event-util.c:310:19: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-event/event-util.c:311:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/event-util.c:314:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/event-util.c:314:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/event-util.c:295:9: call_function: calling ‘array_cleanup’ from ‘event_forward_signals’
#  247|   void event_source_unref_many(sd_event_source **array, size_t n) {
#  248|           FOREACH_ARRAY(v, array, n)
#  249|->                 sd_event_source_unref(*v);
#  250|   
#  251|           free(array);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
systemd-258/src/libsystemd/sd-event/sd-event.c:748:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(152)’
systemd-258/src/libsystemd/sd-event/sd-event.c:3610:12: enter_function: entry to ‘process_timer’
systemd-258/src/libsystemd/sd-event/sd-event.c:3624:17: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:3624:17: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:3626:27: call_function: calling ‘time_event_source_next’ from ‘process_timer’
systemd-258/src/libsystemd/sd-event/sd-event.c:3626:27: return_function: returning to ‘process_timer’ from ‘time_event_source_next’
systemd-258/src/libsystemd/sd-event/sd-event.c:3626:21: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:3629:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:3632:25: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:3634:29: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:3634:29: call_function: calling ‘event_source_leave_ratelimit’ from ‘process_timer’
#  746|                   };
#  747|   
#  748|->                 r = hashmap_ensure_put(&e->signal_data, &uint64_hash_ops, &d->priority, d);
#  749|                   if (r < 0) {
#  750|                           free(d);

Error: GCC_ANALYZER_WARNING (CWE-131): [#def604]
systemd-258/src/libsystemd/sd-event/sd-event.c:1203:13: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
systemd-258/src/libsystemd/sd-event/sd-event.c:5189:14: enter_function: entry to ‘sd_event_set_signal_exit’
systemd-258/src/libsystemd/sd-event/sd-event.c:5193:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5194:9: call_function: inlined call to ‘event_resolve’ from ‘sd_event_set_signal_exit’
systemd-258/src/libsystemd/sd-event/sd-event.c:5194:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5195:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5195:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5196:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5196:9: call_function: calling ‘event_origin_changed’ from ‘sd_event_set_signal_exit’
systemd-258/src/libsystemd/sd-event/sd-event.c:5196:9: return_function: returning to ‘sd_event_set_signal_exit’ from ‘event_origin_changed’
systemd-258/src/libsystemd/sd-event/sd-event.c:5196:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5198:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5198:12: branch_true: following ‘true’ branch (when ‘b != 0’)...
systemd-258/src/libsystemd/sd-event/sd-event.c:5203:22: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5203:20: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5204:29: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5204:29: call_function: calling ‘sd_event_add_signal’ from ‘sd_event_set_signal_exit’
# 1201|           assert(size_table[type] > 0);
# 1202|   
# 1203|->         s = malloc0(size_table[type]);
# 1204|           if (!s)
# 1205|                   return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
systemd-258/src/libsystemd/sd-event/sd-event.c:1208:13: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
systemd-258/src/libsystemd/sd-event/sd-event.c:5189:14: enter_function: entry to ‘sd_event_set_signal_exit’
systemd-258/src/libsystemd/sd-event/sd-event.c:5193:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5194:9: call_function: inlined call to ‘event_resolve’ from ‘sd_event_set_signal_exit’
systemd-258/src/libsystemd/sd-event/sd-event.c:5194:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5195:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5195:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5196:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5196:9: call_function: calling ‘event_origin_changed’ from ‘sd_event_set_signal_exit’
systemd-258/src/libsystemd/sd-event/sd-event.c:5196:9: return_function: returning to ‘sd_event_set_signal_exit’ from ‘event_origin_changed’
systemd-258/src/libsystemd/sd-event/sd-event.c:5196:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5198:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5198:12: branch_true: following ‘true’ branch (when ‘b != 0’)...
systemd-258/src/libsystemd/sd-event/sd-event.c:5203:22: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5203:20: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/sd-event.c:5204:29: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/sd-event.c:5204:29: call_function: calling ‘sd_event_add_signal’ from ‘sd_event_set_signal_exit’
# 1206|           /* We use expand_to_usable() here to tell gcc that it should consider this an object of the full
# 1207|            * size, even if we only allocate the initial part we need. */
# 1208|->         s = expand_to_usable(s, sizeof(sd_event_source));
# 1209|   
# 1210|           /* Note: we cannot use compound initialization here, because sizeof(sd_event_source) is likely larger

Error: GCC_ANALYZER_WARNING (CWE-775): [#def606]
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: danger: ‘a[0]’ leaks here
#  205|   
#  206|           assert_se(pipe(a) >= 0);
#  207|->         assert_se(pipe(b) >= 0);
#  208|           assert_se(pipe(d) >= 0);
#  209|           assert_se(pipe(k) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def607]
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: danger: ‘a[1]’ leaks here
#  205|   
#  206|           assert_se(pipe(a) >= 0);
#  207|->         assert_se(pipe(b) >= 0);
#  208|           assert_se(pipe(d) >= 0);
#  209|           assert_se(pipe(k) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def608]
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: danger: ‘a[0]’ leaks here
#  206|           assert_se(pipe(a) >= 0);
#  207|           assert_se(pipe(b) >= 0);
#  208|->         assert_se(pipe(d) >= 0);
#  209|           assert_se(pipe(k) >= 0);
#  210|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def609]
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: danger: ‘a[1]’ leaks here
#  206|           assert_se(pipe(a) >= 0);
#  207|           assert_se(pipe(b) >= 0);
#  208|->         assert_se(pipe(d) >= 0);
#  209|           assert_se(pipe(k) >= 0);
#  210|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def610]
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: danger: ‘b[0]’ leaks here
#  206|           assert_se(pipe(a) >= 0);
#  207|           assert_se(pipe(b) >= 0);
#  208|->         assert_se(pipe(d) >= 0);
#  209|           assert_se(pipe(k) >= 0);
#  210|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def611]
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: danger: ‘b[1]’ leaks here
#  206|           assert_se(pipe(a) >= 0);
#  207|           assert_se(pipe(b) >= 0);
#  208|->         assert_se(pipe(d) >= 0);
#  209|           assert_se(pipe(k) >= 0);
#  210|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def612]
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: danger: ‘a[0]’ leaks here
#  207|           assert_se(pipe(b) >= 0);
#  208|           assert_se(pipe(d) >= 0);
#  209|->         assert_se(pipe(k) >= 0);
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def613]
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: danger: ‘a[1]’ leaks here
#  207|           assert_se(pipe(b) >= 0);
#  208|           assert_se(pipe(d) >= 0);
#  209|->         assert_se(pipe(k) >= 0);
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def614]
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: danger: ‘b[0]’ leaks here
#  207|           assert_se(pipe(b) >= 0);
#  208|           assert_se(pipe(d) >= 0);
#  209|->         assert_se(pipe(k) >= 0);
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def615]
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: danger: ‘b[1]’ leaks here
#  207|           assert_se(pipe(b) >= 0);
#  208|           assert_se(pipe(d) >= 0);
#  209|->         assert_se(pipe(k) >= 0);
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def616]
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: danger: ‘d[0]’ leaks here
#  207|           assert_se(pipe(b) >= 0);
#  208|           assert_se(pipe(d) >= 0);
#  209|->         assert_se(pipe(k) >= 0);
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def617]
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: danger: ‘d[1]’ leaks here
#  207|           assert_se(pipe(b) >= 0);
#  208|           assert_se(pipe(d) >= 0);
#  209|->         assert_se(pipe(k) >= 0);
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def618]
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: danger: ‘a[0]’ leaks here
#  209|           assert_se(pipe(k) >= 0);
#  210|   
#  211|->         assert_se(sd_event_default(&e) >= 0);
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def619]
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: danger: ‘a[1]’ leaks here
#  209|           assert_se(pipe(k) >= 0);
#  210|   
#  211|->         assert_se(sd_event_default(&e) >= 0);
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def620]
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: danger: ‘b[0]’ leaks here
#  209|           assert_se(pipe(k) >= 0);
#  210|   
#  211|->         assert_se(sd_event_default(&e) >= 0);
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def621]
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: danger: ‘b[1]’ leaks here
#  209|           assert_se(pipe(k) >= 0);
#  210|   
#  211|->         assert_se(sd_event_default(&e) >= 0);
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def622]
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: danger: ‘d[0]’ leaks here
#  209|           assert_se(pipe(k) >= 0);
#  210|   
#  211|->         assert_se(sd_event_default(&e) >= 0);
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def623]
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: danger: ‘d[1]’ leaks here
#  209|           assert_se(pipe(k) >= 0);
#  210|   
#  211|->         assert_se(sd_event_default(&e) >= 0);
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def624]
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: danger: ‘k[0]’ leaks here
#  209|           assert_se(pipe(k) >= 0);
#  210|   
#  211|->         assert_se(sd_event_default(&e) >= 0);
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def625]
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: danger: ‘k[1]’ leaks here
#  209|           assert_se(pipe(k) >= 0);
#  210|   
#  211|->         assert_se(sd_event_default(&e) >= 0);
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def626]
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: danger: ‘a[0]’ leaks here
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);
#  212|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|           assert_se(sd_event_set_watchdog(e, true) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def627]
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: danger: ‘a[1]’ leaks here
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);
#  212|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|           assert_se(sd_event_set_watchdog(e, true) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def628]
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: danger: ‘b[0]’ leaks here
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);
#  212|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|           assert_se(sd_event_set_watchdog(e, true) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def629]
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: danger: ‘b[1]’ leaks here
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);
#  212|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|           assert_se(sd_event_set_watchdog(e, true) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def630]
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: danger: ‘d[0]’ leaks here
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);
#  212|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|           assert_se(sd_event_set_watchdog(e, true) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def631]
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: danger: ‘d[1]’ leaks here
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);
#  212|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|           assert_se(sd_event_set_watchdog(e, true) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def632]
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: danger: ‘k[0]’ leaks here
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);
#  212|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|           assert_se(sd_event_set_watchdog(e, true) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def633]
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: danger: ‘k[1]’ leaks here
#  210|   
#  211|           assert_se(sd_event_default(&e) >= 0);
#  212|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|           assert_se(sd_event_set_watchdog(e, true) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def634]
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: danger: ‘a[0]’ leaks here
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|->         assert_se(sd_event_set_watchdog(e, true) >= 0);
#  215|   
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def635]
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: danger: ‘a[1]’ leaks here
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|->         assert_se(sd_event_set_watchdog(e, true) >= 0);
#  215|   
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def636]
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: danger: ‘b[0]’ leaks here
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|->         assert_se(sd_event_set_watchdog(e, true) >= 0);
#  215|   
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def637]
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: danger: ‘b[1]’ leaks here
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|->         assert_se(sd_event_set_watchdog(e, true) >= 0);
#  215|   
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def638]
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: danger: ‘d[0]’ leaks here
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|->         assert_se(sd_event_set_watchdog(e, true) >= 0);
#  215|   
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def639]
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: danger: ‘d[1]’ leaks here
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|->         assert_se(sd_event_set_watchdog(e, true) >= 0);
#  215|   
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def640]
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: danger: ‘k[0]’ leaks here
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|->         assert_se(sd_event_set_watchdog(e, true) >= 0);
#  215|   
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def641]
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: danger: ‘k[1]’ leaks here
#  212|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) > 0);
#  213|   
#  214|->         assert_se(sd_event_set_watchdog(e, true) >= 0);
#  215|   
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def642]
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: danger: ‘a[0]’ leaks here
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */
#  217|           got_unref = false;
#  218|->         assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def643]
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: danger: ‘a[1]’ leaks here
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */
#  217|           got_unref = false;
#  218|->         assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def644]
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: danger: ‘b[0]’ leaks here
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */
#  217|           got_unref = false;
#  218|->         assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def645]
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: danger: ‘b[1]’ leaks here
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */
#  217|           got_unref = false;
#  218|->         assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def646]
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: danger: ‘d[0]’ leaks here
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */
#  217|           got_unref = false;
#  218|->         assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def647]
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: danger: ‘d[1]’ leaks here
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */
#  217|           got_unref = false;
#  218|->         assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def648]
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: danger: ‘k[0]’ leaks here
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */
#  217|           got_unref = false;
#  218|->         assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def649]
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: danger: ‘k[1]’ leaks here
#  216|           /* Test whether we cleanly can destroy an io event source from its own handler */
#  217|           got_unref = false;
#  218|->         assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def650]
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: danger: ‘a[0]’ leaks here
#  217|           got_unref = false;
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|->         assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def651]
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: danger: ‘a[1]’ leaks here
#  217|           got_unref = false;
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|->         assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def652]
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: danger: ‘b[0]’ leaks here
#  217|           got_unref = false;
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|->         assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def653]
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: danger: ‘b[1]’ leaks here
#  217|           got_unref = false;
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|->         assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def654]
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: danger: ‘d[0]’ leaks here
#  217|           got_unref = false;
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|->         assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def655]
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: danger: ‘d[1]’ leaks here
#  217|           got_unref = false;
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|->         assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def656]
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: danger: ‘k[1]’ leaks here
#  217|           got_unref = false;
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|->         assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def657]
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: danger: ‘a[0]’ leaks here
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def658]
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: danger: ‘a[1]’ leaks here
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def659]
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: danger: ‘b[0]’ leaks here
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def660]
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: danger: ‘b[1]’ leaks here
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def661]
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: danger: ‘d[0]’ leaks here
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def662]
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: danger: ‘d[1]’ leaks here
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def663]
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: danger: ‘k[1]’ leaks here
#  218|           assert_se(sd_event_add_io(e, &t, k[0], EPOLLIN, unref_handler, NULL) >= 0);
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|           assert_se(got_unref);
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def664]
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: danger: ‘a[0]’ leaks here
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|->         assert_se(got_unref);
#  222|   
#  223|           got_a = false, got_b = false, got_c = false, got_d = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def665]
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: danger: ‘a[1]’ leaks here
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|->         assert_se(got_unref);
#  222|   
#  223|           got_a = false, got_b = false, got_c = false, got_d = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def666]
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: danger: ‘b[0]’ leaks here
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|->         assert_se(got_unref);
#  222|   
#  223|           got_a = false, got_b = false, got_c = false, got_d = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def667]
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: danger: ‘b[1]’ leaks here
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|->         assert_se(got_unref);
#  222|   
#  223|           got_a = false, got_b = false, got_c = false, got_d = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def668]
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: danger: ‘d[0]’ leaks here
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|->         assert_se(got_unref);
#  222|   
#  223|           got_a = false, got_b = false, got_c = false, got_d = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def669]
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: danger: ‘d[1]’ leaks here
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|->         assert_se(got_unref);
#  222|   
#  223|           got_a = false, got_b = false, got_c = false, got_d = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def670]
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: danger: ‘k[1]’ leaks here
#  219|           assert_se(write(k[1], &ch, 1) == 1);
#  220|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  221|->         assert_se(got_unref);
#  222|   
#  223|           got_a = false, got_b = false, got_c = false, got_d = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def671]
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: danger: ‘a[0]’ leaks here
#  224|   
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|->         assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def672]
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: danger: ‘a[1]’ leaks here
#  224|   
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|->         assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def673]
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: danger: ‘b[0]’ leaks here
#  224|   
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|->         assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def674]
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: danger: ‘b[1]’ leaks here
#  224|   
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|->         assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def675]
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: danger: ‘d[0]’ leaks here
#  224|   
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|->         assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def676]
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: danger: ‘d[1]’ leaks here
#  224|   
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|->         assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def677]
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: danger: ‘k[1]’ leaks here
#  224|   
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|->         assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def678]
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: danger: ‘a[0]’ leaks here
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|->         assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def679]
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: danger: ‘a[1]’ leaks here
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|->         assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def680]
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: danger: ‘b[0]’ leaks here
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|->         assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def681]
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: danger: ‘b[1]’ leaks here
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|->         assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def682]
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: danger: ‘d[1]’ leaks here
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|->         assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def683]
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: danger: ‘k[1]’ leaks here
#  225|           /* Add a oneshot handler, trigger it, reenable it, and trigger it again. */
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|->         assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def684]
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: danger: ‘a[0]’ leaks here
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|->         assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def685]
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: danger: ‘a[1]’ leaks here
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|->         assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def686]
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: danger: ‘b[0]’ leaks here
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|->         assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def687]
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: danger: ‘b[1]’ leaks here
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|->         assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def688]
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: danger: ‘d[1]’ leaks here
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|->         assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def689]
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: danger: ‘k[1]’ leaks here
#  226|           assert_se(sd_event_add_io(e, &w, d[0], EPOLLIN, io_handler, INT_TO_PTR('d')) >= 0);
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|->         assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def690]
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: danger: ‘a[0]’ leaks here
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def691]
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: danger: ‘a[1]’ leaks here
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def692]
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: danger: ‘b[0]’ leaks here
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def693]
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: danger: ‘b[1]’ leaks here
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def694]
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: danger: ‘d[1]’ leaks here
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def695]
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: danger: ‘k[1]’ leaks here
#  227|           assert_se(sd_event_source_set_enabled(w, SD_EVENT_ONESHOT) >= 0);
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def696]
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: danger: ‘a[0]’ leaks here
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|->         assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def697]
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: danger: ‘a[1]’ leaks here
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|->         assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def698]
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: danger: ‘b[0]’ leaks here
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|->         assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def699]
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: danger: ‘b[1]’ leaks here
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|->         assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def700]
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: danger: ‘d[1]’ leaks here
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|->         assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def701]
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: danger: ‘k[1]’ leaks here
#  228|           assert_se(write(d[1], &ch, 1) >= 0);
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|->         assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def702]
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: danger: ‘a[0]’ leaks here
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|->         assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def703]
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: danger: ‘a[1]’ leaks here
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|->         assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def704]
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: danger: ‘b[0]’ leaks here
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|->         assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def705]
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: danger: ‘b[1]’ leaks here
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|->         assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def706]
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: danger: ‘d[1]’ leaks here
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|->         assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def707]
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: danger: ‘k[1]’ leaks here
#  229|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  230|           assert_se(got_d == 1);
#  231|->         assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def708]
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: danger: ‘a[0]’ leaks here
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def709]
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: danger: ‘a[1]’ leaks here
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def710]
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: danger: ‘b[0]’ leaks here
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def711]
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: danger: ‘b[1]’ leaks here
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def712]
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: danger: ‘d[1]’ leaks here
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def713]
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: danger: ‘k[1]’ leaks here
#  230|           assert_se(got_d == 1);
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|           assert_se(got_d == 2);
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def714]
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: danger: ‘a[0]’ leaks here
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|->         assert_se(got_d == 2);
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def715]
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: danger: ‘a[1]’ leaks here
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|->         assert_se(got_d == 2);
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def716]
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: danger: ‘b[0]’ leaks here
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|->         assert_se(got_d == 2);
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def717]
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: danger: ‘b[1]’ leaks here
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|->         assert_se(got_d == 2);
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def718]
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: danger: ‘d[1]’ leaks here
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|->         assert_se(got_d == 2);
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def719]
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: danger: ‘k[1]’ leaks here
#  231|           assert_se(write(d[1], &ch, 1) >= 0);
#  232|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  233|->         assert_se(got_d == 2);
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def720]
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: danger: ‘a[0]’ leaks here
#  233|           assert_se(got_d == 2);
#  234|   
#  235|->         assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|           assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def721]
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: danger: ‘a[1]’ leaks here
#  233|           assert_se(got_d == 2);
#  234|   
#  235|->         assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|           assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def722]
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: danger: ‘b[0]’ leaks here
#  233|           assert_se(got_d == 2);
#  234|   
#  235|->         assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|           assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def723]
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: danger: ‘b[1]’ leaks here
#  233|           assert_se(got_d == 2);
#  234|   
#  235|->         assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|           assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def724]
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: danger: ‘d[1]’ leaks here
#  233|           assert_se(got_d == 2);
#  234|   
#  235|->         assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|           assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def725]
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: danger: ‘k[1]’ leaks here
#  233|           assert_se(got_d == 2);
#  234|   
#  235|->         assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|           assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def726]
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: danger: ‘a[1]’ leaks here
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|->         assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   
#  238|           do_quit = false;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def727]
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[0]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: danger: ‘b[0]’ leaks here
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|->         assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   
#  238|           do_quit = false;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def728]
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: danger: ‘b[1]’ leaks here
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|->         assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   
#  238|           do_quit = false;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def729]
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: danger: ‘d[1]’ leaks here
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|->         assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   
#  238|           do_quit = false;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def730]
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: danger: ‘k[1]’ leaks here
#  234|   
#  235|           assert_se(sd_event_add_io(e, &x, a[0], EPOLLIN, io_handler, INT_TO_PTR('a')) >= 0);
#  236|->         assert_se(sd_event_add_io(e, &y, b[0], EPOLLIN, io_handler, INT_TO_PTR('b')) >= 0);
#  237|   
#  238|           do_quit = false;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def731]
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: danger: ‘a[1]’ leaks here
#  237|   
#  238|           do_quit = false;
#  239|->         assert_se(sd_event_add_time(e, &z, CLOCK_MONOTONIC, 0, 0, time_handler, INT_TO_PTR('c')) >= 0);
#  240|           assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def732]
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: danger: ‘b[1]’ leaks here
#  237|   
#  238|           do_quit = false;
#  239|->         assert_se(sd_event_add_time(e, &z, CLOCK_MONOTONIC, 0, 0, time_handler, INT_TO_PTR('c')) >= 0);
#  240|           assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def733]
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: danger: ‘d[1]’ leaks here
#  237|   
#  238|           do_quit = false;
#  239|->         assert_se(sd_event_add_time(e, &z, CLOCK_MONOTONIC, 0, 0, time_handler, INT_TO_PTR('c')) >= 0);
#  240|           assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def734]
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: danger: ‘k[1]’ leaks here
#  237|   
#  238|           do_quit = false;
#  239|->         assert_se(sd_event_add_time(e, &z, CLOCK_MONOTONIC, 0, 0, time_handler, INT_TO_PTR('c')) >= 0);
#  240|           assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def735]
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: danger: ‘a[1]’ leaks here
#  238|           do_quit = false;
#  239|           assert_se(sd_event_add_time(e, &z, CLOCK_MONOTONIC, 0, 0, time_handler, INT_TO_PTR('c')) >= 0);
#  240|->         assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def736]
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: danger: ‘b[1]’ leaks here
#  238|           do_quit = false;
#  239|           assert_se(sd_event_add_time(e, &z, CLOCK_MONOTONIC, 0, 0, time_handler, INT_TO_PTR('c')) >= 0);
#  240|->         assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def737]
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: danger: ‘d[1]’ leaks here
#  238|           do_quit = false;
#  239|           assert_se(sd_event_add_time(e, &z, CLOCK_MONOTONIC, 0, 0, time_handler, INT_TO_PTR('c')) >= 0);
#  240|->         assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def738]
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: danger: ‘k[1]’ leaks here
#  238|           do_quit = false;
#  239|           assert_se(sd_event_add_time(e, &z, CLOCK_MONOTONIC, 0, 0, time_handler, INT_TO_PTR('c')) >= 0);
#  240|->         assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def739]
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: danger: ‘a[1]’ leaks here
#  240|           assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   
#  242|->         assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def740]
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: danger: ‘b[1]’ leaks here
#  240|           assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   
#  242|->         assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def741]
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: danger: ‘d[1]’ leaks here
#  240|           assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   
#  242|->         assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def742]
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: danger: ‘k[1]’ leaks here
#  240|           assert_se(sd_event_add_exit(e, &q, exit_handler, INT_TO_PTR('g')) >= 0);
#  241|   
#  242|->         assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def743]
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: danger: ‘a[1]’ leaks here
#  241|   
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|->         assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def744]
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: danger: ‘b[1]’ leaks here
#  241|   
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|->         assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def745]
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: danger: ‘d[1]’ leaks here
#  241|   
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|->         assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def746]
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: danger: ‘k[1]’ leaks here
#  241|   
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|->         assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def747]
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: danger: ‘a[1]’ leaks here
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|->         assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def748]
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: danger: ‘b[1]’ leaks here
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|->         assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def749]
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: danger: ‘d[1]’ leaks here
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|->         assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def750]
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: danger: ‘k[1]’ leaks here
#  242|           assert_se(sd_event_source_set_priority(x, 99) >= 0);
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|->         assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def751]
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: danger: ‘a[1]’ leaks here
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);
#  245|->         assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def752]
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: danger: ‘b[1]’ leaks here
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);
#  245|->         assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def753]
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: danger: ‘d[1]’ leaks here
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);
#  245|->         assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def754]
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: danger: ‘k[1]’ leaks here
#  243|           assert_se(sd_event_source_get_priority(x, &priority) >= 0);
#  244|           assert_se(priority == 99);
#  245|->         assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def755]
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: danger: ‘a[1]’ leaks here
#  244|           assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|->         assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def756]
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: danger: ‘b[1]’ leaks here
#  244|           assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|->         assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def757]
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: danger: ‘d[1]’ leaks here
#  244|           assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|->         assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def758]
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: danger: ‘k[1]’ leaks here
#  244|           assert_se(priority == 99);
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|->         assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def759]
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: danger: ‘a[1]’ leaks here
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|->         assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|           assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def760]
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: danger: ‘b[1]’ leaks here
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|->         assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|           assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def761]
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: danger: ‘d[1]’ leaks here
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|->         assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|           assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def762]
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: danger: ‘k[1]’ leaks here
#  245|           assert_se(sd_event_source_set_enabled(y, SD_EVENT_ONESHOT) >= 0);
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|->         assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|           assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def763]
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: danger: ‘a[1]’ leaks here
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|           assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def764]
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: danger: ‘b[1]’ leaks here
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|           assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def765]
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: danger: ‘d[1]’ leaks here
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|           assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def766]
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: danger: ‘k[1]’ leaks here
#  246|           assert_se(sd_event_source_set_prepare(x, prepare_handler) >= 0);
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|           assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);
#  250|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def767]
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: danger: ‘a[1]’ leaks here
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|->         assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);
#  250|   
#  251|           /* Test for floating event sources */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def768]
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: danger: ‘b[1]’ leaks here
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|->         assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);
#  250|   
#  251|           /* Test for floating event sources */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def769]
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: danger: ‘d[1]’ leaks here
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|->         assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);
#  250|   
#  251|           /* Test for floating event sources */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def770]
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: danger: ‘k[1]’ leaks here
#  247|           assert_se(sd_event_source_set_priority(z, 50) >= 0);
#  248|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  249|->         assert_se(sd_event_source_set_prepare(z, prepare_handler) >= 0);
#  250|   
#  251|           /* Test for floating event sources */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def771]
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: danger: ‘a[1]’ leaks here
#  250|   
#  251|           /* Test for floating event sources */
#  252|->         assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+1) >= 0);
#  253|           assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def772]
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: danger: ‘b[1]’ leaks here
#  250|   
#  251|           /* Test for floating event sources */
#  252|->         assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+1) >= 0);
#  253|           assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def773]
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: danger: ‘d[1]’ leaks here
#  250|   
#  251|           /* Test for floating event sources */
#  252|->         assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+1) >= 0);
#  253|           assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def774]
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: danger: ‘k[1]’ leaks here
#  250|   
#  251|           /* Test for floating event sources */
#  252|->         assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+1) >= 0);
#  253|           assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def775]
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: danger: ‘a[1]’ leaks here
#  251|           /* Test for floating event sources */
#  252|           assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+1) >= 0);
#  253|->         assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   
#  255|           assert_se(write(a[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def776]
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: danger: ‘b[1]’ leaks here
#  251|           /* Test for floating event sources */
#  252|           assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+1) >= 0);
#  253|->         assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   
#  255|           assert_se(write(a[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def777]
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: danger: ‘d[1]’ leaks here
#  251|           /* Test for floating event sources */
#  252|           assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+1) >= 0);
#  253|->         assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   
#  255|           assert_se(write(a[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def778]
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: danger: ‘k[1]’ leaks here
#  251|           /* Test for floating event sources */
#  252|           assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGRTMIN+1) >= 0);
#  253|->         assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   
#  255|           assert_se(write(a[1], &ch, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def779]
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: danger: ‘a[1]’ leaks here
#  253|           assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   
#  255|->         assert_se(write(a[1], &ch, 1) >= 0);
#  256|           assert_se(write(b[1], &ch, 1) >= 0);
#  257|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def780]
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: danger: ‘b[1]’ leaks here
#  253|           assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   
#  255|->         assert_se(write(a[1], &ch, 1) >= 0);
#  256|           assert_se(write(b[1], &ch, 1) >= 0);
#  257|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def781]
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: danger: ‘d[1]’ leaks here
#  253|           assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   
#  255|->         assert_se(write(a[1], &ch, 1) >= 0);
#  256|           assert_se(write(b[1], &ch, 1) >= 0);
#  257|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def782]
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: danger: ‘k[1]’ leaks here
#  253|           assert_se(sd_event_add_signal(e, NULL, SIGRTMIN+1, NULL, NULL) >= 0);
#  254|   
#  255|->         assert_se(write(a[1], &ch, 1) >= 0);
#  256|           assert_se(write(b[1], &ch, 1) >= 0);
#  257|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def783]
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: danger: ‘a[1]’ leaks here
#  254|   
#  255|           assert_se(write(a[1], &ch, 1) >= 0);
#  256|->         assert_se(write(b[1], &ch, 1) >= 0);
#  257|   
#  258|           assert_se(!got_a && !got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def784]
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: danger: ‘b[1]’ leaks here
#  254|   
#  255|           assert_se(write(a[1], &ch, 1) >= 0);
#  256|->         assert_se(write(b[1], &ch, 1) >= 0);
#  257|   
#  258|           assert_se(!got_a && !got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def785]
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: danger: ‘d[1]’ leaks here
#  254|   
#  255|           assert_se(write(a[1], &ch, 1) >= 0);
#  256|->         assert_se(write(b[1], &ch, 1) >= 0);
#  257|   
#  258|           assert_se(!got_a && !got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def786]
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: danger: ‘k[1]’ leaks here
#  254|   
#  255|           assert_se(write(a[1], &ch, 1) >= 0);
#  256|->         assert_se(write(b[1], &ch, 1) >= 0);
#  257|   
#  258|           assert_se(!got_a && !got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def787]
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: danger: ‘a[1]’ leaks here
#  256|           assert_se(write(b[1], &ch, 1) >= 0);
#  257|   
#  258|->         assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def788]
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: danger: ‘b[1]’ leaks here
#  256|           assert_se(write(b[1], &ch, 1) >= 0);
#  257|   
#  258|->         assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def789]
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: danger: ‘d[1]’ leaks here
#  256|           assert_se(write(b[1], &ch, 1) >= 0);
#  257|   
#  258|->         assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def790]
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: danger: ‘k[1]’ leaks here
#  256|           assert_se(write(b[1], &ch, 1) >= 0);
#  257|   
#  258|->         assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def791]
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: danger: ‘a[1]’ leaks here
#  258|           assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|           assert_se(!got_a && got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def792]
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: danger: ‘b[1]’ leaks here
#  258|           assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|           assert_se(!got_a && got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def793]
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: danger: ‘d[1]’ leaks here
#  258|           assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|           assert_se(!got_a && got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def794]
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: danger: ‘k[1]’ leaks here
#  258|           assert_se(!got_a && !got_b && !got_c);
#  259|   
#  260|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|           assert_se(!got_a && got_b && !got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def795]
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: danger: ‘a[1]’ leaks here
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|->         assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def796]
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: danger: ‘b[1]’ leaks here
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|->         assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def797]
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: danger: ‘d[1]’ leaks here
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|->         assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def798]
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: danger: ‘k[1]’ leaks here
#  260|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  261|   
#  262|->         assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def799]
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: danger: ‘a[1]’ leaks here
#  262|           assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|           assert_se(!got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def800]
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: danger: ‘b[1]’ leaks here
#  262|           assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|           assert_se(!got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def801]
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: danger: ‘d[1]’ leaks here
#  262|           assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|           assert_se(!got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def802]
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: danger: ‘k[1]’ leaks here
#  262|           assert_se(!got_a && got_b && !got_c);
#  263|   
#  264|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|           assert_se(!got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def803]
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: danger: ‘a[1]’ leaks here
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|->         assert_se(!got_a && got_b && got_c);
#  267|   
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def804]
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: danger: ‘b[1]’ leaks here
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|->         assert_se(!got_a && got_b && got_c);
#  267|   
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def805]
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: danger: ‘d[1]’ leaks here
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|->         assert_se(!got_a && got_b && got_c);
#  267|   
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def806]
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: danger: ‘k[1]’ leaks here
#  264|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  265|   
#  266|->         assert_se(!got_a && got_b && got_c);
#  267|   
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def807]
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: danger: ‘a[1]’ leaks here
#  266|           assert_se(!got_a && got_b && got_c);
#  267|   
#  268|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|           assert_se(got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def808]
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: danger: ‘b[1]’ leaks here
#  266|           assert_se(!got_a && got_b && got_c);
#  267|   
#  268|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|           assert_se(got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def809]
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: danger: ‘d[1]’ leaks here
#  266|           assert_se(!got_a && got_b && got_c);
#  267|   
#  268|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|           assert_se(got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def810]
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: danger: ‘k[1]’ leaks here
#  266|           assert_se(!got_a && got_b && got_c);
#  267|   
#  268|->         assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|           assert_se(got_a && got_b && got_c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def811]
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: danger: ‘a[1]’ leaks here
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|->         assert_se(got_a && got_b && got_c);
#  271|   
#  272|           sd_event_source_unref(x);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def812]
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: danger: ‘b[1]’ leaks here
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|->         assert_se(got_a && got_b && got_c);
#  271|   
#  272|           sd_event_source_unref(x);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def813]
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: danger: ‘d[1]’ leaks here
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|->         assert_se(got_a && got_b && got_c);
#  271|   
#  272|           sd_event_source_unref(x);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def814]
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: danger: ‘k[1]’ leaks here
#  268|           assert_se(sd_event_run(e, UINT64_MAX) >= 1);
#  269|   
#  270|->         assert_se(got_a && got_b && got_c);
#  271|   
#  272|           sd_event_source_unref(x);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def815]
systemd-258/src/libsystemd/sd-event/test-event.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:272:9: danger: ‘a[1]’ leaks here
#  270|           assert_se(got_a && got_b && got_c);
#  271|   
#  272|->         sd_event_source_unref(x);
#  273|           sd_event_source_unref(y);
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def816]
systemd-258/src/libsystemd/sd-event/test-event.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:272:9: danger: ‘b[1]’ leaks here
#  270|           assert_se(got_a && got_b && got_c);
#  271|   
#  272|->         sd_event_source_unref(x);
#  273|           sd_event_source_unref(y);
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def817]
systemd-258/src/libsystemd/sd-event/test-event.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:272:9: danger: ‘d[1]’ leaks here
#  270|           assert_se(got_a && got_b && got_c);
#  271|   
#  272|->         sd_event_source_unref(x);
#  273|           sd_event_source_unref(y);
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def818]
systemd-258/src/libsystemd/sd-event/test-event.c:272:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:272:9: danger: ‘k[1]’ leaks here
#  270|           assert_se(got_a && got_b && got_c);
#  271|   
#  272|->         sd_event_source_unref(x);
#  273|           sd_event_source_unref(y);
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def819]
systemd-258/src/libsystemd/sd-event/test-event.c:273:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:273:9: danger: ‘a[1]’ leaks here
#  271|   
#  272|           sd_event_source_unref(x);
#  273|->         sd_event_source_unref(y);
#  274|   
#  275|           do_quit = true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def820]
systemd-258/src/libsystemd/sd-event/test-event.c:273:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:273:9: danger: ‘b[1]’ leaks here
#  271|   
#  272|           sd_event_source_unref(x);
#  273|->         sd_event_source_unref(y);
#  274|   
#  275|           do_quit = true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def821]
systemd-258/src/libsystemd/sd-event/test-event.c:273:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:273:9: danger: ‘d[1]’ leaks here
#  271|   
#  272|           sd_event_source_unref(x);
#  273|->         sd_event_source_unref(y);
#  274|   
#  275|           do_quit = true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def822]
systemd-258/src/libsystemd/sd-event/test-event.c:273:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:273:9: danger: ‘k[1]’ leaks here
#  271|   
#  272|           sd_event_source_unref(x);
#  273|->         sd_event_source_unref(y);
#  274|   
#  275|           do_quit = true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def823]
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: danger: ‘a[1]’ leaks here
#  274|   
#  275|           do_quit = true;
#  276|->         assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def824]
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: danger: ‘b[1]’ leaks here
#  274|   
#  275|           do_quit = true;
#  276|->         assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def825]
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: danger: ‘d[1]’ leaks here
#  274|   
#  275|           do_quit = true;
#  276|->         assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def826]
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: danger: ‘k[1]’ leaks here
#  274|   
#  275|           do_quit = true;
#  276|->         assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def827]
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: danger: ‘a[1]’ leaks here
#  275|           do_quit = true;
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def828]
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: danger: ‘b[1]’ leaks here
#  275|           do_quit = true;
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def829]
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: danger: ‘d[1]’ leaks here
#  275|           do_quit = true;
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def830]
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: danger: ‘k[1]’ leaks here
#  275|           do_quit = true;
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|->         assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def831]
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: danger: ‘a[1]’ leaks here
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|->         assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def832]
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: danger: ‘b[1]’ leaks here
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|->         assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def833]
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: danger: ‘d[1]’ leaks here
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|->         assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def834]
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: danger: ‘k[1]’ leaks here
#  276|           assert_se(sd_event_add_post(e, NULL, post_handler, NULL) >= 0);
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|->         assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def835]
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: danger: ‘a[1]’ leaks here
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def836]
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: danger: ‘b[1]’ leaks here
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def837]
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: danger: ‘d[1]’ leaks here
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def838]
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: danger: ‘k[1]’ leaks here
#  277|           assert_se(sd_event_now(e, CLOCK_MONOTONIC, &event_now) == 0);
#  278|           assert_se(sd_event_source_set_time(z, event_now + 200 * USEC_PER_MSEC) >= 0);
#  279|->         assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def839]
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: danger: ‘a[1]’ leaks here
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|->         assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|           assert_se(got_exit);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def840]
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: danger: ‘b[1]’ leaks here
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|->         assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|           assert_se(got_exit);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def841]
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: danger: ‘d[1]’ leaks here
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|->         assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|           assert_se(got_exit);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def842]
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: danger: ‘k[1]’ leaks here
#  279|           assert_se(sd_event_source_set_enabled(z, SD_EVENT_ONESHOT) >= 0);
#  280|   
#  281|->         assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|           assert_se(got_exit);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def843]
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: danger: ‘a[1]’ leaks here
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|->         assert_se(got_post);
#  283|           assert_se(got_exit);
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def844]
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: danger: ‘b[1]’ leaks here
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|->         assert_se(got_post);
#  283|           assert_se(got_exit);
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def845]
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: danger: ‘d[1]’ leaks here
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|->         assert_se(got_post);
#  283|           assert_se(got_exit);
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def846]
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: danger: ‘k[1]’ leaks here
#  280|   
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|->         assert_se(got_post);
#  283|           assert_se(got_exit);
#  284|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def847]
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: danger: ‘a[1]’ leaks here
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|->         assert_se(got_exit);
#  284|   
#  285|           sd_event_source_unref(z);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def848]
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: danger: ‘b[1]’ leaks here
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|->         assert_se(got_exit);
#  284|   
#  285|           sd_event_source_unref(z);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def849]
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: danger: ‘d[1]’ leaks here
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|->         assert_se(got_exit);
#  284|   
#  285|           sd_event_source_unref(z);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def850]
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: danger: ‘k[1]’ leaks here
#  281|           assert_se(sd_event_loop(e) >= 0);
#  282|           assert_se(got_post);
#  283|->         assert_se(got_exit);
#  284|   
#  285|           sd_event_source_unref(z);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def851]
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: danger: ‘a[1]’ leaks here
#  283|           assert_se(got_exit);
#  284|   
#  285|->         sd_event_source_unref(z);
#  286|           sd_event_source_unref(q);
#  287|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def852]
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: danger: ‘b[1]’ leaks here
#  283|           assert_se(got_exit);
#  284|   
#  285|->         sd_event_source_unref(z);
#  286|           sd_event_source_unref(q);
#  287|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def853]
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: danger: ‘d[1]’ leaks here
#  283|           assert_se(got_exit);
#  284|   
#  285|->         sd_event_source_unref(z);
#  286|           sd_event_source_unref(q);
#  287|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def854]
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: danger: ‘k[1]’ leaks here
#  283|           assert_se(got_exit);
#  284|   
#  285|->         sd_event_source_unref(z);
#  286|           sd_event_source_unref(q);
#  287|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def855]
systemd-258/src/libsystemd/sd-event/test-event.c:286:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:286:9: danger: ‘a[1]’ leaks here
#  284|   
#  285|           sd_event_source_unref(z);
#  286|->         sd_event_source_unref(q);
#  287|   
#  288|           sd_event_source_unref(w);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def856]
systemd-258/src/libsystemd/sd-event/test-event.c:286:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:286:9: danger: ‘b[1]’ leaks here
#  284|   
#  285|           sd_event_source_unref(z);
#  286|->         sd_event_source_unref(q);
#  287|   
#  288|           sd_event_source_unref(w);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def857]
systemd-258/src/libsystemd/sd-event/test-event.c:286:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:286:9: danger: ‘d[1]’ leaks here
#  284|   
#  285|           sd_event_source_unref(z);
#  286|->         sd_event_source_unref(q);
#  287|   
#  288|           sd_event_source_unref(w);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def858]
systemd-258/src/libsystemd/sd-event/test-event.c:286:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:286:9: danger: ‘k[1]’ leaks here
#  284|   
#  285|           sd_event_source_unref(z);
#  286|->         sd_event_source_unref(q);
#  287|   
#  288|           sd_event_source_unref(w);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def859]
systemd-258/src/libsystemd/sd-event/test-event.c:288:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:288:9: danger: ‘a[1]’ leaks here
#  286|           sd_event_source_unref(q);
#  287|   
#  288|->         sd_event_source_unref(w);
#  289|   
#  290|           sd_event_unref(e);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def860]
systemd-258/src/libsystemd/sd-event/test-event.c:288:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:288:9: danger: ‘b[1]’ leaks here
#  286|           sd_event_source_unref(q);
#  287|   
#  288|->         sd_event_source_unref(w);
#  289|   
#  290|           sd_event_unref(e);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def861]
systemd-258/src/libsystemd/sd-event/test-event.c:288:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:288:9: danger: ‘d[1]’ leaks here
#  286|           sd_event_source_unref(q);
#  287|   
#  288|->         sd_event_source_unref(w);
#  289|   
#  290|           sd_event_unref(e);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def862]
systemd-258/src/libsystemd/sd-event/test-event.c:288:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:288:9: danger: ‘k[1]’ leaks here
#  286|           sd_event_source_unref(q);
#  287|   
#  288|->         sd_event_source_unref(w);
#  289|   
#  290|           sd_event_unref(e);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def863]
systemd-258/src/libsystemd/sd-event/test-event.c:290:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:290:9: danger: ‘a[1]’ leaks here
#  288|           sd_event_source_unref(w);
#  289|   
#  290|->         sd_event_unref(e);
#  291|   
#  292|           safe_close_pair(a);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def864]
systemd-258/src/libsystemd/sd-event/test-event.c:290:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:290:9: danger: ‘b[1]’ leaks here
#  288|           sd_event_source_unref(w);
#  289|   
#  290|->         sd_event_unref(e);
#  291|   
#  292|           safe_close_pair(a);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def865]
systemd-258/src/libsystemd/sd-event/test-event.c:290:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:290:9: danger: ‘d[1]’ leaks here
#  288|           sd_event_source_unref(w);
#  289|   
#  290|->         sd_event_unref(e);
#  291|   
#  292|           safe_close_pair(a);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def866]
systemd-258/src/libsystemd/sd-event/test-event.c:290:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:290:9: danger: ‘k[1]’ leaks here
#  288|           sd_event_source_unref(w);
#  289|   
#  290|->         sd_event_unref(e);
#  291|   
#  292|           safe_close_pair(a);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def867]
systemd-258/src/libsystemd/sd-event/test-event.c:292:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘a[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:292:9: danger: ‘a[1]’ leaks here
#  290|           sd_event_unref(e);
#  291|   
#  292|->         safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def868]
systemd-258/src/libsystemd/sd-event/test-event.c:292:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:292:9: danger: ‘b[1]’ leaks here
#  290|           sd_event_unref(e);
#  291|   
#  292|->         safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def869]
systemd-258/src/libsystemd/sd-event/test-event.c:292:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:292:9: danger: ‘d[1]’ leaks here
#  290|           sd_event_unref(e);
#  291|   
#  292|->         safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def870]
systemd-258/src/libsystemd/sd-event/test-event.c:292:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:292:9: danger: ‘k[1]’ leaks here
#  290|           sd_event_unref(e);
#  291|   
#  292|->         safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def871]
systemd-258/src/libsystemd/sd-event/test-event.c:293:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘b[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:293:9: danger: ‘b[1]’ leaks here
#  291|   
#  292|           safe_close_pair(a);
#  293|->         safe_close_pair(b);
#  294|           safe_close_pair(d);
#  295|           safe_close_pair(k);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def872]
systemd-258/src/libsystemd/sd-event/test-event.c:293:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:293:9: danger: ‘d[1]’ leaks here
#  291|   
#  292|           safe_close_pair(a);
#  293|->         safe_close_pair(b);
#  294|           safe_close_pair(d);
#  295|           safe_close_pair(k);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def873]
systemd-258/src/libsystemd/sd-event/test-event.c:293:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:293:9: danger: ‘k[1]’ leaks here
#  291|   
#  292|           safe_close_pair(a);
#  293|->         safe_close_pair(b);
#  294|           safe_close_pair(d);
#  295|           safe_close_pair(k);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def874]
systemd-258/src/libsystemd/sd-event/test-event.c:294:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘d[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:294:9: danger: ‘d[1]’ leaks here
#  292|           safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|->         safe_close_pair(d);
#  295|           safe_close_pair(k);
#  296|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def875]
systemd-258/src/libsystemd/sd-event/test-event.c:294:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:294:9: danger: ‘k[1]’ leaks here
#  292|           safe_close_pair(a);
#  293|           safe_close_pair(b);
#  294|->         safe_close_pair(d);
#  295|           safe_close_pair(k);
#  296|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def876]
systemd-258/src/libsystemd/sd-event/test-event.c:295:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘k[1]’
systemd-258/src/libsystemd/sd-event/test-event.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:219:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:220:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:223:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:227:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:232:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:238:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:247:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:248:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:268:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:283:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-event/test-event.c:285:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-event/test-event.c:295:9: danger: ‘k[1]’ leaks here
#  293|           safe_close_pair(b);
#  294|           safe_close_pair(d);
#  295|->         safe_close_pair(k);
#  296|   }
#  297|   

Error: CPPCHECK_WARNING (CWE-457): [#def877]
systemd-258/src/libsystemd/sd-hwdb/sd-hwdb.c:102: error[uninitvar]: Uninitialized variable: &search.child_off
#  100|   
#  101|           search.c = c;
#  102|->         child = bsearch(&search, (const char *)node + le64toh(hwdb->head->node_size), node->children_count,
#  103|                           le64toh(hwdb->head->child_entry_size), trie_children_cmp_f);
#  104|           if (child)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def878]
systemd-258/src/libsystemd/sd-journal/catalog.c:623:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
systemd-258/src/libsystemd/sd-journal/catalog.c:610:5: enter_function: entry to ‘catalog_get’
systemd-258/src/libsystemd/sd-journal/catalog.c:613:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:614:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:614:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:616:29: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:619:13: call_function: calling ‘open_mmap’ from ‘catalog_get’
systemd-258/src/libsystemd/sd-journal/catalog.c:619:13: return_function: returning to ‘catalog_get’ from ‘open_mmap’
systemd-258/src/libsystemd/sd-journal/catalog.c:620:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:623:25: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:623:25: danger: use of uninitialized value ‘p’ here
#  621|                   return r;
#  622|   
#  623|->         const char *s = find_id(p, id);
#  624|           if (!s)
#  625|                   r = -ENOENT;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def879]
systemd-258/src/libsystemd/sd-journal/catalog.c:684:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘p’
systemd-258/src/libsystemd/sd-journal/catalog.c:672:5: enter_function: entry to ‘catalog_list’
systemd-258/src/libsystemd/sd-journal/catalog.c:675:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:677:29: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:680:13: call_function: calling ‘open_mmap’ from ‘catalog_list’
systemd-258/src/libsystemd/sd-journal/catalog.c:680:13: return_function: returning to ‘catalog_list’ from ‘open_mmap’
systemd-258/src/libsystemd/sd-journal/catalog.c:681:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/catalog.c:684:30: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/catalog.c:684:30: danger: use of uninitialized value ‘p’ here
#  682|                   return r;
#  683|   
#  684|->         const CatalogHeader *h = p;
#  685|           const CatalogItem *items = (const CatalogItem*) ((const uint8_t*) p + le64toh(h->header_size));
#  686|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def880]
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(544)’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4119:13: call_function: inlined call to ‘malloc_multiply’ from ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_false: following ‘false’ branch (when ‘fname’ is NULL)...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4142:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: danger: ‘malloc(544)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
# 4128|                                               DEFAULT_COMPRESS_THRESHOLD :
# 4129|                                               MAX(MIN_COMPRESS_THRESHOLD, compress_threshold_bytes),
# 4130|->                 .strict_order = FLAGS_SET(file_flags, JOURNAL_STRICT_ORDER),
# 4131|                   .newest_boot_id_prioq_idx = PRIOQ_IDX_NULL,
# 4132|                   .last_direction = _DIRECTION_INVALID,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def881]
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
# 4154|                    * it doesn't hurt in that case. */
# 4155|   
# 4156|->                 f->fd = openat_report_new(AT_FDCWD, f->path, f->open_flags|O_CLOEXEC|O_NONBLOCK, f->mode, &newly_created);
# 4157|                   if (f->fd < 0) {
# 4158|                           r = f->fd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def882]
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(544)’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4119:13: call_function: inlined call to ‘malloc_multiply’ from ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: danger: ‘malloc(544)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
# 4154|                    * it doesn't hurt in that case. */
# 4155|   
# 4156|->                 f->fd = openat_report_new(AT_FDCWD, f->path, f->open_flags|O_CLOEXEC|O_NONBLOCK, f->mode, &newly_created);
# 4157|                   if (f->fd < 0) {
# 4158|                           r = f->fd;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def883]
systemd-258/src/libsystemd/sd-journal/journal-file.c:4165:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4157:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4163:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4165:21: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
# 4163|                   f->close_fd = true;
# 4164|   
# 4165|->                 r = fd_nonblock(f->fd, false);
# 4166|                   if (r < 0)
# 4167|                           goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def884]
systemd-258/src/libsystemd/sd-journal/journal-file.c:4165:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(544)’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4119:13: call_function: inlined call to ‘malloc_multiply’ from ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4157:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4163:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4165:21: danger: ‘malloc(544)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
# 4163|                   f->close_fd = true;
# 4164|   
# 4165|->                 r = fd_nonblock(f->fd, false);
# 4166|                   if (r < 0)
# 4167|                           goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def885]
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4157:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4163:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4166:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4169:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4169:20: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: call_function: calling ‘mmap_prot_from_open_flags’ from ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: return_function: returning to ‘journal_file_open’ from ‘mmap_prot_from_open_flags’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: danger: ‘<unknown>’ leaks here; was allocated at [(16)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/15)
# 4181|           }
# 4182|   
# 4183|->         r = mmap_cache_add_fd(mmap_cache, f->fd, mmap_prot_from_open_flags(open_flags), &f->cache_fd);
# 4184|           if (r < 0)
# 4185|                   goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(544)’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4088:5: enter_function: entry to ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4105:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4106:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4107:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4108:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4110:14: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4119:13: call_function: inlined call to ‘malloc_multiply’ from ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4120:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4130:33: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4135:12: branch_true: following ‘true’ branch (when ‘fname’ is non-NULL)...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4136:27: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4137:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4151:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4156:25: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4157:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4163:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4166:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4169:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4169:20: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: call_function: calling ‘mmap_prot_from_open_flags’ from ‘journal_file_open’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: return_function: returning to ‘journal_file_open’ from ‘mmap_prot_from_open_flags’
systemd-258/src/libsystemd/sd-journal/journal-file.c:4183:13: danger: ‘malloc(544)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
# 4181|           }
# 4182|   
# 4183|->         r = mmap_cache_add_fd(mmap_cache, f->fd, mmap_prot_from_open_flags(open_flags), &f->cache_fd);
# 4184|           if (r < 0)
# 4185|                   goto fail;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def887]
systemd-258/src/libsystemd/sd-journal/journal-send.c:461:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/libsystemd/sd-journal/journal-send.c:441:14: enter_function: entry to ‘sd_journal_print_with_location’
systemd-258/src/libsystemd/sd-journal/journal-send.c:445:9: acquire_resource: ‘va_start’ called here
systemd-258/src/libsystemd/sd-journal/journal-send.c:446:13: call_function: calling ‘sd_journal_printv_with_location’ from ‘sd_journal_print_with_location’
#  459|           va_list aq;
#  460|   
#  461|->         assert_return(priority >= 0, -EINVAL);
#  462|           assert_return(priority <= 7, -EINVAL);
#  463|           assert_return(format, -EINVAL);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def888]
systemd-258/src/libsystemd/sd-journal/journal-send.c:462:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/libsystemd/sd-journal/journal-send.c:441:14: enter_function: entry to ‘sd_journal_print_with_location’
systemd-258/src/libsystemd/sd-journal/journal-send.c:445:9: acquire_resource: ‘va_start’ called here
systemd-258/src/libsystemd/sd-journal/journal-send.c:446:13: call_function: calling ‘sd_journal_printv_with_location’ from ‘sd_journal_print_with_location’
#  460|   
#  461|           assert_return(priority >= 0, -EINVAL);
#  462|->         assert_return(priority <= 7, -EINVAL);
#  463|           assert_return(format, -EINVAL);
#  464|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def889]
systemd-258/src/libsystemd/sd-journal/journal-send.c:465:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/libsystemd/sd-journal/journal-send.c:441:14: enter_function: entry to ‘sd_journal_print_with_location’
systemd-258/src/libsystemd/sd-journal/journal-send.c:445:9: acquire_resource: ‘va_start’ called here
systemd-258/src/libsystemd/sd-journal/journal-send.c:446:13: call_function: calling ‘sd_journal_printv_with_location’ from ‘sd_journal_print_with_location’
#  463|           assert_return(format, -EINVAL);
#  464|   
#  465|->         xsprintf(p, "PRIORITY=%i", LOG_PRI(priority));
#  466|   
#  467|           va_copy(aq, ap);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def890]
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:99:24: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘w’
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:255:12: enter_function: entry to ‘mmap_try_harder’
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:256:24: call_function: calling ‘mmap_cache_fd_cache’ from ‘mmap_try_harder’
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:256:24: return_function: returning to ‘mmap_try_harder’ from ‘mmap_cache_fd_cache’
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:258:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:264:20: branch_false: following ‘false’ branch (when ‘ptr == 18446744073709551615’)...
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:268:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:268:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:273:22: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:273:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:276:17: call_function: inlined call to ‘window_free’ from ‘mmap_try_harder’
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:276:17: call_function: inlined call to ‘window_free’ from ‘mmap_try_harder’
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:264:20: branch_false: following ‘false’ branch (when ‘ptr == 18446744073709551615’)...
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:268:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:268:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:273:22: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:273:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/mmap-cache.c:276:17: call_function: inlined call to ‘window_free’ from ‘mmap_try_harder’
#   97|           assert(w);
#   98|   
#   99|->         MMapCache *m = mmap_cache_fd_cache(w->fd);
#  100|   
#  101|           if (w->ptr)

Error: GCC_ANALYZER_WARNING (CWE-416): [#def891]
systemd-258/src/libsystemd/sd-journal/sd-journal.c:206:16: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘m’
systemd-258/src/libsystemd/sd-journal/sd-journal.c:435:15: enter_function: entry to ‘sd_journal_flush_matches’
systemd-258/src/libsystemd/sd-journal/sd-journal.c:439:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/sd-journal.c:440:17: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/sd-journal.c:440:17: call_function: calling ‘match_free’ from ‘sd_journal_flush_matches’
#  204|           assert(m);
#  205|   
#  206|->         while (m->matches)
#  207|                   match_free(m->matches);
#  208|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def892]
systemd-258/src/libsystemd/sd-journal/sd-journal.c:212:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*m.data’
systemd-258/src/libsystemd/sd-journal/sd-journal.c:435:15: enter_function: entry to ‘sd_journal_flush_matches’
systemd-258/src/libsystemd/sd-journal/sd-journal.c:439:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/sd-journal.c:440:17: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/sd-journal.c:440:17: call_function: calling ‘match_free’ from ‘sd_journal_flush_matches’
#  210|                   LIST_REMOVE(matches, m->parent->matches, m);
#  211|   
#  212|->         free(m->data);
#  213|           return mfree(m);
#  214|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def893]
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:31:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(fn, 524290)’
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:70:12: enter_function: entry to ‘run_test’
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:81:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:84:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:84:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:87:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:89:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:90:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:90:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:91:16: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:95:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:107:28: branch_true: following ‘true’ branch (when ‘n != 6000’)...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:108:38: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:113:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:114:25: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:115:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:108:38: call_function: inlined call to ‘freep’ from ‘run_test’
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:142:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:145:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:147:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:154:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:157:15: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:160:34: branch_true: following ‘true’ branch (when ‘end > p’)...
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:161:17: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-verify.c:161:17: call_function: calling ‘bit_toggle’ from ‘run_test’
#   29|           assert_se(fd >= 0);
#   30|   
#   31|->         r = pread(fd, &b, 1, p/8);
#   32|           assert_se(r == 1);
#   33|   

Error: CPPCHECK_WARNING (CWE-457): [#def894]
systemd-258/src/libsystemd/sd-json/json-util.c:66: error[uninitvar]: Uninitialized variable: i
#   64|                   uint64_t b;
#   65|   
#   66|->                 if (!sd_json_variant_is_unsigned(i))
#   67|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is not an unsigned integer.", k, strna(name));
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def895]
systemd-258/src/libsystemd/sd-json/json-util.c:235:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘filename’
systemd-258/src/libsystemd/sd-json/json-util.c:224:5: enter_function: entry to ‘json_dispatch_filename’
systemd-258/src/libsystemd/sd-json/json-util.c:225:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-json/json-util.c:226:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-json/json-util.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-json/json-util.c:231:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-json/json-util.c:231:13: call_function: calling ‘json_dispatch_const_filename’ from ‘json_dispatch_filename’
systemd-258/src/libsystemd/sd-json/json-util.c:231:13: return_function: returning to ‘json_dispatch_filename’ from ‘json_dispatch_const_filename’
systemd-258/src/libsystemd/sd-json/json-util.c:232:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-json/json-util.c:235:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-json/json-util.c:235:13: danger: use of uninitialized value ‘filename’ here
#  233|                   return r;
#  234|   
#  235|->         if (free_and_strdup(n, filename) < 0)
#  236|                   return json_log_oom(variant, flags);
#  237|   

Error: CPPCHECK_WARNING (CWE-457): [#def896]
systemd-258/src/libsystemd/sd-json/sd-json.c:4279: error[legacyUninitvar]: Uninitialized variable: userdata
# 4277|                           }
# 4278|   
# 4279|->                         cb = va_arg(ap, sd_json_build_callback_t);
# 4280|                           userdata = va_arg(ap, void *);
# 4281|   

Error: CPPCHECK_WARNING (CWE-457): [#def897]
systemd-258/src/libsystemd/sd-json/sd-json.c:4862: error[legacyUninitvar]: Uninitialized variable: userdata
# 4860|   
# 4861|                           n = va_arg(ap, const char*);
# 4862|->                         cb = va_arg(ap, sd_json_build_callback_t);
# 4863|                           userdata = va_arg(ap, void*);
# 4864|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def898]
systemd-258/src/libsystemd/sd-json/sd-json.c:5661:16: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
# 5659|                   return CMP(*a, *b);
# 5660|   
# 5661|->         return strcmp(sd_json_variant_string(*a), sd_json_variant_string(*b));
# 5662|   }
# 5663|   

Error: GCC_ANALYZER_WARNING (CWE-131): [#def899]
systemd-258/src/libsystemd/sd-login/sd-login.c:905:29: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
systemd-258/src/libsystemd/sd-login/sd-login.c:858:14: enter_function: entry to ‘sd_seat_get_sessions’
systemd-258/src/libsystemd/sd-login/sd-login.c:870:13: call_function: calling ‘file_of_seat’ from ‘sd_seat_get_sessions’
systemd-258/src/libsystemd/sd-login/sd-login.c:870:13: return_function: returning to ‘sd_seat_get_sessions’ from ‘file_of_seat’
systemd-258/src/libsystemd/sd-login/sd-login.c:871:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:874:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:877:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:879:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:879:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:882:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:882:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:890:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:890:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:891:24: call_function: calling ‘malloc_multiply’ from ‘sd_seat_get_sessions’
systemd-258/src/libsystemd/sd-login/sd-login.c:891:24: return_function: returning to ‘sd_seat_get_sessions’ from ‘malloc_multiply’
systemd-258/src/libsystemd/sd-login/sd-login.c:892:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:896:34: branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:900:28: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:902:28: branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:902:28: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:905:51: branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:905:29: danger: assigned to ‘uid_t *’ {{aka ‘unsigned int *’}} here; ‘sizeof (uid_t {{aka unsigned int}})’ is ‘4’
#  903|                                   break;
#  904|   
#  905|->                         r = parse_uid(word, &uids[n++]);
#  906|                           if (r < 0)
#  907|                                   return r;

Error: CPPCHECK_WARNING (CWE-401): [#def900]
systemd-258/src/libsystemd/sd-login/sd-login.c:1090: error[memleak]: Memory leak: c
# 1088|                   *ret_class = TAKE_PTR(c);
# 1089|   
# 1090|->         return 0;
# 1091|   }
# 1092|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def901]
systemd-258/src/libsystemd/sd-login/sd-login.c:1091:1: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/libsystemd/sd-login/sd-login.c:1066:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:1067:21: branch_true: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:1067:21: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-login/sd-login.c:1068:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-login/sd-login.c:1087:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:1087:12: branch_false: following ‘false’ branch (when ‘ret_class’ is NULL)...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-login/sd-login.c:1091:1: danger: ‘c’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1089|   
# 1090|           return 0;
# 1091|-> }
# 1092|   
# 1093|   _public_ int sd_machine_get_ifindices(const char *machine, int **ret_ifindices) {

Error: CPPCHECK_WARNING (CWE-457): [#def902]
systemd-258/src/libsystemd/sd-login/test-login.c:29: error[uninitvar]: Uninitialized variable: &inc
#   27|   
#   28|           for (int k = 0; k < count; k++) {
#   29|->                 sprintf(*buf + pos, "%s"UID_FMT"%n", k > 0 ? " " : "", uids[k], &inc);
#   30|                   pos += inc;
#   31|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def903]
systemd-258/src/libsystemd/sd-login/test-login.c:30:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘inc’
systemd-258/src/libsystemd/sd-login/test-login.c:26:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-login/test-login.c:28:25: branch_true: following ‘true’ branch (when ‘k < count’)...
systemd-258/src/libsystemd/sd-login/test-login.c:29:76: branch_true: ...to here
systemd-258/src/libsystemd/sd-login/test-login.c:29:17: branch_false: following ‘false’ branch (when ‘k == 0’)...
 branch_false: ...to here
systemd-258/src/libsystemd/sd-login/test-login.c:30:21: danger: use of uninitialized value ‘inc’ here
#   28|           for (int k = 0; k < count; k++) {
#   29|                   sprintf(*buf + pos, "%s"UID_FMT"%n", k > 0 ? " " : "", uids[k], &inc);
#   30|->                 pos += inc;
#   31|           }
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def904]
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:243:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:633:5: enter_function: entry to ‘sd_netlink_message_open_container_union’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:637:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:638:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:638:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:639:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:639:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:641:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:641:13: call_function: calling ‘message_attribute_has_type’ from ‘sd_netlink_message_open_container_union’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:641:13: return_function: returning to ‘sd_netlink_message_open_container_union’ from ‘message_attribute_has_type’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:642:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:646:39: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:648:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:651:23: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:655:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:658:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:658:13: call_function: calling ‘sd_netlink_message_append_string’ from ‘sd_netlink_message_open_container_union’
#  241|                   return r;
#  242|   
#  243|->         if (size) {
#  244|                   length = strnlen(data, size+1);
#  245|                   if (length > size)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def905]
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:624:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘size’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:584:5: enter_function: entry to ‘sd_netlink_message_open_container’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:588:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:589:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:589:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:591:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:591:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:593:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:593:13: call_function: calling ‘message_attribute_has_type’ from ‘sd_netlink_message_open_container’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:593:13: return_function: returning to ‘sd_netlink_message_open_container’ from ‘message_attribute_has_type’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:598:21: call_function: calling ‘message_attribute_has_type’ from ‘sd_netlink_message_open_container’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:598:21: return_function: returning to ‘sd_netlink_message_open_container’ from ‘message_attribute_has_type’
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:599:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:602:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:603:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:607:47: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:609:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:613:25: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:621:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:624:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-message.c:624:13: danger: use of uninitialized value ‘size’ here
#  622|                   return -EOPNOTSUPP;
#  623|   
#  624|->         r = add_rtattr(m, attr_type | NLA_F_NESTED, NULL, size);
#  625|           if (r < 0)
#  626|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def906]
systemd-258/src/libsystemd/sd-netlink/netlink-util.c:664:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
systemd-258/src/libsystemd/sd-netlink/netlink-util.c:660:14: acquire_resource: socket created here
systemd-258/src/libsystemd/sd-netlink/netlink-util.c:661:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/libsystemd/sd-netlink/netlink-util.c:664:16: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/netlink-util.c:664:16: danger: ‘fd’ leaks here
#  662|                   return -errno;
#  663|   
#  664|->         return fd_move_above_stdio(fd);
#  665|   }
#  666|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def907]
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:139:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#  137|           }
#  138|           hashmap_free(nl->reply_callbacks);
#  139|->         prioq_free(nl->reply_callbacks_prioq);
#  140|   
#  141|           sd_event_source_unref(nl->io_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def908]
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:141:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#  139|           prioq_free(nl->reply_callbacks_prioq);
#  140|   
#  141|->         sd_event_source_unref(nl->io_event_source);
#  142|           sd_event_source_unref(nl->time_event_source);
#  143|           sd_event_unref(nl->event);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def909]
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#  140|   
#  141|           sd_event_source_unref(nl->io_event_source);
#  142|->         sd_event_source_unref(nl->time_event_source);
#  143|           sd_event_unref(nl->event);
#  144|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def910]
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:143:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nl’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:75:5: enter_function: entry to ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:79:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: call_function: calling ‘netlink_new’ from ‘sd_netlink_open_fd’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:82:13: return_function: returning to ‘sd_netlink_open_fd’ from ‘netlink_new’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:83:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:86:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:76:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘sd_netlink_open_fd’
#  141|           sd_event_source_unref(nl->io_event_source);
#  142|           sd_event_source_unref(nl->time_event_source);
#  143|->         sd_event_unref(nl->event);
#  144|   
#  145|           hashmap_free(nl->broadcast_group_refs);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def911]
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:153:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.n_ref’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:30:12: enter_function: entry to ‘netlink_new’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:33:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:35:14: call_function: inlined call to ‘malloc_multiply’ from ‘netlink_new’
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:36:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:68:39: branch_false: ...to here
systemd-258/src/libsystemd/sd-netlink/sd-netlink.c:31:50: call_function: inlined call to ‘sd_netlink_unrefp’ from ‘netlink_new’
#  151|   }
#  152|   
#  153|-> DEFINE_TRIVIAL_REF_UNREF_FUNC(sd_netlink, sd_netlink, netlink_free);
#  154|   
#  155|   int sd_netlink_send(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def912]
systemd-258/src/libsystemd/sd-path/path-lookup.c:251:1: warning[-Wanalyzer-malloc-leak]: leak of ‘a’
systemd-258/src/libsystemd/sd-path/path-lookup.c:174:12: enter_function: entry to ‘acquire_lookup_dirs’
systemd-258/src/libsystemd/sd-path/path-lookup.c:203:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-path/path-lookup.c:204:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-path/path-lookup.c:204:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-path/path-lookup.c:205:9: branch_true: ...to here
systemd-258/src/libsystemd/sd-path/path-lookup.c:205:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-path/path-lookup.c:206:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-path/path-lookup.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-path/path-lookup.c:208:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-path/path-lookup.c:210:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-path/path-lookup.c:212:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-path/path-lookup.c:212:12: branch_false: following ‘false’ branch (when ‘persistent’ is non-NULL)...
systemd-258/src/libsystemd/sd-path/path-lookup.c:215:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-path/path-lookup.c:215:9: branch_false: following ‘false’ branch (when ‘scope != 1’)...
systemd-258/src/libsystemd/sd-path/path-lookup.c:217:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-path/path-lookup.c:219:21: acquire_memory: allocated here
systemd-258/src/libsystemd/sd-path/path-lookup.c:221:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-path/path-lookup.c:221:21: branch_false: ...to here
systemd-258/src/libsystemd/sd-path/path-lookup.c:221:21: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-path/path-lookup.c:200:41: call_function: inlined call to ‘freep’ from ‘acquire_lookup_dirs’
systemd-258/src/libsystemd/sd-path/path-lookup.c:251:1: danger: ‘a’ leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
#  249|                   assert_not_reached();
#  250|           }
#  251|-> }
#  252|   
#  253|   static int patch_root_prefix(char **p, const char *root_dir) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def913]
systemd-258/src/libsystemd/sd-path/sd-path.c:512:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/libsystemd/sd-path/sd-path.c:520:12: enter_function: entry to ‘get_search’
systemd-258/src/libsystemd/sd-path/sd-path.c:523:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-path/sd-path.c:525:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-path/sd-path.c:538:24: call_function: calling ‘search_from_environment’ from ‘get_search’
#  510|           *ret = TAKE_PTR(l);
#  511|           return 0;
#  512|-> }
#  513|   
#  514|   #if HAVE_SPLIT_BIN

Error: GCC_ANALYZER_WARNING (CWE-401): [#def914]
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:710:31: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:1236:12: enter_function: entry to ‘io_callback’
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:1237:31: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:1240:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:1240:13: call_function: calling ‘sd_resolve_process’ from ‘io_callback’
#  708|   
#  709|           if (s.ai_addrlen > 0) {
#  710|->                 ai->ai_addr = memdup((const uint8_t*) *p + sizeof(AddrInfoSerialization), s.ai_addrlen);
#  711|                   if (!ai->ai_addr) {
#  712|                           free(ai);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def915]
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:718:36: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:1236:12: enter_function: entry to ‘io_callback’
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:1237:31: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:1240:13: branch_false: ...to here
systemd-258/src/libsystemd/sd-resolve/sd-resolve.c:1240:13: call_function: calling ‘sd_resolve_process’ from ‘io_callback’
#  716|   
#  717|           if (s.canonname_len > 0) {
#  718|->                 ai->ai_canonname = memdup((const uint8_t*) *p + sizeof(AddrInfoSerialization) + s.ai_addrlen, s.canonname_len);
#  719|                   if (!ai->ai_canonname) {
#  720|                           free(ai->ai_addr);

Error: CPPCHECK_WARNING (CWE-457): [#def916]
systemd-258/src/libsystemd/sd-varlink/sd-varlink-idl.c:1764: error[uninitvar]: Uninitialized variable: i
# 1762|   
# 1763|                   JSON_VARIANT_ARRAY_FOREACH(i, v) {
# 1764|->                         r = varlink_idl_validate_field_element_type(field, i);
# 1765|                           if (r < 0)
# 1766|                                   return r;

Error: CPPCHECK_WARNING (CWE-457): [#def917]
systemd-258/src/libsystemd/sd-varlink/sd-varlink-idl.c:1777: error[uninitvar]: Uninitialized variable: e
# 1775|   
# 1776|                   JSON_VARIANT_OBJECT_FOREACH(k, e, v) {
# 1777|->                         r = varlink_idl_validate_field_element_type(field, e);
# 1778|                           if (r < 0)
# 1779|                                   return r;

Error: CPPCHECK_WARNING (CWE-457): [#def918]
systemd-258/src/libsystemd/sd-varlink/sd-varlink-idl.c:1866: error[uninitvar]: Uninitialized variable: name
# 1864|                   const char *name;
# 1865|                   JSON_VARIANT_OBJECT_FOREACH(name, e, v) {
# 1866|->                         if (!varlink_idl_find_field(symbol, name)) {
# 1867|                                   if (reterr_bad_field)
# 1868|                                           *reterr_bad_field = name;

Error: COMPILER_WARNING: [#def919] [important]
systemd-258/src/libsystemd/sd-varlink/sd-varlink.c:3126:32: error[error]: ‘SCM_MAX_FD’ undeclared (first use in this function)
# 3124|                   return -EPERM;
# 3125|   
# 3126|->         if (v->n_pushed_fds >= SCM_MAX_FD) /* Kernel doesn't support more than 253 fds per message, refuse early hence */
# 3127|                   return -ENOBUFS;
# 3128|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def920]
systemd-258/src/libudev/libudev-device.c:216:27: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(128)’
systemd-258/src/libudev/libudev-device.c:348:30: enter_function: entry to ‘udev_device_new_from_environment’
systemd-258/src/libudev/libudev-device.c:353:12: branch_false: following ‘false’ branch...
systemd-258/src/libudev/libudev-device.c:356:16: branch_false: ...to here
systemd-258/src/libudev/libudev-device.c:356:16: call_function: calling ‘udev_device_new’ from ‘udev_device_new_from_environment’
#  214|                   .n_ref = 1,
#  215|                   .udev = udev,
#  216|->                 .device = sd_device_ref(device),
#  217|                   .properties = TAKE_PTR(properties),
#  218|                   .all_tags = TAKE_PTR(all_tags),

Error: GCC_ANALYZER_WARNING (CWE-457): [#def921]
systemd-258/src/libudev/libudev-util.h:10:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
systemd-258/src/libudev/test-libudev.c:125:13: enter_function: entry to ‘test_device_devnum’
systemd-258/src/libudev/test-libudev.c:129:9: branch_true: following ‘true’ branch...
systemd-258/src/libudev/test-libudev.c:129:9: branch_true: ...to here
systemd-258/src/libudev/test-libudev.c:127:59: call_function: calling ‘udev_device_unrefp’ from ‘test_device_devnum’
#    8|   /* Cleanup functions */
#    9|   DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev*, udev_unref);
#   10|-> DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_device*, udev_device_unref);
#   11|   DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_enumerate*, udev_enumerate_unref);
#   12|   DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def922]
systemd-258/src/login/logind-button.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/login/logind-button.c:67:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-button.c:68:9: branch_false: ...to here
systemd-258/src/login/logind-button.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-button.c:70:13: branch_false: ...to here
systemd-258/src/login/logind-button.c:71:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
systemd-258/src/login/logind-button.c:74:19: branch_false: ...to here
systemd-258/src/login/logind-button.c:74:19: acquire_memory: allocated here
systemd-258/src/login/logind-button.c:75:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-button.c:78:13: branch_false: ...to here
systemd-258/src/login/logind-button.c:78:13: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   76|                   return mfree(b);
#   77|   
#   78|->         if (hashmap_put(m->buttons, b->name, b) < 0) {
#   79|                   free(b->name);
#   80|                   return mfree(b);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def923]
systemd-258/src/login/logind-button.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
systemd-258/src/login/logind-button.c:67:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-button.c:68:9: branch_false: ...to here
systemd-258/src/login/logind-button.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-button.c:70:13: branch_false: ...to here
systemd-258/src/login/logind-button.c:70:13: acquire_memory: allocated here
systemd-258/src/login/logind-button.c:71:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
systemd-258/src/login/logind-button.c:74:19: branch_false: ...to here
systemd-258/src/login/logind-button.c:75:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-button.c:78:13: branch_false: ...to here
systemd-258/src/login/logind-button.c:78:13: danger: ‘b’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   76|                   return mfree(b);
#   77|   
#   78|->         if (hashmap_put(m->buttons, b->name, b) < 0) {
#   79|                   free(b->name);
#   80|                   return mfree(b);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def924]
systemd-258/src/login/logind-device.c:27:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/login/logind-device.c:16:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-device.c:17:9: branch_false: ...to here
systemd-258/src/login/logind-device.c:17:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-device.c:19:13: branch_false: ...to here
systemd-258/src/login/logind-device.c:20:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
systemd-258/src/login/logind-device.c:23:20: branch_false: ...to here
systemd-258/src/login/logind-device.c:23:20: acquire_memory: allocated here
systemd-258/src/login/logind-device.c:24:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-device.c:27:13: branch_false: ...to here
systemd-258/src/login/logind-device.c:27:13: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   25|                   return mfree(d);
#   26|   
#   27|->         if (hashmap_put(m->devices, d->sysfs, d) < 0) {
#   28|                   free(d->sysfs);
#   29|                   return mfree(d);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def925]
systemd-258/src/login/logind-device.c:27:13: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/login/logind-device.c:16:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-device.c:17:9: branch_false: ...to here
systemd-258/src/login/logind-device.c:17:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-device.c:19:13: branch_false: ...to here
systemd-258/src/login/logind-device.c:19:13: acquire_memory: allocated here
systemd-258/src/login/logind-device.c:20:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
systemd-258/src/login/logind-device.c:23:20: branch_false: ...to here
systemd-258/src/login/logind-device.c:24:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-device.c:27:13: branch_false: ...to here
systemd-258/src/login/logind-device.c:27:13: danger: ‘d’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   25|                   return mfree(d);
#   26|   
#   27|->         if (hashmap_put(m->devices, d->sysfs, d) < 0) {
#   28|                   free(d->sysfs);
#   29|                   return mfree(d);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def926]
systemd-258/src/login/logind-inhibit.c:50:31: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(id)’
systemd-258/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:49:23: acquire_memory: allocated here
systemd-258/src/login/logind-inhibit.c:50:31: danger: ‘strdup(id)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
#   48|                   .manager = m,
#   49|                   .id = strdup(id),
#   50|->                 .state_file = path_join("/run/systemd/inhibit/", id),
#   51|                   .what = _INHIBIT_WHAT_INVALID,
#   52|                   .mode = _INHIBIT_MODE_INVALID,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def927]
systemd-258/src/login/logind-inhibit.c:74:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(120)’
systemd-258/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:58:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   72|                   return NULL;
#   73|   
#   74|->         free(i->who);
#   75|           free(i->why);
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def928]
systemd-258/src/login/logind-inhibit.c:74:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*i.who’
systemd-258/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   72|                   return NULL;
#   73|   
#   74|->         free(i->who);
#   75|           free(i->why);
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def929]
systemd-258/src/login/logind-inhibit.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:49:23: acquire_memory: allocated here
systemd-258/src/login/logind-inhibit.c:58:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:58:13: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:58:13: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   76|   
#   77|           sd_event_source_unref(i->event_source);
#   78|->         safe_close(i->fifo_fd);
#   79|   
#   80|           hashmap_remove(i->manager->inhibitors, i->id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def930]
systemd-258/src/login/logind-inhibit.c:80:48: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:49:23: acquire_memory: allocated here
systemd-258/src/login/logind-inhibit.c:58:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:58:13: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:58:13: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   78|           safe_close(i->fifo_fd);
#   79|   
#   80|->         hashmap_remove(i->manager->inhibitors, i->id);
#   81|   
#   82|           /* Note that we don't remove neither the state file nor the fifo path here, since we want both to

Error: GCC_ANALYZER_WARNING (CWE-401): [#def931]
systemd-258/src/login/logind-inhibit.c:84:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/login/logind-inhibit.c:35:5: enter_function: entry to ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:43:13: call_function: inlined call to ‘malloc_multiply’ from ‘inhibitor_new’
systemd-258/src/login/logind-inhibit.c:44:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:49:23: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:49:23: acquire_memory: allocated here
systemd-258/src/login/logind-inhibit.c:58:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-inhibit.c:58:13: branch_false: ...to here
systemd-258/src/login/logind-inhibit.c:58:13: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/login/logind-inhibit.c:36:47: call_function: inlined call to ‘inhibitor_freep’ from ‘inhibitor_new’
#   82|           /* Note that we don't remove neither the state file nor the fifo path here, since we want both to
#   83|            * survive daemon restarts */
#   84|->         free(i->fifo_path);
#   85|           free(i->state_file);
#   86|           free(i->id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def932]
systemd-258/src/login/logind-seat.c:54:31: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(id)’
systemd-258/src/login/logind-seat.c:36:5: enter_function: entry to ‘seat_new’
systemd-258/src/login/logind-seat.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:42:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:42:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:44:14: branch_false: ...to here
systemd-258/src/login/logind-seat.c:44:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:44:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258/src/login/logind-seat.c:44:12: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-seat.c:47:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:48:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:53:23: branch_false: ...to here
systemd-258/src/login/logind-seat.c:53:23: acquire_memory: allocated here
systemd-258/src/login/logind-seat.c:54:31: danger: ‘strdup(id)’ leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
#   52|                   .manager = m,
#   53|                   .id = strdup(id),
#   54|->                 .state_file = path_join("/run/systemd/seats/", id),
#   55|           };
#   56|           if (!s->id || !s->state_file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def933]
systemd-258/src/login/logind-seat.c:71:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(96)’
systemd-258/src/login/logind-seat.c:36:5: enter_function: entry to ‘seat_new’
systemd-258/src/login/logind-seat.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:42:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:42:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:44:14: branch_false: ...to here
systemd-258/src/login/logind-seat.c:44:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:44:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258/src/login/logind-seat.c:44:12: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-seat.c:47:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:48:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:53:23: branch_false: ...to here
systemd-258/src/login/logind-seat.c:56:12: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-seat.c:37:37: call_function: inlined call to ‘seat_freep’ from ‘seat_new’
#   69|                   return NULL;
#   70|   
#   71|->         if (s->in_gc_queue)
#   72|                   LIST_REMOVE(gc_queue, s->manager->seat_gc_queue, s);
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def934]
systemd-258/src/login/logind-seat.c:71:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*s)[72]’
systemd-258/src/login/logind-seat.c:36:5: enter_function: entry to ‘seat_new’
systemd-258/src/login/logind-seat.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:42:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:42:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:44:14: branch_false: ...to here
systemd-258/src/login/logind-seat.c:44:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:44:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258/src/login/logind-seat.c:44:12: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-seat.c:47:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:48:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:53:23: branch_false: ...to here
systemd-258/src/login/logind-seat.c:37:37: call_function: inlined call to ‘seat_freep’ from ‘seat_new’
#   69|                   return NULL;
#   70|   
#   71|->         if (s->in_gc_queue)
#   72|                   LIST_REMOVE(gc_queue, s->manager->seat_gc_queue, s);
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def935]
systemd-258/src/login/logind-seat.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/login/logind-seat.c:36:5: enter_function: entry to ‘seat_new’
systemd-258/src/login/logind-seat.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:42:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:42:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:44:14: branch_false: ...to here
systemd-258/src/login/logind-seat.c:44:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:44:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258/src/login/logind-seat.c:44:12: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-seat.c:47:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:48:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:53:23: branch_false: ...to here
systemd-258/src/login/logind-seat.c:53:23: acquire_memory: allocated here
systemd-258/src/login/logind-seat.c:56:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:56:13: branch_false: ...to here
systemd-258/src/login/logind-seat.c:56:13: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-seat.c:37:37: call_function: inlined call to ‘seat_freep’ from ‘seat_new’
#   82|           hashmap_remove(s->manager->seats, s->id);
#   83|   
#   84|->         set_free(s->uevents);
#   85|           free(s->positions);
#   86|           free(s->state_file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def936]
systemd-258/src/login/logind-seat.c:85:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/login/logind-seat.c:36:5: enter_function: entry to ‘seat_new’
systemd-258/src/login/logind-seat.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:41:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:42:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:42:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:44:14: branch_false: ...to here
systemd-258/src/login/logind-seat.c:44:14: call_function: calling ‘seat_name_is_valid’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:44:14: return_function: returning to ‘seat_new’ from ‘seat_name_is_valid’
systemd-258/src/login/logind-seat.c:44:12: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-seat.c:47:13: call_function: inlined call to ‘malloc_multiply’ from ‘seat_new’
systemd-258/src/login/logind-seat.c:48:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:53:23: branch_false: ...to here
systemd-258/src/login/logind-seat.c:53:23: acquire_memory: allocated here
systemd-258/src/login/logind-seat.c:56:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:56:13: branch_false: ...to here
systemd-258/src/login/logind-seat.c:56:13: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-seat.c:37:37: call_function: inlined call to ‘seat_freep’ from ‘seat_new’
#   83|   
#   84|           set_free(s->uevents);
#   85|->         free(s->positions);
#   86|           free(s->state_file);
#   87|           free(s->id);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def937]
systemd-258/src/login/logind-user.c:111:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*u)[124]’
systemd-258/src/login/logind-user.c:42:5: enter_function: entry to ‘user_new’
systemd-258/src/login/logind-user.c:47:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-user.c:48:9: branch_false: ...to here
systemd-258/src/login/logind-user.c:48:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-user.c:49:9: branch_false: ...to here
systemd-258/src/login/logind-user.c:49:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-user.c:51:14: branch_false: ...to here
systemd-258/src/login/logind-user.c:51:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-user.c:54:14: branch_false: ...to here
systemd-258/src/login/logind-user.c:54:12: branch_true: following ‘true’ branch...
systemd-258/src/login/logind-user.c:57:13: call_function: inlined call to ‘malloc_multiply’ from ‘user_new’
systemd-258/src/login/logind-user.c:58:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-user.c:63:32: branch_false: ...to here
systemd-258/src/login/logind-user.c:43:37: call_function: inlined call to ‘user_freep’ from ‘user_new’
#  109|                   return NULL;
#  110|   
#  111|->         if (u->in_gc_queue)
#  112|                   LIST_REMOVE(gc_queue, u->manager->user_gc_queue, u);
#  113|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def938]
systemd-258/src/login/logind.c:118:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(760)’
systemd-258/src/login/logind.c:58:12: enter_function: entry to ‘manager_new’
systemd-258/src/login/logind.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind.c:64:13: call_function: inlined call to ‘malloc_multiply’ from ‘manager_new’
systemd-258/src/login/logind.c:65:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind.c:74:28: branch_false: ...to here
systemd-258/src/login/logind.c:59:43: call_function: inlined call to ‘manager_freep’ from ‘manager_new’
#  116|                   return NULL;
#  117|   
#  118|->         hashmap_free(m->devices);
#  119|           hashmap_free(m->seats);
#  120|           hashmap_free(m->sessions);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def939]
systemd-258/src/login/logind.c:118:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*m.devices’
systemd-258/src/login/logind.c:58:12: enter_function: entry to ‘manager_new’
systemd-258/src/login/logind.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind.c:64:13: call_function: inlined call to ‘malloc_multiply’ from ‘manager_new’
systemd-258/src/login/logind.c:65:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind.c:74:28: branch_false: ...to here
systemd-258/src/login/logind.c:59:43: call_function: inlined call to ‘manager_freep’ from ‘manager_new’
#  116|                   return NULL;
#  117|   
#  118|->         hashmap_free(m->devices);
#  119|           hashmap_free(m->seats);
#  120|           hashmap_free(m->sessions);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def940]
systemd-258/src/login/test-session-properties.c:115:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(arg_tty, 524546)’
systemd-258/src/login/test-session-properties.c:111:12: branch_false: following ‘false’ branch...
systemd-258/src/login/test-session-properties.c:114:14: branch_false: ...to here
systemd-258/src/login/test-session-properties.c:114:14: acquire_resource: opened here
systemd-258/src/login/test-session-properties.c:115:9: branch_false: following ‘false’ branch...
systemd-258/src/login/test-session-properties.c:117:9: branch_false: ...to here
systemd-258/src/login/test-session-properties.c:115:9: danger: ‘open(arg_tty, 524546)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  113|   
#  114|           fd = open(arg_tty, O_RDWR|O_CLOEXEC|O_NOCTTY);
#  115|->         assert_se(fd >= 0);
#  116|   
#  117|           assert_se(sd_bus_open_system(&bus) >= 0);

Error: COMPILER_WARNING: [#def941] [important]
systemd-258/src/login/user-runtime-dir.c:253:32: error[-Wimplicit-function-declaration]: implicit declaration of function ‘quotactl_fd’; did you mean ‘quotactl’?
#  251|   
#  252|                   struct dqblk req;
#  253|->                 r = RET_NERRNO(quotactl_fd(fd, QCMD_FIXED(Q_GETQUOTA, USRQUOTA), uid, &req));
#  254|                   if (r == -ESRCH)
#  255|                           zero(req);

Error: CPPCHECK_WARNING (CWE-457): [#def942]
systemd-258/src/machine/machine-varlink.c:92: error[uninitvar]: Uninitialized variable: i
#   90|                   uint64_t b;
#   91|   
#   92|->                 if (!sd_json_variant_is_unsigned(i))
#   93|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is not an unsigned integer.", k, strna(name));
#   94|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def943]
systemd-258/src/machine/machine.c:112:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(248)’
systemd-258/src/machine/machine.c:49:5: enter_function: entry to ‘machine_new’
systemd-258/src/machine/machine.c:52:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/machine.c:53:9: branch_false: ...to here
systemd-258/src/machine/machine.c:53:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/machine.c:59:13: call_function: inlined call to ‘malloc_multiply’ from ‘machine_new’
systemd-258/src/machine/machine.c:60:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machine.c:63:9: branch_false: ...to here
systemd-258/src/machine/machine.c:70:12: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
systemd-258/src/machine/machine.c:71:27: branch_true: ...to here
systemd-258/src/machine/machine.c:72:20: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/machine/machine.c:50:43: call_function: inlined call to ‘machine_freep’ from ‘machine_new’
#  110|                   return NULL;
#  111|   
#  112|->         while (m->operations)
#  113|                   operation_free(m->operations);
#  114|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def944]
systemd-258/src/machine/machined-dbus.c:417:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/machine/machined-dbus.c:396:12: enter_function: entry to ‘method_create_machine_internal’
systemd-258/src/machine/machined-dbus.c:397:28: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:398:18: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:398:18: release_memory: ‘m’ is NULL
systemd-258/src/machine/machined-dbus.c:401:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:403:13: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:403:13: call_function: calling ‘method_create_or_register_machine’ from ‘method_create_machine_internal’
systemd-258/src/machine/machined-dbus.c:403:13: return_function: returning to ‘method_create_machine_internal’ from ‘method_create_or_register_machine’
systemd-258/src/machine/machined-dbus.c:404:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:406:12: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:406:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:409:13: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:410:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:413:13: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:413:13: release_memory: ‘m’ is NULL
systemd-258/src/machine/machined-dbus.c:414:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:417:29: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:417:9: danger: dereference of NULL ‘m’
#  415|                   goto fail;
#  416|   
#  417|->         m->create_message = sd_bus_message_ref(message);
#  418|           return 1;
#  419|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def945]
systemd-258/src/machine/machined-dbus.c:455:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘m’
systemd-258/src/machine/machined-dbus.c:433:12: enter_function: entry to ‘method_register_machine_internal’
systemd-258/src/machine/machined-dbus.c:434:28: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:436:18: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:436:18: release_memory: ‘m’ is NULL
systemd-258/src/machine/machined-dbus.c:439:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:441:13: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:441:13: call_function: calling ‘method_create_or_register_machine’ from ‘method_register_machine_internal’
systemd-258/src/machine/machined-dbus.c:441:13: return_function: returning to ‘method_register_machine_internal’ from ‘method_create_or_register_machine’
systemd-258/src/machine/machined-dbus.c:442:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:444:12: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:444:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:447:61: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:447:61: release_memory: ‘m’ is NULL
systemd-258/src/machine/machined-dbus.c:448:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined-dbus.c:455:28: branch_false: ...to here
systemd-258/src/machine/machined-dbus.c:455:28: danger: dereference of NULL ‘m’
#  453|           }
#  454|   
#  455|->         if (!empty_or_root(m->subgroup)) {
#  456|                   /* If this is not a top-level cgroup, then we need the cgroup path to be able to watch when
#  457|                    * it empties */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def946]
systemd-258/src/machine/machined.c:86:16: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(128)’
systemd-258/src/machine/machined.c:41:12: enter_function: entry to ‘manager_new’
systemd-258/src/machine/machined.c:45:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined.c:47:13: call_function: inlined call to ‘malloc_multiply’ from ‘manager_new’
systemd-258/src/machine/machined.c:48:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/machined.c:51:9: branch_false: ...to here
systemd-258/src/machine/machined.c:56:12: branch_true: following ‘true’ branch...
systemd-258/src/machine/machined.c:42:44: call_function: inlined call to ‘manager_unrefp’ from ‘manager_new’
#   84|                   return NULL;
#   85|   
#   86|->         while (m->operations)
#   87|                   operation_free(m->operations);
#   88|   

Error: CPPCHECK_WARNING (CWE-401): [#def947]
systemd-258/src/machine/machined.c:134: error[memleak]: Memory leak: rd
#  132|           unit = strdup(SPECIAL_ROOT_SLICE);
#  133|           if (!unit)
#  134|->                 return log_oom();
#  135|   
#  136|           r = pidref_set_pid(&pidref, 1);

Error: CPPCHECK_WARNING (CWE-401): [#def948]
systemd-258/src/machine/machined.c:138: error[memleak]: Memory leak: rd
#  136|           r = pidref_set_pid(&pidref, 1);
#  137|           if (r < 0)
#  138|->                 return log_error_errno(r, "Failed to open reference to PID 1: %m");
#  139|   
#  140|           r = machine_new(MACHINE_HOST, ".host", &t);

Error: CPPCHECK_WARNING (CWE-401): [#def949]
systemd-258/src/machine/machined.c:138: error[memleak]: Memory leak: unit
#  136|           r = pidref_set_pid(&pidref, 1);
#  137|           if (r < 0)
#  138|->                 return log_error_errno(r, "Failed to open reference to PID 1: %m");
#  139|   
#  140|           r = machine_new(MACHINE_HOST, ".host", &t);

Error: CPPCHECK_WARNING (CWE-401): [#def950]
systemd-258/src/machine/machined.c:142: error[memleak]: Memory leak: rd
#  140|           r = machine_new(MACHINE_HOST, ".host", &t);
#  141|           if (r < 0)
#  142|->                 return log_error_errno(r, "Failed to create machine: %m");
#  143|   
#  144|           r = machine_link(m, t);

Error: CPPCHECK_WARNING (CWE-401): [#def951]
systemd-258/src/machine/machined.c:142: error[memleak]: Memory leak: unit
#  140|           r = machine_new(MACHINE_HOST, ".host", &t);
#  141|           if (r < 0)
#  142|->                 return log_error_errno(r, "Failed to create machine: %m");
#  143|   
#  144|           r = machine_link(m, t);

Error: CPPCHECK_WARNING (CWE-401): [#def952]
systemd-258/src/machine/machined.c:146: error[memleak]: Memory leak: rd
#  144|           r = machine_link(m, t);
#  145|           if (r < 0)
#  146|->                 return log_error_errno(r, "Failed to link machine to manager: %m");
#  147|   
#  148|           t->leader = TAKE_PIDREF(pidref);

Error: CPPCHECK_WARNING (CWE-401): [#def953]
systemd-258/src/machine/machined.c:146: error[memleak]: Memory leak: unit
#  144|           r = machine_link(m, t);
#  145|           if (r < 0)
#  146|->                 return log_error_errno(r, "Failed to link machine to manager: %m");
#  147|   
#  148|           t->leader = TAKE_PIDREF(pidref);

Error: CPPCHECK_WARNING (CWE-401): [#def954]
systemd-258/src/machine/machined.c:163: error[memleak]: Memory leak: rd
#  161|           m->host_machine = t;
#  162|   
#  163|->         return 0;
#  164|   }
#  165|   

Error: CPPCHECK_WARNING (CWE-401): [#def955]
systemd-258/src/machine/machined.c:163: error[memleak]: Memory leak: unit
#  161|           m->host_machine = t;
#  162|   
#  163|->         return 0;
#  164|   }
#  165|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def956]
systemd-258/src/machine/operation.c:118:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(96)’
systemd-258/src/machine/operation.c:99:5: enter_function: entry to ‘operation_new’
systemd-258/src/machine/operation.c:103:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/operation.c:104:9: branch_false: ...to here
systemd-258/src/machine/operation.c:104:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/operation.c:105:9: branch_false: ...to here
systemd-258/src/machine/operation.c:105:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/operation.c:106:9: branch_false: ...to here
systemd-258/src/machine/operation.c:106:9: branch_false: following ‘false’ branch...
systemd-258/src/machine/operation.c:108:13: call_function: inlined call to ‘malloc_multiply’ from ‘operation_new’
systemd-258/src/machine/operation.c:109:12: branch_false: following ‘false’ branch...
systemd-258/src/machine/operation.c:112:9: branch_false: ...to here
systemd-258/src/machine/operation.c:118:13: danger: ‘malloc(96)’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  116|           };
#  117|   
#  118|->         r = sd_event_add_child(manager->event, &o->event_source, child, WEXITED, operation_done, o);
#  119|           if (r < 0) {
#  120|                   free(o);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def957]
systemd-258/src/measure/measure-tool.c:658:21: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(EVP_MD_get0_name(EVP_get_digestbyname(*__unique_prefix_i22)))’
systemd-258/src/measure/measure-tool.c:641:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/measure/measure-tool.c:645:9: branch_true: following ‘true’ branch...
systemd-258/src/measure/measure-tool.c:651:17: branch_false: following ‘false’ branch...
systemd-258/src/measure/measure-tool.c:653:21: branch_false: ...to here
systemd-258/src/measure/measure-tool.c:653:21: acquire_memory: allocated here
systemd-258/src/measure/measure-tool.c:654:20: branch_false: following ‘false’ branch...
systemd-258/src/measure/measure-tool.c:657:22: branch_false: ...to here
systemd-258/src/measure/measure-tool.c:658:20: branch_false: following ‘false’ branch...
systemd-258/src/measure/measure-tool.c:661:21: branch_false: ...to here
systemd-258/src/measure/measure-tool.c:662:20: branch_false: following ‘false’ branch...
systemd-258/src/measure/measure-tool.c:665:28: branch_false: ...to here
systemd-258/src/measure/measure-tool.c:658:21: danger: ‘strdup(EVP_MD_get0_name(EVP_get_digestbyname(*__unique_prefix_i22)))’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  656|   
#  657|                   sz = EVP_MD_size(implementation);
#  658|->                 if (sz <= 0 || sz >= INT_MAX)
#  659|                           return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Unexpected digest size: %i", sz);
#  660|   

Error: CPPCHECK_WARNING (CWE-416): [#def958]
systemd-258/src/mount/mount-tool.c:1627: error[deallocuse]: Dereferencing 'arg_mount_type' after it is deallocated / released
# 1625|            */
# 1626|           if (arg_mount_type &&
# 1627|->             !streq(arg_mount_type, "auto") &&
# 1628|               arg_uid != UID_INVALID &&
# 1629|               !fstype_can_uid_gid(arg_mount_type))

Error: GCC_ANALYZER_WARNING (CWE-775): [#def959]
systemd-258/src/mountfsd/mountfsd-manager.c:154:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*m.listen_fd, 3)’
systemd-258/src/mountfsd/mountfsd-manager.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:133:26: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:141:12: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:143:12: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:143:12: branch_true: following ‘true’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:144:22: branch_true: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:147:20: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:154:29: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:154:29: acquire_resource: opened here
systemd-258/src/mountfsd/mountfsd-manager.c:154:28: danger: ‘dup2(*m.listen_fd, 3)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  152|                           }
#  153|                   } else {
#  154|->                         if (dup2(m->listen_fd, 3) < 0) { /* dup2() creates with O_CLOEXEC off */
#  155|                                   log_error_errno(errno, "Failed to move listen fd to 3: %m");
#  156|                                   _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def960]
systemd-258/src/mountfsd/mountfsd-manager.c:266:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*m.listen_fd’
systemd-258/src/mountfsd/mountfsd-manager.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:241:9: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:241:9: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:243:13: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:244:12: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:246:12: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:246:12: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:248:12: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:248:12: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:256:32: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:257:20: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:260:24: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:266:20: danger: ‘*m.listen_fd’ leaks here
#  264|                                   return log_error_errno(errno, "Failed to bind socket: %m");
#  265|   
#  266|->                 if (listen(m->listen_fd, SOMAXCONN) < 0)
#  267|                           return log_error_errno(errno, "Failed to listen on socket: %m");
#  268|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def961]
systemd-258/src/mountfsd/mountfsd-manager.c:272:63: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*m.listen_fd’
systemd-258/src/mountfsd/mountfsd-manager.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:241:9: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:241:9: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:243:13: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:244:12: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:246:12: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:246:12: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:248:12: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:248:12: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:256:32: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:257:20: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:260:24: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:266:20: branch_false: following ‘false’ branch...
systemd-258/src/mountfsd/mountfsd-manager.c:272:63: branch_false: ...to here
systemd-258/src/mountfsd/mountfsd-manager.c:272:63: danger: ‘*m.listen_fd’ leaks here
#  270|           /* Let's make sure every accept() call on this socket times out after 25s. This allows workers to be
#  271|            * GC'ed on idle */
#  272|->         if (setsockopt(m->listen_fd, SOL_SOCKET, SO_RCVTIMEO, TIMEVAL_STORE(LISTEN_TIMEOUT_USEC), sizeof(struct timeval)) < 0)
#  273|                   return log_error_errno(errno, "Failed to se SO_RCVTIMEO: %m");
#  274|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def962]
systemd-258/src/network/generator/network-generator.c:103:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘address’
systemd-258/src/network/generator/network-generator.c:187:17: enter_function: entry to ‘network_free’
systemd-258/src/network/generator/network-generator.c:201:16: branch_true: following ‘true’ branch (when ‘address’ is non-NULL)...
systemd-258/src/network/generator/network-generator.c:202:17: branch_true: ...to here
systemd-258/src/network/generator/network-generator.c:202:17: call_function: calling ‘address_free’ from ‘network_free’
systemd-258/src/network/generator/network-generator.c:202:17: return_function: returning to ‘network_free’ from ‘address_free’
systemd-258/src/network/generator/network-generator.c:201:16: branch_true: following ‘true’ branch (when ‘address’ is non-NULL)...
systemd-258/src/network/generator/network-generator.c:202:17: branch_true: ...to here
systemd-258/src/network/generator/network-generator.c:202:17: call_function: calling ‘address_free’ from ‘network_free’
#  101|                   return NULL;
#  102|   
#  103|->         if (address->network)
#  104|                   LIST_REMOVE(addresses, address->network->addresses, address);
#  105|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def963]
systemd-258/src/network/generator/network-generator.c:147:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘route’
systemd-258/src/network/generator/network-generator.c:187:17: enter_function: entry to ‘network_free’
systemd-258/src/network/generator/network-generator.c:201:16: branch_false: following ‘false’ branch (when ‘address’ is NULL)...
 branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:204:16: branch_true: following ‘true’ branch (when ‘route’ is non-NULL)...
systemd-258/src/network/generator/network-generator.c:205:17: branch_true: ...to here
systemd-258/src/network/generator/network-generator.c:205:17: call_function: calling ‘route_free’ from ‘network_free’
systemd-258/src/network/generator/network-generator.c:205:17: return_function: returning to ‘network_free’ from ‘route_free’
systemd-258/src/network/generator/network-generator.c:204:16: branch_true: following ‘true’ branch (when ‘route’ is non-NULL)...
systemd-258/src/network/generator/network-generator.c:205:17: branch_true: ...to here
systemd-258/src/network/generator/network-generator.c:205:17: call_function: calling ‘route_free’ from ‘network_free’
#  145|                   return NULL;
#  146|   
#  147|->         if (route->network)
#  148|                   LIST_REMOVE(routes, route->network->routes, route);
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def964]
systemd-258/src/network/generator/network-generator.c:196:9: warning[-Wanalyzer-malloc-leak]: leak of ‘network’
systemd-258/src/network/generator/network-generator.c:1219:5: enter_function: entry to ‘parse_cmdline_item’
systemd-258/src/network/generator/network-generator.c:1220:28: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1222:9: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1222:9: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1224:13: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1224:12: branch_true: following ‘true’ branch...
systemd-258/src/network/generator/network-generator.c:1225:24: branch_true: ...to here
systemd-258/src/network/generator/network-generator.c:1225:24: call_function: calling ‘parse_cmdline_ip’ from ‘parse_cmdline_item’
#  194|           free(network->ifname);
#  195|           free(network->hostname);
#  196|->         strv_free(network->dns);
#  197|           strv_free(network->vlan);
#  198|           free(network->bridge);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def965]
systemd-258/src/network/generator/network-generator.c:197:9: warning[-Wanalyzer-malloc-leak]: leak of ‘network’
systemd-258/src/network/generator/network-generator.c:1219:5: enter_function: entry to ‘parse_cmdline_item’
systemd-258/src/network/generator/network-generator.c:1220:28: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1222:9: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1222:9: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1224:13: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1224:12: branch_true: following ‘true’ branch...
systemd-258/src/network/generator/network-generator.c:1225:24: branch_true: ...to here
systemd-258/src/network/generator/network-generator.c:1225:24: call_function: calling ‘parse_cmdline_ip’ from ‘parse_cmdline_item’
#  195|           free(network->hostname);
#  196|           strv_free(network->dns);
#  197|->         strv_free(network->vlan);
#  198|           free(network->bridge);
#  199|           free(network->bond);

Error: GCC_ANALYZER_WARNING (CWE-835): [#def966]
systemd-258/src/network/generator/network-generator.c:201:16: warning[-Wanalyzer-infinite-loop]: infinite loop
systemd-258/src/network/generator/network-generator.c:187:17: enter_function: entry to ‘network_free’
systemd-258/src/network/generator/network-generator.c:201:16: danger: infinite loop here
systemd-258/src/network/generator/network-generator.c:201:16: branch_true: when ‘address’ is non-NULL: always following ‘true’ branch...
systemd-258/src/network/generator/network-generator.c:202:17: branch_true: ...to here
#  199|           free(network->bond);
#  200|   
#  201|->         while ((address = network->addresses))
#  202|                   address_free(address);
#  203|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def967]
systemd-258/src/network/generator/network-generator.c:204:16: warning[-Wanalyzer-infinite-loop]: infinite loop
systemd-258/src/network/generator/network-generator.c:187:17: enter_function: entry to ‘network_free’
systemd-258/src/network/generator/network-generator.c:204:16: danger: infinite loop here
systemd-258/src/network/generator/network-generator.c:204:16: branch_true: when ‘route’ is non-NULL: always following ‘true’ branch...
systemd-258/src/network/generator/network-generator.c:205:17: branch_true: ...to here
#  202|                   address_free(address);
#  203|   
#  204|->         while ((route = network->routes))
#  205|                   route_free(route);
#  206|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def968]
systemd-258/src/network/generator/network-generator.c:361:9: warning[-Wanalyzer-malloc-leak]: leak of ‘link’
systemd-258/src/network/generator/network-generator.c:1125:12: enter_function: entry to ‘parse_cmdline_ifname’
systemd-258/src/network/generator/network-generator.c:1130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1131:9: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1135:13: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1135:12: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1138:21: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1140:12: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1143:13: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1147:12: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1150:13: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1150:13: call_function: calling ‘link_new’ from ‘parse_cmdline_ifname’
#  359|           free(link->filename);
#  360|           free(link->ifname);
#  361|->         strv_free(link->policies);
#  362|           strv_free(link->alt_policies);
#  363|           return mfree(link);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def969]
systemd-258/src/network/generator/network-generator.c:362:9: warning[-Wanalyzer-malloc-leak]: leak of ‘link’
systemd-258/src/network/generator/network-generator.c:1125:12: enter_function: entry to ‘parse_cmdline_ifname’
systemd-258/src/network/generator/network-generator.c:1130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1131:9: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1135:13: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1135:12: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1138:21: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1140:12: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1143:13: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1147:12: branch_false: following ‘false’ branch...
systemd-258/src/network/generator/network-generator.c:1150:13: branch_false: ...to here
systemd-258/src/network/generator/network-generator.c:1150:13: call_function: calling ‘link_new’ from ‘parse_cmdline_ifname’
#  360|           free(link->ifname);
#  361|           strv_free(link->policies);
#  362|->         strv_free(link->alt_policies);
#  363|           return mfree(link);
#  364|   }

Error: COMPILER_WARNING: [#def970] [important]
systemd-258/src/network/netdev/l2tp-tunnel.c:143:78: error[-Wincompatible-pointer-types]: passing argument 3 of ‘sd_netlink_message_append_in_addr’ from incompatible pointer type
#  141|   
#  142|           if (t->family == AF_INET) {
#  143|->                 r = sd_netlink_message_append_in_addr(m, L2TP_ATTR_IP_SADDR, &local_address->in);
#  144|                   if (r < 0)
#  145|                           return r;

Error: COMPILER_WARNING: [#def971] [important]
systemd-258/src/network/netdev/l2tp-tunnel.c:147:78: error[-Wincompatible-pointer-types]: passing argument 3 of ‘sd_netlink_message_append_in_addr’ from incompatible pointer type
#  145|                           return r;
#  146|   
#  147|->                 r = sd_netlink_message_append_in_addr(m, L2TP_ATTR_IP_DADDR, &t->remote.in);
#  148|                   if (r < 0)
#  149|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def972]
systemd-258/src/network/netdev/macsec.c:41:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(80)’
systemd-258/src/network/netdev/macsec.c:57:12: enter_function: entry to ‘macsec_receive_association_new_static’
systemd-258/src/network/netdev/macsec.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:63:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:63:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:64:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:64:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:65:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:67:13: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:68:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:71:13: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:72:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:77:13: call_function: inlined call to ‘malloc_multiply’ from ‘macsec_receive_association_new_static’
systemd-258/src/network/netdev/macsec.c:78:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:83:28: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:59:73: call_function: inlined call to ‘macsec_receive_association_freep’ from ‘macsec_receive_association_new_static’
#   39|                   return NULL;
#   40|   
#   41|->         if (c->macsec && c->section)
#   42|                   ordered_hashmap_remove(c->macsec->receive_associations_by_section, c->section);
#   43|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def973]
systemd-258/src/network/netdev/macsec.c:180:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258/src/network/netdev/macsec.c:196:12: enter_function: entry to ‘macsec_transmit_association_new_static’
systemd-258/src/network/netdev/macsec.c:201:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:202:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:202:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:203:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:203:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:204:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:204:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:206:13: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:207:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:210:13: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:211:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:216:13: call_function: inlined call to ‘malloc_multiply’ from ‘macsec_transmit_association_new_static’
systemd-258/src/network/netdev/macsec.c:217:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:222:28: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:198:75: call_function: inlined call to ‘macsec_transmit_association_freep’ from ‘macsec_transmit_association_new_static’
#  178|                   return NULL;
#  179|   
#  180|->         if (a->macsec && a->section)
#  181|                   ordered_hashmap_remove(a->macsec->transmit_associations_by_section, a->section);
#  182|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def974]
systemd-258/src/network/netdev/tuntap.c:50:89: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(name)’
systemd-258/src/network/netdev/tuntap.c:42:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:43:9: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:43:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:44:9: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:44:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:46:23: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:46:23: acquire_memory: allocated here
systemd-258/src/network/netdev/tuntap.c:47:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:50:89: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:50:89: danger: ‘strdup(name)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   48|                   return log_oom_debug();
#   49|   
#   50|->         r = hashmap_ensure_put(&m->tuntap_fds_by_name, &named_fd_hash_ops, tuntap_name, FD_TO_PTR(fd));
#   51|           if (r < 0)
#   52|                   return log_debug_errno(r, "Failed to store tuntap fd: %m");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def975]
systemd-258/src/network/netdev/tuntap.c:97:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/netdev/tuntap.c:89:12: enter_function: entry to ‘netdev_push_tuntap_fd’
systemd-258/src/network/netdev/tuntap.c:93:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:95:57: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:95:18: call_function: calling ‘netdev_take_tuntap_fd’ from ‘netdev_push_tuntap_fd’
systemd-258/src/network/netdev/tuntap.c:95:18: return_function: returning to ‘netdev_push_tuntap_fd’ from ‘netdev_take_tuntap_fd’
systemd-258/src/network/netdev/tuntap.c:97:14: call_function: calling ‘TUNTAP’ from ‘netdev_push_tuntap_fd’
systemd-258/src/network/netdev/tuntap.c:97:14: return_function: returning to ‘netdev_push_tuntap_fd’ from ‘TUNTAP’
systemd-258/src/network/netdev/tuntap.c:97:14: danger: dereference of NULL ‘TUNTAP(netdev)’
#   95|           fd_old = netdev_take_tuntap_fd(netdev->manager, netdev->ifname);
#   96|   
#   97|->         if (!TUNTAP(netdev)->keep_fd)
#   98|                   return 0;
#   99|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def976]
systemd-258/src/network/netdev/tuntap.c:128:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/netdev/tuntap.c:117:6: enter_function: entry to ‘manager_clear_unmanaged_tuntap_fds’
systemd-258/src/network/netdev/tuntap.c:121:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:123:9: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:123:9: branch_true: following ‘true’ branch...
systemd-258/src/network/netdev/tuntap.c:124:25: branch_true: ...to here
systemd-258/src/network/netdev/tuntap.c:128:22: call_function: calling ‘TUNTAP’ from ‘manager_clear_unmanaged_tuntap_fds’
systemd-258/src/network/netdev/tuntap.c:128:22: return_function: returning to ‘manager_clear_unmanaged_tuntap_fds’ from ‘TUNTAP’
systemd-258/src/network/netdev/tuntap.c:128:22: danger: dereference of NULL ‘TUNTAP(netdev)’
#  126|                   if (netdev_get(m, name, &netdev) < 0 ||
#  127|                       !IN_SET(netdev->kind, NETDEV_KIND_TAP, NETDEV_KIND_TUN) ||
#  128|->                     !TUNTAP(netdev)->keep_fd)
#  129|                           manager_close_and_notify_tuntap_fd(m, name);
#  130|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def977]
systemd-258/src/network/netdev/tuntap.c:150:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/netdev/tuntap.c:133:12: enter_function: entry to ‘netdev_create_tuntap’
systemd-258/src/network/netdev/tuntap.c:136:21: call_function: calling ‘TUNTAP’ from ‘netdev_create_tuntap’
systemd-258/src/network/netdev/tuntap.c:136:21: return_function: returning to ‘netdev_create_tuntap’ from ‘TUNTAP’
systemd-258/src/network/netdev/tuntap.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:141:14: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:142:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:145:13: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:145:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:148:17: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:150:14: danger: dereference of NULL ‘TUNTAP(netdev)’
#  148|                   ifr.ifr_flags |= IFF_TUN;
#  149|   
#  150|->         if (!t->packet_info)
#  151|                   ifr.ifr_flags |= IFF_NO_PI;
#  152|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def978]
systemd-258/src/network/netdev/tuntap.c:207:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/netdev/tuntap.c:204:13: enter_function: entry to ‘tuntap_done’
systemd-258/src/network/netdev/tuntap.c:205:21: call_function: calling ‘TUNTAP’ from ‘tuntap_done’
systemd-258/src/network/netdev/tuntap.c:205:21: return_function: returning to ‘tuntap_done’ from ‘TUNTAP’
systemd-258/src/network/netdev/tuntap.c:207:24: danger: dereference of NULL ‘TUNTAP(netdev)’
#  205|           TunTap *t = TUNTAP(netdev);
#  206|   
#  207|->         t->user_name = mfree(t->user_name);
#  208|           t->group_name = mfree(t->group_name);
#  209|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def979]
systemd-258/src/network/netdev/tuntap.c:214:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/netdev/tuntap.c:211:13: enter_function: entry to ‘tuntap_init’
systemd-258/src/network/netdev/tuntap.c:212:21: call_function: calling ‘TUNTAP’ from ‘tuntap_init’
systemd-258/src/network/netdev/tuntap.c:212:21: return_function: returning to ‘tuntap_init’ from ‘TUNTAP’
systemd-258/src/network/netdev/tuntap.c:214:9: danger: dereference of NULL ‘TUNTAP(netdev)’
#  212|           TunTap *t = TUNTAP(netdev);
#  213|   
#  214|->         t->uid = UID_INVALID;
#  215|           t->gid = GID_INVALID;
#  216|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def980]
systemd-258/src/network/netdev/tuntap.c:236:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/netdev/tuntap.c:218:12: enter_function: entry to ‘tuntap_verify’
systemd-258/src/network/netdev/tuntap.c:219:21: call_function: calling ‘TUNTAP’ from ‘tuntap_verify’
systemd-258/src/network/netdev/tuntap.c:219:21: return_function: returning to ‘tuntap_verify’ from ‘TUNTAP’
systemd-258/src/network/netdev/tuntap.c:222:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/tuntap.c:224:13: branch_false: ...to here
systemd-258/src/network/netdev/tuntap.c:236:13: danger: dereference of NULL ‘TUNTAP(netdev)’
#  234|                                      netdev_kind_to_string(netdev->kind), filename);
#  235|   
#  236|->         if (t->user_name) {
#  237|                   _cleanup_(user_record_unrefp) UserRecord *ur = NULL;
#  238|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def981]
systemd-258/src/network/netdev/vlan.c:169:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8)’
systemd-258/src/network/netdev/vlan.c:120:5: enter_function: entry to ‘config_parse_vlan_qos_maps’
systemd-258/src/network/netdev/vlan.c:132:19: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/vlan.c:135:9: branch_false: ...to here
systemd-258/src/network/netdev/vlan.c:135:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/vlan.c:136:9: branch_false: ...to here
systemd-258/src/network/netdev/vlan.c:136:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/vlan.c:137:9: branch_false: ...to here
systemd-258/src/network/netdev/vlan.c:137:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/vlan.c:139:13: call_function: inlined call to ‘isempty’ from ‘config_parse_vlan_qos_maps’
systemd-258/src/network/netdev/vlan.c:144:26: branch_false: ...to here
systemd-258/src/network/netdev/vlan.c:150:20: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/vlan.c:152:20: branch_false: ...to here
systemd-258/src/network/netdev/vlan.c:152:20: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/vlan.c:156:20: branch_false: ...to here
systemd-258/src/network/netdev/vlan.c:156:20: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/vlan.c:159:21: branch_false: ...to here
systemd-258/src/network/netdev/vlan.c:165:21: call_function: inlined call to ‘malloc_multiply’ from ‘config_parse_vlan_qos_maps’
systemd-258/src/network/netdev/vlan.c:166:20: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/vlan.c:169:17: branch_false: ...to here
systemd-258/src/network/netdev/vlan.c:169:17: danger: ‘malloc(8)’ leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
#  167|                           return log_oom();
#  168|   
#  169|->                 *m = (struct ifla_vlan_qos_mapping) {
#  170|                           .from = from,
#  171|                           .to = to,

Error: GCC_ANALYZER_WARNING (CWE-416): [#def982]
systemd-258/src/network/netdev/wireguard.c:42:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘_p’
systemd-258/src/network/netdev/wireguard.c:864:5: enter_function: entry to ‘config_parse_wireguard_keepalive’
systemd-258/src/network/netdev/wireguard.c:876:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/wireguard.c:878:24: branch_false: ...to here
systemd-258/src/network/netdev/wireguard.c:878:24: call_function: calling ‘WIREGUARD’ from ‘config_parse_wireguard_keepalive’
systemd-258/src/network/netdev/wireguard.c:878:24: return_function: returning to ‘config_parse_wireguard_keepalive’ from ‘WIREGUARD’
systemd-258/src/network/netdev/wireguard.c:883:13: call_function: calling ‘wireguard_peer_new_static’ from ‘config_parse_wireguard_keepalive’
#   40|           assert(peer);
#   41|   
#   42|->         LIST_CLEAR(ipmasks, peer->ipmasks, free);
#   43|   }
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def983]
systemd-258/src/network/netdev/wireguard.c:49:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(312)’
systemd-258/src/network/netdev/wireguard.c:864:5: enter_function: entry to ‘config_parse_wireguard_keepalive’
systemd-258/src/network/netdev/wireguard.c:876:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/wireguard.c:878:24: branch_false: ...to here
systemd-258/src/network/netdev/wireguard.c:878:24: call_function: calling ‘WIREGUARD’ from ‘config_parse_wireguard_keepalive’
systemd-258/src/network/netdev/wireguard.c:878:24: return_function: returning to ‘config_parse_wireguard_keepalive’ from ‘WIREGUARD’
systemd-258/src/network/netdev/wireguard.c:883:13: call_function: calling ‘wireguard_peer_new_static’ from ‘config_parse_wireguard_keepalive’
#   47|                   return NULL;
#   48|   
#   49|->         if (peer->wireguard) {
#   50|                   LIST_REMOVE(peers, peer->wireguard->peers, peer);
#   51|   

Error: CPPCHECK_WARNING (CWE-457): [#def984]
systemd-258/src/network/networkctl-description.c:80: error[uninitvar]: Uninitialized variable: i
#   78|                   size_t pos;
#   79|   
#   80|->                 name = sd_json_variant_string(sd_json_variant_by_key(i, "Name"));
#   81|                   index = sd_json_variant_integer(sd_json_variant_by_key(i, "Index"));
#   82|                   xsprintf(ifindex_str, "%" PRIi64, index);

Error: CPPCHECK_WARNING (CWE-457): [#def985]
systemd-258/src/network/networkctl-description.c:90: error[uninitvar]: Uninitialized variable: a
#   88|   
#   89|                           JSON_VARIANT_ARRAY_FOREACH(a, sd_json_variant_by_key(i, "AlternativeNames"))
#   90|->                                 if (strv_fnmatch_full(patterns, sd_json_variant_string(a), 0, &pos)) {
#   91|                                           match = true;
#   92|                                           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def986]
systemd-258/src/network/networkctl-link-info.c:411:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘matched_patterns’
systemd-258/src/network/networkctl-link-info.c:367:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkctl-link-info.c:368:9: branch_false: ...to here
systemd-258/src/network/networkctl-link-info.c:368:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkctl-link-info.c:370:13: branch_false: ...to here
systemd-258/src/network/networkctl-link-info.c:371:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkctl-link-info.c:374:13: branch_false: ...to here
systemd-258/src/network/networkctl-link-info.c:375:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkctl-link-info.c:378:13: branch_false: ...to here
systemd-258/src/network/networkctl-link-info.c:379:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkctl-link-info.c:382:12: branch_false: ...to here
systemd-258/src/network/networkctl-link-info.c:382:12: branch_false: following ‘false’ branch (when ‘patterns’ is NULL)...
systemd-258/src/network/networkctl-link-info.c:388:34: branch_false: ...to here
systemd-258/src/network/networkctl-link-info.c:388:45: branch_false: following ‘false’ branch (when ‘i’ is NULL)...
 branch_false: ...to here
systemd-258/src/network/networkctl-link-info.c:410:30: branch_true: following ‘true’ branch...
systemd-258/src/network/networkctl-link-info.c:411:37: branch_true: ...to here
systemd-258/src/network/networkctl-link-info.c:411:37: release_memory: ‘matched_patterns’ is NULL
systemd-258/src/network/networkctl-link-info.c:411:21: danger: dereference of NULL ‘matched_patterns + pos’
#  409|            * is OK for a glob to match nothing, but not for an exact argument. */
#  410|           for (size_t pos = 0; pos < strv_length(patterns); pos++) {
#  411|->                 if (matched_patterns[pos])
#  412|                           continue;
#  413|   

Error: CPPCHECK_WARNING (CWE-457): [#def987]
systemd-258/src/network/networkctl-lldp.c:82: error[uninitvar]: Uninitialized variable: i
#   80|                   _cleanup_(interface_info_done) InterfaceInfo info = {};
#   81|   
#   82|->                 r = sd_json_dispatch(i, interface_info_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &info);
#   83|                   if (r < 0)
#   84|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def988]
systemd-258/src/network/networkctl-lldp.c:93: error[uninitvar]: Uninitialized variable: neighbor
#   91|                           LLDPNeighborInfo neighbor_info = {};
#   92|   
#   93|->                         r = sd_json_dispatch(neighbor, lldp_neighbor_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &neighbor_info);
#   94|                           if (r < 0)
#   95|                                   return r;

Error: CPPCHECK_WARNING (CWE-457): [#def989]
systemd-258/src/network/networkctl-lldp.c:200: error[uninitvar]: Uninitialized variable: i
#  198|                   _cleanup_(interface_info_done) InterfaceInfo info = {};
#  199|   
#  200|->                 r = sd_json_dispatch(i, interface_info_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &info);
#  201|                   if (r < 0)
#  202|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def990]
systemd-258/src/network/networkctl-lldp.c:271: error[uninitvar]: Uninitialized variable: i
#  269|                   _cleanup_(interface_info_done) InterfaceInfo info = {};
#  270|   
#  271|->                 r = sd_json_dispatch(i, interface_info_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &info);
#  272|                   if (r < 0)
#  273|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def991]
systemd-258/src/network/networkctl-lldp.c:282: error[uninitvar]: Uninitialized variable: neighbor
#  280|                           LLDPNeighborInfo neighbor_info = {};
#  281|   
#  282|->                         r = sd_json_dispatch(neighbor, lldp_neighbor_dispatch_table, SD_JSON_LOG|SD_JSON_ALLOW_EXTENSIONS, &neighbor_info);
#  283|                           if (r < 0)
#  284|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def992]
systemd-258/src/network/networkd-address-generation.c:120:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258/src/network/networkd-address-generation.c:429:5: enter_function: entry to ‘config_parse_address_generation_type’
systemd-258/src/network/networkd-address-generation.c:445:24: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-generation.c:449:9: branch_false: ...to here
systemd-258/src/network/networkd-address-generation.c:449:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-generation.c:450:9: branch_false: ...to here
systemd-258/src/network/networkd-address-generation.c:450:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-generation.c:451:9: branch_false: ...to here
systemd-258/src/network/networkd-address-generation.c:451:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-generation.c:453:13: call_function: inlined call to ‘isempty’ from ‘config_parse_address_generation_type’
systemd-258/src/network/networkd-address-generation.c:458:21: branch_false: ...to here
systemd-258/src/network/networkd-address-generation.c:520:17: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-generation.c:544:13: branch_false: ...to here
systemd-258/src/network/networkd-address-generation.c:544:13: call_function: calling ‘ipv6_token_add’ from ‘config_parse_address_generation_type’
#  118|                   return r;
#  119|   
#  120|->         return set_ensure_consume(tokens, &ipv6_token_hash_ops, p);
#  121|   }
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def993]
systemd-258/src/network/networkd-address-label.c:23:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258/src/network/networkd-address-label.c:47:12: enter_function: entry to ‘address_label_new_static’
systemd-258/src/network/networkd-address-label.c:59:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-label.c:60:9: branch_false: ...to here
systemd-258/src/network/networkd-address-label.c:60:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-label.c:61:9: branch_false: ...to here
systemd-258/src/network/networkd-address-label.c:61:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-label.c:62:9: branch_false: ...to here
systemd-258/src/network/networkd-address-label.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-label.c:64:37: branch_false: ...to here
systemd-258/src/network/networkd-address-label.c:67:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-label.c:70:17: branch_false: ...to here
systemd-258/src/network/networkd-address-label.c:71:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-label.c:76:17: call_function: inlined call to ‘malloc_multiply’ from ‘address_label_new_static’
systemd-258/src/network/networkd-address-label.c:77:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address-label.c:83:28: branch_false: ...to here
systemd-258/src/network/networkd-address-label.c:55:54: call_function: inlined call to ‘address_label_freep’ from ‘address_label_new_static’
#   21|                   return NULL;
#   22|   
#   23|->         if (label->network) {
#   24|                   assert(label->section);
#   25|                   hashmap_remove(label->network->address_labels_by_section, label->section);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
systemd-258/src/network/networkd-address.c:275:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
systemd-258/src/network/networkd-address.c:1813:5: enter_function: entry to ‘manager_rtnl_process_address’
systemd-258/src/network/networkd-address.c:1816:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1817:9: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1817:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1818:9: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1818:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1820:13: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1820:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1828:18: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1830:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1833:21: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1833:21: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-address.c:1838:13: branch_true: ...to here
systemd-258/src/network/networkd-address.c:1840:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1843:20: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1843:19: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1848:15: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1850:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1858:44: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1859:13: call_function: calling ‘address_new’ from ‘manager_rtnl_process_address’
systemd-258/src/network/networkd-address.c:1859:13: return_function: returning to ‘manager_rtnl_process_address’ from ‘address_new’
systemd-258/src/network/networkd-address.c:1860:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1865:58: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1858:44: call_function: inlined call to ‘address_unrefp’ from ‘manager_rtnl_process_address’
#  273|           free(address->label);
#  274|           free(address->netlabel);
#  275|->         ipv6_token_unref(address->token);
#  276|           nft_set_context_clear(&address->nft_set_context);
#  277|           return mfree(address);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def995]
systemd-258/src/network/networkd-address.c:276:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
systemd-258/src/network/networkd-address.c:1813:5: enter_function: entry to ‘manager_rtnl_process_address’
systemd-258/src/network/networkd-address.c:1816:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1817:9: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1817:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1818:9: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1818:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1820:13: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1820:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1828:18: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1830:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1833:21: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1833:21: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-address.c:1838:13: branch_true: ...to here
systemd-258/src/network/networkd-address.c:1840:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1843:20: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1843:19: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1848:15: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1850:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1858:44: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1859:13: call_function: calling ‘address_new’ from ‘manager_rtnl_process_address’
systemd-258/src/network/networkd-address.c:1859:13: return_function: returning to ‘manager_rtnl_process_address’ from ‘address_new’
systemd-258/src/network/networkd-address.c:1860:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-address.c:1865:58: branch_false: ...to here
systemd-258/src/network/networkd-address.c:1858:44: call_function: inlined call to ‘address_unrefp’ from ‘manager_rtnl_process_address’
#  274|           free(address->netlabel);
#  275|           ipv6_token_unref(address->token);
#  276|->         nft_set_context_clear(&address->nft_set_context);
#  277|           return mfree(address);
#  278|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
systemd-258/src/network/networkd-bridge-fdb.c:31:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258/src/network/networkd-bridge-fdb.c:49:12: enter_function: entry to ‘bridge_fdb_new_static’
systemd-258/src/network/networkd-bridge-fdb.c:59:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-fdb.c:60:9: branch_false: ...to here
systemd-258/src/network/networkd-bridge-fdb.c:60:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-fdb.c:61:9: branch_false: ...to here
systemd-258/src/network/networkd-bridge-fdb.c:61:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-fdb.c:62:9: branch_false: ...to here
systemd-258/src/network/networkd-bridge-fdb.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-fdb.c:64:13: branch_false: ...to here
systemd-258/src/network/networkd-bridge-fdb.c:65:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-fdb.c:69:15: branch_false: ...to here
systemd-258/src/network/networkd-bridge-fdb.c:70:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-fdb.c:75:13: branch_false: ...to here
systemd-258/src/network/networkd-bridge-fdb.c:75:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-fdb.c:79:15: call_function: inlined call to ‘malloc_multiply’ from ‘bridge_fdb_new_static’
systemd-258/src/network/networkd-bridge-fdb.c:80:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-fdb.c:86:28: branch_false: ...to here
systemd-258/src/network/networkd-bridge-fdb.c:56:48: call_function: inlined call to ‘bridge_fdb_freep’ from ‘bridge_fdb_new_static’
#   29|                   return NULL;
#   30|   
#   31|->         if (fdb->network) {
#   32|                   assert(fdb->section);
#   33|                   hashmap_remove(fdb->network->bridge_fdb_entries_by_section, fdb->section);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def997]
systemd-258/src/network/networkd-bridge-mdb.c:24:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258/src/network/networkd-bridge-mdb.c:41:12: enter_function: entry to ‘bridge_mdb_new_static’
systemd-258/src/network/networkd-bridge-mdb.c:51:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-mdb.c:52:9: branch_false: ...to here
systemd-258/src/network/networkd-bridge-mdb.c:52:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-mdb.c:53:9: branch_false: ...to here
systemd-258/src/network/networkd-bridge-mdb.c:53:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-mdb.c:54:9: branch_false: ...to here
systemd-258/src/network/networkd-bridge-mdb.c:54:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-mdb.c:56:13: branch_false: ...to here
systemd-258/src/network/networkd-bridge-mdb.c:57:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-mdb.c:61:15: branch_false: ...to here
systemd-258/src/network/networkd-bridge-mdb.c:62:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-mdb.c:67:13: branch_false: ...to here
systemd-258/src/network/networkd-bridge-mdb.c:67:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-mdb.c:71:15: call_function: inlined call to ‘malloc_multiply’ from ‘bridge_mdb_new_static’
systemd-258/src/network/networkd-bridge-mdb.c:72:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-bridge-mdb.c:78:28: branch_false: ...to here
systemd-258/src/network/networkd-bridge-mdb.c:48:48: call_function: inlined call to ‘bridge_mdb_freep’ from ‘bridge_mdb_new_static’
#   22|                   return NULL;
#   23|   
#   24|->         if (mdb->network) {
#   25|                   assert(mdb->section);
#   26|                   hashmap_remove(mdb->network->bridge_mdb_entries_by_section, mdb->section);

Error: COMPILER_WARNING: [#def998] [important]
systemd-258/src/network/networkd-dhcp-common.h:68:76: error[error]: incompatible types when initializing type ‘unsigned int’ using type ‘struct in_addr’
#   66|   bool address_is_filtered(int family, const union in_addr_union *address, uint8_t prefixlen, Set *allow_list, Set *deny_list);
#   67|   static inline bool in4_address_is_filtered(const struct in_addr *address, Set *allow_list, Set *deny_list) {
#   68|->         return address_is_filtered(AF_INET, &(union in_addr_union) { .in = *address }, 32, allow_list, deny_list);
#   69|   }
#   70|   static inline bool in6_prefix_is_filtered(const struct in6_addr *prefix, uint8_t prefixlen, Set *allow_list, Set *deny_list) {

Error: COMPILER_WARNING: [#def999] [important]
systemd-258/src/network/networkd-dhcp-common.h:71:78: error[error]: incompatible types when initializing type ‘unsigned char’ using type ‘struct in6_addr’
#   69|   }
#   70|   static inline bool in6_prefix_is_filtered(const struct in6_addr *prefix, uint8_t prefixlen, Set *allow_list, Set *deny_list) {
#   71|->         return address_is_filtered(AF_INET6, &(union in_addr_union) { .in6 = *prefix }, prefixlen, allow_list, deny_list);
#   72|   }
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1000]
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:870:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(24)’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:842:12: enter_function: entry to ‘dhcp_pd_prefix_add’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:847:9: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:847:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:849:13: call_function: inlined call to ‘malloc_multiply’ from ‘dhcp_pd_prefix_add’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:850:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:856:32: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:861:9: call_function: inlined call to ‘_in6_addr_prefix_to_string’ from ‘dhcp_pd_prefix_add’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:861:9: call_function: inlined call to ‘_in6_addr_prefix_to_string’ from ‘dhcp_pd_prefix_add’
systemd-258/src/network/networkd-dhcp-prefix-delegation.c:870:12: danger: ‘malloc(24)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  868|           /* Store PD prefix even if prefixlen > 64, not to make logged at warning level so frequently. */
#  869|           r = set_ensure_consume(&link->dhcp_pd_prefixes, &in_addr_prefix_hash_ops_free, p);
#  870|->         if (r < 0)
#  871|                   return log_link_error_errno(link, r, "Failed to store DHCP delegated prefix %s: %m",
#  872|                                               IN6_ADDR_PREFIX_TO_STRING(prefix, prefixlen));

Error: CPPCHECK_WARNING (CWE-457): [#def1001]
systemd-258/src/network/networkd-ipv6ll.c:213: warning[uninitvar]: Uninitialized variable: &a
#  211|   
#  212|           return sysctl_write_ip_property(AF_INET6, link->ifname, "stable_secret",
#  213|->                                         IN6_ADDR_TO_STRING(&a), manager_get_sysctl_shadow(link->manager));
#  214|   }
#  215|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1002]
systemd-258/src/network/networkd-ndisc.c:50:16: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, strlen(*__unique_prefix_i48) + 25)’
systemd-258/src/network/networkd-ndisc.c:1879:12: enter_function: entry to ‘ndisc_router_process_dnssl’
systemd-258/src/network/networkd-ndisc.c:1886:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1887:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1887:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1888:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1888:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1890:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1890:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1893:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1894:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1897:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1898:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1901:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1901:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1904:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1905:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1908:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1908:9: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-ndisc.c:1912:21: acquire_memory: allocated here
systemd-258/src/network/networkd-ndisc.c:1913:20: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1916:24: call_function: inlined call to ‘ndisc_dnssl_domain’ from ‘ndisc_router_process_dnssl’
systemd-258/src/network/networkd-ndisc.c:1918:20: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1925:33: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1926:20: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1932:30: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1932:20: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1939:17: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1916:24: call_function: inlined call to ‘ndisc_dnssl_domain’ from ‘ndisc_router_process_dnssl’
#   48|   
#   49|   char* ndisc_dnssl_domain(const NDiscDNSSL *n) {
#   50|->         return ((char*) n) + ALIGN(sizeof(NDiscDNSSL));
#   51|   }
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1003]
systemd-258/src/network/networkd-ndisc.c:1851:20: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(40)’
systemd-258/src/network/networkd-ndisc.c:1784:12: enter_function: entry to ‘ndisc_router_process_rdnss’
systemd-258/src/network/networkd-ndisc.c:1791:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1792:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1792:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1793:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1793:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1795:14: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1795:12: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-ndisc.c:1798:13: branch_true: ...to here
systemd-258/src/network/networkd-ndisc.c:1799:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1802:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1803:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1806:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1806:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1809:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1810:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1813:25: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-ndisc.c:1815:36: branch_true: ...to here
systemd-258/src/network/networkd-ndisc.c:1819:20: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1826:33: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1827:20: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1833:30: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1833:20: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1840:21: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_process_rdnss’
systemd-258/src/network/networkd-ndisc.c:1841:20: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1844:17: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1851:20: danger: ‘malloc(40)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/26)
# 1849|   
# 1850|                   r = set_ensure_consume(&link->ndisc_rdnss, &ndisc_rdnss_hash_ops, TAKE_PTR(x));
# 1851|->                 if (r < 0)
# 1852|                           return log_oom();
# 1853|                   assert(r > 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1004]
systemd-258/src/network/networkd-ndisc.c:2059:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258/src/network/networkd-ndisc.c:1984:12: enter_function: entry to ‘ndisc_router_process_captive_portal’
systemd-258/src/network/networkd-ndisc.c:1993:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1994:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1994:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1995:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1995:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:1997:14: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:1997:12: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-ndisc.c:2000:13: branch_true: ...to here
systemd-258/src/network/networkd-ndisc.c:2001:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2007:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2008:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2011:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2011:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2014:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2015:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2018:26: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2019:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2022:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2022:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2032:53: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2035:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2042:22: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2055:21: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_process_captive_portal’
systemd-258/src/network/networkd-ndisc.c:2056:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2059:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2066:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2068:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2059:9: danger: ‘malloc(32)’ leaks here; was allocated at [(25)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/24)
# 2057|                   return log_oom();
# 2058|   
# 2059|->         *new_entry = (NDiscCaptivePortal) {
# 2060|                   .router = router,
# 2061|                   .lifetime_usec = lifetime_usec,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1005]
systemd-258/src/network/networkd-ndisc.c:2166:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258/src/network/networkd-ndisc.c:2102:12: enter_function: entry to ‘ndisc_router_process_pref64’
systemd-258/src/network/networkd-ndisc.c:2110:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2111:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2111:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2112:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2112:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2114:14: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2114:12: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-ndisc.c:2117:13: branch_true: ...to here
systemd-258/src/network/networkd-ndisc.c:2118:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2121:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2122:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2125:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2126:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2129:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2130:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2133:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2133:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2136:12: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2146:40: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2150:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2157:22: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2157:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2162:21: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_process_pref64’
systemd-258/src/network/networkd-ndisc.c:2163:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2166:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2174:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2177:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2166:9: danger: ‘malloc(48)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/26)
# 2164|                   return log_oom();
# 2165|   
# 2166|->         *new_entry = (NDiscPREF64) {
# 2167|                   .router = router,
# 2168|                   .lifetime_usec = lifetime_usec,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1006]
systemd-258/src/network/networkd-ndisc.c:2310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(88)’
systemd-258/src/network/networkd-ndisc.c:2254:12: enter_function: entry to ‘ndisc_router_process_encrypted_dns’
systemd-258/src/network/networkd-ndisc.c:2257:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2258:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2258:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2259:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2259:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2261:25: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2266:12: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-ndisc.c:2269:13: branch_true: ...to here
systemd-258/src/network/networkd-ndisc.c:2270:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2273:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2274:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2277:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2277:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2280:13: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2281:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2284:24: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2285:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2294:23: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2295:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2301:22: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2301:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2306:21: call_function: inlined call to ‘malloc_multiply’ from ‘ndisc_router_process_encrypted_dns’
systemd-258/src/network/networkd-ndisc.c:2307:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-ndisc.c:2310:9: branch_false: ...to here
systemd-258/src/network/networkd-ndisc.c:2315:13: call_function: calling ‘sd_dns_resolver_copy’ from ‘ndisc_router_process_encrypted_dns’
systemd-258/src/network/networkd-ndisc.c:2264:46: call_function: inlined call to ‘ndisc_dnr_freep’ from ‘ndisc_router_process_encrypted_dns’
# 2308|                   return log_oom();
# 2309|   
# 2310|->         *new_entry = (NDiscDNR) {
# 2311|                   .router = router,
# 2312|                   /* .resolver, */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1007]
systemd-258/src/network/networkd-network.c:113:94: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘netdev’
systemd-258/src/network/networkd-network.c:323:5: enter_function: entry to ‘network_load_one’
systemd-258/src/network/networkd-network.c:330:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:331:9: branch_false: ...to here
systemd-258/src/network/networkd-network.c:331:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:333:13: call_function: inlined call to ‘null_or_empty_path’ from ‘network_load_one’
systemd-258/src/network/networkd-network.c:334:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:336:12: branch_false: ...to here
systemd-258/src/network/networkd-network.c:336:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:341:17: branch_false: ...to here
systemd-258/src/network/networkd-network.c:342:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:345:13: branch_false: ...to here
systemd-258/src/network/networkd-network.c:346:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:349:13: branch_false: ...to here
systemd-258/src/network/networkd-network.c:350:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
systemd-258/src/network/networkd-network.c:353:9: branch_false: ...to here
systemd-258/src/network/networkd-network.c:355:26: branch_true: following ‘true’ branch (when ‘_i_ != 2’)...
systemd-258/src/network/networkd-network.c:355:26: branch_true: ...to here
systemd-258/src/network/networkd-network.c:355:26: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:355:26: branch_false: ...to here
systemd-258/src/network/networkd-network.c:355:26: branch_true: following ‘true’ branch (when ‘_i_ != 2’)...
systemd-258/src/network/networkd-network.c:355:26: branch_true: ...to here
systemd-258/src/network/networkd-network.c:358:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:363:25: branch_false: ...to here
systemd-258/src/network/networkd-network.c:582:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:585:13: branch_false: ...to here
systemd-258/src/network/networkd-network.c:586:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:589:13: branch_false: ...to here
systemd-258/src/network/networkd-network.c:590:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:594:13: branch_false: ...to here
systemd-258/src/network/networkd-network.c:594:13: call_function: calling ‘network_verify’ from ‘network_load_one’
#  111|                           continue;
#  112|   
#  113|->                 r = hashmap_ensure_put(&network->stacked_netdevs, &stacked_netdevs_hash_ops, netdev->ifname, netdev);
#  114|                   if (r == -ENOMEM)
#  115|                           return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1008]
systemd-258/src/network/networkd-network.c:950:64: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(rvalue)’
systemd-258/src/network/networkd-network.c:908:5: enter_function: entry to ‘config_parse_stacked_netdev’
systemd-258/src/network/networkd-network.c:922:23: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:925:9: branch_false: ...to here
systemd-258/src/network/networkd-network.c:925:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:926:9: branch_false: ...to here
systemd-258/src/network/networkd-network.c:926:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:927:9: branch_false: ...to here
systemd-258/src/network/networkd-network.c:927:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:928:9: branch_false: ...to here
systemd-258/src/network/networkd-network.c:940:14: call_function: inlined call to ‘ifname_valid’ from ‘config_parse_stacked_netdev’
systemd-258/src/network/networkd-network.c:940:12: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-network.c:946:16: branch_true: ...to here
systemd-258/src/network/networkd-network.c:946:16: acquire_memory: allocated here
systemd-258/src/network/networkd-network.c:947:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:950:64: branch_false: ...to here
systemd-258/src/network/networkd-network.c:951:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:953:12: branch_false: ...to here
systemd-258/src/network/networkd-network.c:953:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-network.c:956:17: branch_false: ...to here
systemd-258/src/network/networkd-network.c:950:64: danger: ‘strdup(rvalue)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  948|                   return log_oom();
#  949|   
#  950|->         r = hashmap_ensure_put(h, &string_hash_ops_free, name, INT_TO_PTR(kind));
#  951|           if (r == -ENOMEM)
#  952|                   return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1009]
systemd-258/src/network/networkd-nexthop.c:41:30: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nh’
systemd-258/src/network/networkd-nexthop.c:1035:12: enter_function: entry to ‘nexthop_update_group’
systemd-258/src/network/networkd-nexthop.c:1041:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1042:9: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1042:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1044:13: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1045:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1048:9: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1048:9: call_function: calling ‘nexthop_detach_from_group_members’ from ‘nexthop_update_group’
#   39|                           continue;
#   40|   
#   41|->                 set_remove(nh->nexthops, UINT32_TO_PTR(nexthop->id));
#   42|           }
#   43|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1010]
systemd-258/src/network/networkd-nexthop.c:64:39: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘nh’
systemd-258/src/network/networkd-nexthop.c:1092:5: enter_function: entry to ‘manager_rtnl_process_nexthop’
systemd-258/src/network/networkd-nexthop.c:1095:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1096:9: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1096:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1097:9: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1097:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1099:13: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1099:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1107:18: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1109:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1112:21: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1112:21: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-nexthop.c:1117:18: branch_true: ...to here
systemd-258/src/network/networkd-nexthop.c:1119:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1122:19: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1122:19: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1125:20: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1125:19: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1130:18: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1131:16: call_function: calling ‘nexthop_get_by_id’ from ‘manager_rtnl_process_nexthop’
systemd-258/src/network/networkd-nexthop.c:1131:16: return_function: returning to ‘manager_rtnl_process_nexthop’ from ‘nexthop_get_by_id’
systemd-258/src/network/networkd-nexthop.c:1133:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1142:18: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1143:16: call_function: calling ‘nexthop_get_request_by_id’ from ‘manager_rtnl_process_nexthop’
systemd-258/src/network/networkd-nexthop.c:1143:16: return_function: returning to ‘manager_rtnl_process_nexthop’ from ‘nexthop_get_request_by_id’
systemd-258/src/network/networkd-nexthop.c:1147:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1163:13: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1163:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-nexthop.c:1170:57: branch_false: ...to here
systemd-258/src/network/networkd-nexthop.c:1182:16: call_function: calling ‘nexthop_update_group’ from ‘manager_rtnl_process_nexthop’
#   62|                   }
#   63|   
#   64|->                 r = set_ensure_put(&nh->nexthops, NULL, UINT32_TO_PTR(nexthop->id));
#   65|                   if (r < 0)
#   66|                           log_debug_errno(r, "Failed to save nexthop ID (%"PRIu32") to group member (%"PRIu32"), ignoring: %m",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1011]
systemd-258/src/network/networkd-queue.c:51:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.n_ref’
systemd-258/src/network/networkd-queue.c:242:5: enter_function: entry to ‘manager_queue_request_full’
systemd-258/src/network/networkd-queue.c:254:16: call_function: calling ‘request_new’ from ‘manager_queue_request_full’
#   49|   }
#   50|   
#   51|-> DEFINE_TRIVIAL_REF_UNREF_FUNC(Request, request, request_free);
#   52|   
#   53|   static void request_destroy_callback(Request *req) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1012]
systemd-258/src/network/networkd-queue.c:409:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*req.manager’
systemd-258/src/network/networkd-queue.c:431:5: enter_function: entry to ‘remove_request_add’
systemd-258/src/network/networkd-queue.c:443:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-queue.c:444:9: branch_false: ...to here
systemd-258/src/network/networkd-queue.c:444:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-queue.c:445:9: branch_false: ...to here
systemd-258/src/network/networkd-queue.c:445:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-queue.c:446:9: branch_false: ...to here
systemd-258/src/network/networkd-queue.c:446:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-queue.c:451:13: branch_false: ...to here
systemd-258/src/network/networkd-queue.c:451:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-queue.c:454:15: call_function: inlined call to ‘malloc_multiply’ from ‘remove_request_add’
systemd-258/src/network/networkd-queue.c:455:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-queue.c:459:25: branch_false: ...to here
systemd-258/src/network/networkd-queue.c:440:56: call_function: inlined call to ‘remove_request_freep’ from ‘remove_request_add’
#  407|                   return NULL;
#  408|   
#  409|->         if (req->manager)
#  410|                   ordered_set_remove(req->manager->remove_request_queue, req);
#  411|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1013]
systemd-258/src/network/networkd-radv.c:47:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(88)’
systemd-258/src/network/networkd-radv.c:65:12: enter_function: entry to ‘prefix_new_static’
systemd-258/src/network/networkd-radv.c:70:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:71:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:72:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:72:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:73:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:73:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:75:13: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:76:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:79:18: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:80:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:85:18: call_function: inlined call to ‘malloc_multiply’ from ‘prefix_new_static’
systemd-258/src/network/networkd-radv.c:86:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:91:28: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:67:41: call_function: inlined call to ‘prefix_freep’ from ‘prefix_new_static’
#   45|                   return NULL;
#   46|   
#   47|->         if (prefix->network) {
#   48|                   assert(prefix->section);
#   49|                   hashmap_remove(prefix->network->prefixes_by_section, prefix->section);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1014]
systemd-258/src/network/networkd-radv.c:112:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258/src/network/networkd-radv.c:129:12: enter_function: entry to ‘route_prefix_new_static’
systemd-258/src/network/networkd-radv.c:134:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:135:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:135:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:136:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:136:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:137:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:137:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:139:13: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:140:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:143:18: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:144:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:149:18: call_function: inlined call to ‘malloc_multiply’ from ‘route_prefix_new_static’
systemd-258/src/network/networkd-radv.c:150:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:155:28: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:131:52: call_function: inlined call to ‘route_prefix_freep’ from ‘route_prefix_new_static’
#  110|                   return NULL;
#  111|   
#  112|->         if (prefix->network) {
#  113|                   assert(prefix->section);
#  114|                   hashmap_remove(prefix->network->route_prefixes_by_section, prefix->section);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1015]
systemd-258/src/network/networkd-radv.c:173:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258/src/network/networkd-radv.c:190:12: enter_function: entry to ‘prefix64_new_static’
systemd-258/src/network/networkd-radv.c:195:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:196:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:196:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:197:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:197:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:198:9: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:198:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:200:13: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:201:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:204:18: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:205:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:210:18: call_function: inlined call to ‘malloc_multiply’ from ‘prefix64_new_static’
systemd-258/src/network/networkd-radv.c:211:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-radv.c:216:28: branch_false: ...to here
systemd-258/src/network/networkd-radv.c:192:45: call_function: inlined call to ‘prefix64_freep’ from ‘prefix64_new_static’
#  171|                   return NULL;
#  172|   
#  173|->         if (prefix->network) {
#  174|                   assert(prefix->section);
#  175|                   hashmap_remove(prefix->network->pref64_prefixes_by_section, prefix->section);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1016]
systemd-258/src/network/networkd-routing-policy-rule.c:44:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rule’
systemd-258/src/network/networkd-routing-policy-rule.c:1580:5: enter_function: entry to ‘config_parse_routing_policy_rule’
systemd-258/src/network/networkd-routing-policy-rule.c:1615:28: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-routing-policy-rule.c:1618:9: branch_false: ...to here
systemd-258/src/network/networkd-routing-policy-rule.c:1618:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-routing-policy-rule.c:1620:13: branch_false: ...to here
systemd-258/src/network/networkd-routing-policy-rule.c:1620:13: call_function: calling ‘routing_policy_rule_new_static’ from ‘config_parse_routing_policy_rule’
#   42|   
#   43|           if (rule->network) {
#   44|->                 assert(rule->section);
#   45|                   hashmap_remove(rule->network->rules_by_section, rule->section);
#   46|                   rule->network = NULL;

Error: CPPCHECK_WARNING (CWE-457): [#def1017]
systemd-258/src/network/networkd-serialize.c:238: error[uninitvar]: Uninitialized variable: i
#  236|           sd_json_variant *i;
#  237|           JSON_VARIANT_ARRAY_FOREACH(i, p.addresses)
#  238|->                 RET_GATHER(ret, link_deserialize_address(link, i));
#  239|   
#  240|           return ret;

Error: CPPCHECK_WARNING (CWE-457): [#def1018]
systemd-258/src/network/networkd-serialize.c:463: error[uninitvar]: Uninitialized variable: i
#  461|           sd_json_variant *i;
#  462|           JSON_VARIANT_ARRAY_FOREACH(i, sd_json_variant_by_key(v, "Interfaces"))
#  463|->                 RET_GATHER(ret, manager_deserialize_link(manager, i));
#  464|   
#  465|           JSON_VARIANT_ARRAY_FOREACH(i, sd_json_variant_by_key(v, "NextHops"))

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1019]
systemd-258/src/network/networkd-setlink.c:771:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘req’
systemd-258/src/network/networkd-setlink.c:736:5: enter_function: entry to ‘link_request_to_set_addrgen_mode’
systemd-258/src/network/networkd-setlink.c:741:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-setlink.c:742:9: branch_false: ...to here
systemd-258/src/network/networkd-setlink.c:742:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-setlink.c:744:14: branch_false: ...to here
systemd-258/src/network/networkd-setlink.c:744:12: branch_true: following ‘true’ branch...
systemd-258/src/network/networkd-setlink.c:747:16: branch_true: ...to here
systemd-258/src/network/networkd-setlink.c:749:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-setlink.c:756:12: branch_false: ...to here
systemd-258/src/network/networkd-setlink.c:765:13: call_function: calling ‘link_request_set_link’ from ‘link_request_to_set_addrgen_mode’
systemd-258/src/network/networkd-setlink.c:765:13: return_function: returning to ‘link_request_to_set_addrgen_mode’ from ‘link_request_set_link’
systemd-258/src/network/networkd-setlink.c:768:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-setlink.c:771:25: branch_false: ...to here
systemd-258/src/network/networkd-setlink.c:771:12: danger: use of uninitialized value ‘req’ here
#  769|                   return r;
#  770|   
#  771|->         req->userdata = UINT8_TO_PTR(mode);
#  772|           return 0;
#  773|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1020]
systemd-258/src/network/networkd-setlink.c:984:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘req’
systemd-258/src/network/networkd-setlink.c:969:5: enter_function: entry to ‘link_request_to_set_mtu’
systemd-258/src/network/networkd-setlink.c:973:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-setlink.c:975:12: branch_false: ...to here
systemd-258/src/network/networkd-setlink.c:975:12: branch_false: following ‘false’ branch (when ‘mtu != 0’)...
systemd-258/src/network/networkd-setlink.c:978:13: branch_false: ...to here
systemd-258/src/network/networkd-setlink.c:978:13: call_function: calling ‘link_request_set_link’ from ‘link_request_to_set_mtu’
systemd-258/src/network/networkd-setlink.c:978:13: return_function: returning to ‘link_request_to_set_mtu’ from ‘link_request_set_link’
systemd-258/src/network/networkd-setlink.c:981:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-setlink.c:984:25: branch_false: ...to here
systemd-258/src/network/networkd-setlink.c:984:12: danger: use of uninitialized value ‘req’ here
#  982|                   return r;
#  983|   
#  984|->         req->userdata = UINT32_TO_PTR(mtu);
#  985|           return 0;
#  986|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1021]
systemd-258/src/network/tc/cake.c:22:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:15:12: enter_function: entry to ‘cake_init’
systemd-258/src/network/tc/cake.c:18:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:20:13: call_function: inlined call to ‘CAKE’ from ‘cake_init’
systemd-258/src/network/tc/cake.c:22:9: danger: dereference of NULL ‘<unknown>’
#   20|           c = CAKE(qdisc);
#   21|   
#   22|->         c->autorate = -1;
#   23|           c->compensation_mode = _CAKE_COMPENSATION_MODE_INVALID;
#   24|           c->raw = -1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1022]
systemd-258/src/network/tc/cake.c:175:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:141:5: enter_function: entry to ‘config_parse_cake_bandwidth’
systemd-258/src/network/tc/cake.c:155:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:156:18: branch_false: ...to here
systemd-258/src/network/tc/cake.c:159:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:160:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:160:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:161:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:161:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:163:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:164:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:166:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:166:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:172:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:174:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_bandwidth’
systemd-258/src/network/tc/cake.c:175:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:175:17: danger: dereference of NULL ‘<unknown>’
#  173|   
#  174|           if (isempty(rvalue)) {
#  175|->                 c->bandwidth = 0;
#  176|   
#  177|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1023]
systemd-258/src/network/tc/cake.c:189:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:141:5: enter_function: entry to ‘config_parse_cake_bandwidth’
systemd-258/src/network/tc/cake.c:155:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:156:18: branch_false: ...to here
systemd-258/src/network/tc/cake.c:159:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:160:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:160:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:161:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:161:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:163:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:164:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:166:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:166:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:172:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:174:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_bandwidth’
systemd-258/src/network/tc/cake.c:181:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:182:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:189:24: branch_false: ...to here
systemd-258/src/network/tc/cake.c:189:9: danger: dereference of NULL ‘<unknown>’
#  187|           }
#  188|   
#  189|->         c->bandwidth = k/8;
#  190|           TAKE_PTR(qdisc);
#  191|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1024]
systemd-258/src/network/tc/cake.c:229:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:195:5: enter_function: entry to ‘config_parse_cake_overhead’
systemd-258/src/network/tc/cake.c:209:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:210:17: branch_false: ...to here
systemd-258/src/network/tc/cake.c:213:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:214:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:215:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:215:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:217:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:218:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:220:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:220:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:226:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:228:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_overhead’
systemd-258/src/network/tc/cake.c:229:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:229:17: danger: dereference of NULL ‘<unknown>’
#  227|   
#  228|           if (isempty(rvalue)) {
#  229|->                 c->overhead_set = false;
#  230|                   TAKE_PTR(qdisc);
#  231|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1025]
systemd-258/src/network/tc/cake.c:248:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:195:5: enter_function: entry to ‘config_parse_cake_overhead’
systemd-258/src/network/tc/cake.c:209:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:210:17: branch_false: ...to here
systemd-258/src/network/tc/cake.c:213:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:214:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:215:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:215:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:217:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:218:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:220:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:220:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:226:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:228:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_overhead’
systemd-258/src/network/tc/cake.c:234:13: call_function: inlined call to ‘safe_atoi32’ from ‘config_parse_cake_overhead’
systemd-258/src/network/tc/cake.c:235:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:241:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:241:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:248:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:248:9: danger: dereference of NULL ‘<unknown>’
#  246|           }
#  247|   
#  248|->         c->overhead = v;
#  249|           c->overhead_set = true;
#  250|           TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1026]
systemd-258/src/network/tc/cake.c:288:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:254:5: enter_function: entry to ‘config_parse_cake_mpu’
systemd-258/src/network/tc/cake.c:268:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:269:18: branch_false: ...to here
systemd-258/src/network/tc/cake.c:272:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:273:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:273:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:274:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:274:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:276:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:277:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:279:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:279:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:285:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:287:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_mpu’
systemd-258/src/network/tc/cake.c:288:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:288:17: danger: dereference of NULL ‘<unknown>’
#  286|   
#  287|           if (isempty(rvalue)) {
#  288|->                 c->mpu = 0;
#  289|                   TAKE_PTR(qdisc);
#  290|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1027]
systemd-258/src/network/tc/cake.c:307:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:254:5: enter_function: entry to ‘config_parse_cake_mpu’
systemd-258/src/network/tc/cake.c:268:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:269:18: branch_false: ...to here
systemd-258/src/network/tc/cake.c:272:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:273:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:273:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:274:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:274:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:276:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:277:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:279:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:279:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:285:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:287:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_mpu’
systemd-258/src/network/tc/cake.c:293:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_cake_mpu’
systemd-258/src/network/tc/cake.c:294:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:300:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:300:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:307:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:307:9: danger: dereference of NULL ‘<unknown>’
#  305|           }
#  306|   
#  307|->         c->mpu = v;
#  308|           TAKE_PTR(qdisc);
#  309|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1028]
systemd-258/src/network/tc/cake.c:411:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:377:5: enter_function: entry to ‘config_parse_cake_compensation_mode’
systemd-258/src/network/tc/cake.c:391:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:395:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:395:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:396:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:396:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:397:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:397:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:399:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:400:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:402:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:402:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:408:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:410:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_compensation_mode’
systemd-258/src/network/tc/cake.c:411:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:411:17: danger: dereference of NULL ‘<unknown>’
#  409|   
#  410|           if (isempty(rvalue)) {
#  411|->                 c->compensation_mode = _CAKE_COMPENSATION_MODE_INVALID;
#  412|                   TAKE_PTR(qdisc);
#  413|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1029]
systemd-258/src/network/tc/cake.c:424:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:377:5: enter_function: entry to ‘config_parse_cake_compensation_mode’
systemd-258/src/network/tc/cake.c:391:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:395:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:395:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:396:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:396:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:397:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:397:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:399:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:400:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:402:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:402:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:408:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:410:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_compensation_mode’
systemd-258/src/network/tc/cake.c:416:16: call_function: inlined call to ‘cake_compensation_mode_from_string’ from ‘config_parse_cake_compensation_mode’
systemd-258/src/network/tc/cake.c:417:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:424:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:424:9: danger: dereference of NULL ‘<unknown>’
#  422|           }
#  423|   
#  424|->         c->compensation_mode = mode;
#  425|           TAKE_PTR(qdisc);
#  426|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1030]
systemd-258/src/network/tc/cake.c:476:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:442:5: enter_function: entry to ‘config_parse_cake_flow_isolation_mode’
systemd-258/src/network/tc/cake.c:456:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:460:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:460:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:461:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:461:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:462:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:462:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:464:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:465:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:467:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:467:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:473:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:475:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_flow_isolation_mode’
systemd-258/src/network/tc/cake.c:476:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:476:17: danger: dereference of NULL ‘<unknown>’
#  474|   
#  475|           if (isempty(rvalue)) {
#  476|->                 c->flow_isolation_mode = _CAKE_FLOW_ISOLATION_MODE_INVALID;
#  477|                   TAKE_PTR(qdisc);
#  478|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1031]
systemd-258/src/network/tc/cake.c:489:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:442:5: enter_function: entry to ‘config_parse_cake_flow_isolation_mode’
systemd-258/src/network/tc/cake.c:456:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:460:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:460:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:461:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:461:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:462:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:462:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:464:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:465:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:467:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:467:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:473:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:475:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_flow_isolation_mode’
systemd-258/src/network/tc/cake.c:481:16: call_function: inlined call to ‘cake_flow_isolation_mode_from_string’ from ‘config_parse_cake_flow_isolation_mode’
systemd-258/src/network/tc/cake.c:482:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:489:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:489:9: danger: dereference of NULL ‘<unknown>’
#  487|           }
#  488|   
#  489|->         c->flow_isolation_mode = mode;
#  490|           TAKE_PTR(qdisc);
#  491|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1032]
systemd-258/src/network/tc/cake.c:538:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:504:5: enter_function: entry to ‘config_parse_cake_priority_queueing_preset’
systemd-258/src/network/tc/cake.c:519:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:522:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:522:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:523:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:523:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:524:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:524:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:526:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:527:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:529:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:529:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:535:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:537:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_priority_queueing_preset’
systemd-258/src/network/tc/cake.c:538:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:538:17: danger: dereference of NULL ‘<unknown>’
#  536|   
#  537|           if (isempty(rvalue)) {
#  538|->                 c->preset = _CAKE_PRESET_INVALID;
#  539|                   TAKE_PTR(qdisc);
#  540|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1033]
systemd-258/src/network/tc/cake.c:551:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:504:5: enter_function: entry to ‘config_parse_cake_priority_queueing_preset’
systemd-258/src/network/tc/cake.c:519:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:522:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:522:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:523:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:523:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:524:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:524:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:526:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:527:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:529:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:529:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:535:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:537:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_priority_queueing_preset’
systemd-258/src/network/tc/cake.c:543:18: call_function: inlined call to ‘cake_priority_queueing_preset_from_string’ from ‘config_parse_cake_priority_queueing_preset’
systemd-258/src/network/tc/cake.c:544:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:551:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:551:9: danger: dereference of NULL ‘<unknown>’
#  549|           }
#  550|   
#  551|->         c->preset = preset;
#  552|           TAKE_PTR(qdisc);
#  553|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1034]
systemd-258/src/network/tc/cake.c:590:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:556:5: enter_function: entry to ‘config_parse_cake_fwmark’
systemd-258/src/network/tc/cake.c:570:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:571:18: branch_false: ...to here
systemd-258/src/network/tc/cake.c:574:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:575:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:575:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:576:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:576:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:578:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:579:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:581:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:581:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:587:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:589:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_fwmark’
systemd-258/src/network/tc/cake.c:590:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:590:17: danger: dereference of NULL ‘<unknown>’
#  588|   
#  589|           if (isempty(rvalue)) {
#  590|->                 c->fwmark = 0;
#  591|                   TAKE_PTR(qdisc);
#  592|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1035]
systemd-258/src/network/tc/cake.c:609:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:556:5: enter_function: entry to ‘config_parse_cake_fwmark’
systemd-258/src/network/tc/cake.c:570:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:571:18: branch_false: ...to here
systemd-258/src/network/tc/cake.c:574:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:575:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:575:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:576:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:576:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:578:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:579:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:581:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:581:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:587:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:589:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_fwmark’
systemd-258/src/network/tc/cake.c:595:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_cake_fwmark’
systemd-258/src/network/tc/cake.c:596:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:602:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:602:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:609:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:609:9: danger: dereference of NULL ‘<unknown>’
#  607|           }
#  608|   
#  609|->         c->fwmark = fwmark;
#  610|           TAKE_PTR(qdisc);
#  611|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1036]
systemd-258/src/network/tc/cake.c:648:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:614:5: enter_function: entry to ‘config_parse_cake_rtt’
systemd-258/src/network/tc/cake.c:628:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:629:16: branch_false: ...to here
systemd-258/src/network/tc/cake.c:632:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:633:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:633:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:634:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:634:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:636:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:637:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:639:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:639:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:645:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:647:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_rtt’
systemd-258/src/network/tc/cake.c:648:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:648:17: danger: dereference of NULL ‘<unknown>’
#  646|   
#  647|           if (isempty(rvalue)) {
#  648|->                 c->rtt = 0;
#  649|                   TAKE_PTR(qdisc);
#  650|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1037]
systemd-258/src/network/tc/cake.c:667:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:614:5: enter_function: entry to ‘config_parse_cake_rtt’
systemd-258/src/network/tc/cake.c:628:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:629:16: branch_false: ...to here
systemd-258/src/network/tc/cake.c:632:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:633:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:633:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:634:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:634:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:636:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:637:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:639:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:639:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:645:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:647:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_rtt’
systemd-258/src/network/tc/cake.c:653:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:654:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:660:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:660:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:667:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:667:9: danger: dereference of NULL ‘<unknown>’
#  665|           }
#  666|   
#  667|->         c->rtt = t;
#  668|           TAKE_PTR(qdisc);
#  669|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1038]
systemd-258/src/network/tc/cake.c:714:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:680:5: enter_function: entry to ‘config_parse_cake_ack_filter’
systemd-258/src/network/tc/cake.c:695:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:698:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:698:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:699:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:699:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:700:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:700:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:702:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:703:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:705:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:705:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:711:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:713:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_ack_filter’
systemd-258/src/network/tc/cake.c:714:17: branch_true: ...to here
systemd-258/src/network/tc/cake.c:714:17: danger: dereference of NULL ‘<unknown>’
#  712|   
#  713|           if (isempty(rvalue)) {
#  714|->                 c->ack_filter = _CAKE_ACK_FILTER_INVALID;
#  715|                   TAKE_PTR(qdisc);
#  716|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1039]
systemd-258/src/network/tc/cake.c:727:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/cake.c:680:5: enter_function: entry to ‘config_parse_cake_ack_filter’
systemd-258/src/network/tc/cake.c:695:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:698:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:698:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:699:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:699:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:700:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:700:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:702:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:703:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:705:12: branch_false: ...to here
systemd-258/src/network/tc/cake.c:705:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:711:13: branch_false: ...to here
systemd-258/src/network/tc/cake.c:713:13: call_function: inlined call to ‘isempty’ from ‘config_parse_cake_ack_filter’
systemd-258/src/network/tc/cake.c:719:22: call_function: inlined call to ‘cake_ack_filter_from_string’ from ‘config_parse_cake_ack_filter’
systemd-258/src/network/tc/cake.c:720:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/cake.c:727:9: branch_false: ...to here
systemd-258/src/network/tc/cake.c:727:9: danger: dereference of NULL ‘<unknown>’
#  725|           }
#  726|   
#  727|->         c->ack_filter = ack_filter;
#  728|           TAKE_PTR(qdisc);
#  729|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1040]
systemd-258/src/network/tc/codel.c:20:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/codel.c:13:12: enter_function: entry to ‘controlled_delay_init’
systemd-258/src/network/tc/codel.c:16:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/codel.c:18:14: call_function: inlined call to ‘CODEL’ from ‘controlled_delay_init’
systemd-258/src/network/tc/codel.c:20:9: danger: dereference of NULL ‘<unknown>’
#   18|           cd = CODEL(qdisc);
#   19|   
#   20|->         cd->ce_threshold_usec = USEC_INFINITY;
#   21|           cd->ecn = -1;
#   22|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1041]
systemd-258/src/network/tc/codel.c:110:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/codel.c:77:5: enter_function: entry to ‘config_parse_controlled_delay_u32’
systemd-258/src/network/tc/codel.c:91:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/codel.c:94:9: branch_false: ...to here
systemd-258/src/network/tc/codel.c:94:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/codel.c:95:9: branch_false: ...to here
systemd-258/src/network/tc/codel.c:95:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/codel.c:96:9: branch_false: ...to here
systemd-258/src/network/tc/codel.c:96:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/codel.c:98:13: branch_false: ...to here
systemd-258/src/network/tc/codel.c:99:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/codel.c:101:12: branch_false: ...to here
systemd-258/src/network/tc/codel.c:101:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/codel.c:107:14: branch_false: ...to here
systemd-258/src/network/tc/codel.c:109:13: call_function: inlined call to ‘isempty’ from ‘config_parse_controlled_delay_u32’
systemd-258/src/network/tc/codel.c:110:17: branch_true: ...to here
systemd-258/src/network/tc/codel.c:110:17: danger: dereference of NULL ‘<unknown>’
#  108|   
#  109|           if (isempty(rvalue)) {
#  110|->                 cd->packet_limit = 0;
#  111|   
#  112|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1042]
systemd-258/src/network/tc/drr.c:79:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/drr.c:45:5: enter_function: entry to ‘config_parse_drr_size’
systemd-258/src/network/tc/drr.c:59:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:60:18: branch_false: ...to here
systemd-258/src/network/tc/drr.c:63:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:64:9: branch_false: ...to here
systemd-258/src/network/tc/drr.c:64:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:65:9: branch_false: ...to here
systemd-258/src/network/tc/drr.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:67:13: branch_false: ...to here
systemd-258/src/network/tc/drr.c:68:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:70:12: branch_false: ...to here
systemd-258/src/network/tc/drr.c:70:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:76:15: branch_false: ...to here
systemd-258/src/network/tc/drr.c:78:13: call_function: inlined call to ‘isempty’ from ‘config_parse_drr_size’
systemd-258/src/network/tc/drr.c:79:17: branch_true: ...to here
systemd-258/src/network/tc/drr.c:79:17: danger: dereference of NULL ‘<unknown>’
#   77|   
#   78|           if (isempty(rvalue)) {
#   79|->                 drr->quantum = 0;
#   80|   
#   81|                   TAKE_PTR(tclass);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1043]
systemd-258/src/network/tc/drr.c:98:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/drr.c:45:5: enter_function: entry to ‘config_parse_drr_size’
systemd-258/src/network/tc/drr.c:59:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:60:18: branch_false: ...to here
systemd-258/src/network/tc/drr.c:63:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:64:9: branch_false: ...to here
systemd-258/src/network/tc/drr.c:64:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:65:9: branch_false: ...to here
systemd-258/src/network/tc/drr.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:67:13: branch_false: ...to here
systemd-258/src/network/tc/drr.c:68:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:70:12: branch_false: ...to here
systemd-258/src/network/tc/drr.c:70:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:76:15: branch_false: ...to here
systemd-258/src/network/tc/drr.c:78:13: call_function: inlined call to ‘isempty’ from ‘config_parse_drr_size’
systemd-258/src/network/tc/drr.c:85:13: branch_false: ...to here
systemd-258/src/network/tc/drr.c:86:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:92:13: branch_false: ...to here
systemd-258/src/network/tc/drr.c:92:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/drr.c:98:24: branch_false: ...to here
systemd-258/src/network/tc/drr.c:98:9: danger: dereference of NULL ‘<unknown>’
#   96|           }
#   97|   
#   98|->         drr->quantum = (uint32_t) u;
#   99|   
#  100|           TAKE_PTR(tclass);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1044]
systemd-258/src/network/tc/ets.c:178:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/ets.c:144:5: enter_function: entry to ‘config_parse_ets_quanta’
systemd-258/src/network/tc/ets.c:158:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:161:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:161:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:162:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:162:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:163:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:163:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:165:13: branch_false: ...to here
systemd-258/src/network/tc/ets.c:166:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:168:12: branch_false: ...to here
systemd-258/src/network/tc/ets.c:168:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:174:15: branch_false: ...to here
systemd-258/src/network/tc/ets.c:176:13: call_function: inlined call to ‘isempty’ from ‘config_parse_ets_quanta’
systemd-258/src/network/tc/ets.c:177:17: branch_true: ...to here
systemd-258/src/network/tc/ets.c:178:17: danger: dereference of NULL ‘<unknown>’
#  176|           if (isempty(rvalue)) {
#  177|                   memzero(ets->quanta, sizeof(uint32_t) * TCQ_ETS_MAX_BANDS);
#  178|->                 ets->n_quanta = 0;
#  179|   
#  180|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1045]
systemd-258/src/network/tc/ets.c:212:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/ets.c:144:5: enter_function: entry to ‘config_parse_ets_quanta’
systemd-258/src/network/tc/ets.c:158:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:161:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:161:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:162:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:162:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:163:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:163:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:165:13: branch_false: ...to here
systemd-258/src/network/tc/ets.c:166:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:168:12: branch_false: ...to here
systemd-258/src/network/tc/ets.c:168:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:174:15: branch_false: ...to here
systemd-258/src/network/tc/ets.c:176:13: call_function: inlined call to ‘isempty’ from ‘config_parse_ets_quanta’
systemd-258/src/network/tc/ets.c:184:26: branch_false: ...to here
systemd-258/src/network/tc/ets.c:189:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:191:20: branch_false: ...to here
systemd-258/src/network/tc/ets.c:191:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:196:20: branch_false: ...to here
systemd-258/src/network/tc/ets.c:196:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:199:21: branch_false: ...to here
systemd-258/src/network/tc/ets.c:212:21: danger: dereference of NULL ‘<unknown>’
#  210|                           continue;
#  211|                   }
#  212|->                 if (ets->n_quanta >= TCQ_ETS_MAX_BANDS) {
#  213|                           log_syntax(unit, LOG_WARNING, filename, line, 0,
#  214|                                      "Too many quanta in '%s=', ignoring assignment: %s",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1046]
systemd-258/src/network/tc/ets.c:261:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/ets.c:227:5: enter_function: entry to ‘config_parse_ets_prio’
systemd-258/src/network/tc/ets.c:241:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:244:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:245:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:246:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:248:13: branch_false: ...to here
systemd-258/src/network/tc/ets.c:249:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:251:12: branch_false: ...to here
systemd-258/src/network/tc/ets.c:251:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:257:15: branch_false: ...to here
systemd-258/src/network/tc/ets.c:259:13: call_function: inlined call to ‘isempty’ from ‘config_parse_ets_prio’
systemd-258/src/network/tc/ets.c:260:17: branch_true: ...to here
systemd-258/src/network/tc/ets.c:261:17: danger: dereference of NULL ‘<unknown>’
#  259|           if (isempty(rvalue)) {
#  260|                   memzero(ets->prio, sizeof(uint8_t) * (TC_PRIO_MAX + 1));
#  261|->                 ets->n_prio = 0;
#  262|   
#  263|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1047]
systemd-258/src/network/tc/ets.c:289:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/ets.c:227:5: enter_function: entry to ‘config_parse_ets_prio’
systemd-258/src/network/tc/ets.c:241:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:244:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:245:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:246:9: branch_false: ...to here
systemd-258/src/network/tc/ets.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:248:13: branch_false: ...to here
systemd-258/src/network/tc/ets.c:249:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:251:12: branch_false: ...to here
systemd-258/src/network/tc/ets.c:251:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:257:15: branch_false: ...to here
systemd-258/src/network/tc/ets.c:259:13: call_function: inlined call to ‘isempty’ from ‘config_parse_ets_prio’
systemd-258/src/network/tc/ets.c:267:26: branch_false: ...to here
systemd-258/src/network/tc/ets.c:272:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:274:20: branch_false: ...to here
systemd-258/src/network/tc/ets.c:274:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:279:20: branch_false: ...to here
systemd-258/src/network/tc/ets.c:279:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:282:21: branch_false: ...to here
systemd-258/src/network/tc/ets.c:289:21: danger: dereference of NULL ‘<unknown>’
#  287|                           continue;
#  288|                   }
#  289|->                 if (ets->n_prio > TC_PRIO_MAX) {
#  290|                           log_syntax(unit, LOG_WARNING, filename, line, 0,
#  291|                                      "Too many priomap in '%s=', ignoring assignment: %s",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1048]
systemd-258/src/network/tc/ets.c:311:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/ets.c:304:12: enter_function: entry to ‘enhanced_transmission_selection_verify’
systemd-258/src/network/tc/ets.c:307:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/ets.c:309:15: call_function: inlined call to ‘ETS’ from ‘enhanced_transmission_selection_verify’
systemd-258/src/network/tc/ets.c:311:13: danger: dereference of NULL ‘<unknown>’
#  309|           ets = ETS(qdisc);
#  310|   
#  311|->         if (ets->n_bands == 0)
#  312|                   ets->n_bands = ets->n_strict + ets->n_quanta;
#  313|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1049]
systemd-258/src/network/tc/fifo.c:137:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fifo.c:103:5: enter_function: entry to ‘config_parse_bfifo_size’
systemd-258/src/network/tc/fifo.c:116:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:118:18: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:121:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:122:9: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:122:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:123:9: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:123:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:125:13: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:126:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:128:12: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:128:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:134:16: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:136:13: call_function: inlined call to ‘isempty’ from ‘config_parse_bfifo_size’
systemd-258/src/network/tc/fifo.c:137:17: branch_true: ...to here
systemd-258/src/network/tc/fifo.c:137:17: danger: dereference of NULL ‘<unknown>’
#  135|   
#  136|           if (isempty(rvalue)) {
#  137|->                 fifo->limit = 0;
#  138|   
#  139|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1050]
systemd-258/src/network/tc/fifo.c:156:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fifo.c:103:5: enter_function: entry to ‘config_parse_bfifo_size’
systemd-258/src/network/tc/fifo.c:116:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:118:18: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:121:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:122:9: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:122:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:123:9: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:123:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:125:13: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:126:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:128:12: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:128:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:134:16: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:136:13: call_function: inlined call to ‘isempty’ from ‘config_parse_bfifo_size’
systemd-258/src/network/tc/fifo.c:143:13: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:144:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:150:13: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:150:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fifo.c:156:23: branch_false: ...to here
systemd-258/src/network/tc/fifo.c:156:9: danger: dereference of NULL ‘<unknown>’
#  154|           }
#  155|   
#  156|->         fifo->limit = (uint32_t) u;
#  157|   
#  158|           TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1051]
systemd-258/src/network/tc/fq-codel.c:21:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq-codel.c:14:12: enter_function: entry to ‘fair_queueing_controlled_delay_init’
systemd-258/src/network/tc/fq-codel.c:17:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-codel.c:19:16: call_function: inlined call to ‘FQ_CODEL’ from ‘fair_queueing_controlled_delay_init’
systemd-258/src/network/tc/fq-codel.c:21:9: danger: dereference of NULL ‘<unknown>’
#   19|           fqcd = FQ_CODEL(qdisc);
#   20|   
#   21|->         fqcd->memory_limit = UINT32_MAX;
#   22|           fqcd->ce_threshold_usec = USEC_INFINITY;
#   23|           fqcd->ecn = -1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1052]
systemd-258/src/network/tc/fq-pie.c:72:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq-pie.c:40:5: enter_function: entry to ‘config_parse_fq_pie_packet_limit’
systemd-258/src/network/tc/fq-pie.c:54:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:55:18: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:58:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:59:9: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:59:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:60:9: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:60:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:62:13: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:63:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:65:12: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:65:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:69:18: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:71:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fq_pie_packet_limit’
systemd-258/src/network/tc/fq-pie.c:72:17: branch_true: ...to here
systemd-258/src/network/tc/fq-pie.c:72:17: danger: dereference of NULL ‘<unknown>’
#   70|   
#   71|           if (isempty(rvalue)) {
#   72|->                 fq_pie->packet_limit = 0;
#   73|   
#   74|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1053]
systemd-258/src/network/tc/fq-pie.c:92:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq-pie.c:40:5: enter_function: entry to ‘config_parse_fq_pie_packet_limit’
systemd-258/src/network/tc/fq-pie.c:54:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:55:18: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:58:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:59:9: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:59:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:60:9: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:60:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:62:13: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:63:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:65:12: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:65:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:69:18: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:71:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fq_pie_packet_limit’
systemd-258/src/network/tc/fq-pie.c:78:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_fq_pie_packet_limit’
systemd-258/src/network/tc/fq-pie.c:79:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:85:13: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:85:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq-pie.c:92:9: branch_false: ...to here
systemd-258/src/network/tc/fq-pie.c:92:9: danger: dereference of NULL ‘<unknown>’
#   90|           }
#   91|   
#   92|->         fq_pie->packet_limit = val;
#   93|           qdisc = NULL;
#   94|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1054]
systemd-258/src/network/tc/fq.c:22:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq.c:15:12: enter_function: entry to ‘fair_queueing_init’
systemd-258/src/network/tc/fq.c:18:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:20:14: call_function: inlined call to ‘FQ’ from ‘fair_queueing_init’
systemd-258/src/network/tc/fq.c:22:9: danger: dereference of NULL ‘<unknown>’
#   20|           fq = FQ(qdisc);
#   21|   
#   22|->         fq->pacing = -1;
#   23|           fq->ce_threshold_usec = USEC_INFINITY;
#   24|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1055]
systemd-258/src/network/tc/fq.c:278:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq.c:252:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:255:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:256:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:257:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:257:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:259:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:260:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:262:12: branch_false: ...to here
systemd-258/src/network/tc/fq.c:262:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:268:14: branch_false: ...to here
systemd-258/src/network/tc/fq.c:271:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:278:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:278:9: danger: dereference of NULL ‘<unknown>’
#  276|           }
#  277|   
#  278|->         fq->pacing = r;
#  279|           TAKE_PTR(qdisc);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1056]
systemd-258/src/network/tc/fq.c:318:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq.c:284:5: enter_function: entry to ‘config_parse_fair_queueing_usec’
systemd-258/src/network/tc/fq.c:298:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:299:16: branch_false: ...to here
systemd-258/src/network/tc/fq.c:302:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:303:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:303:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:304:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:304:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:306:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:307:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:309:12: branch_false: ...to here
systemd-258/src/network/tc/fq.c:309:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:315:14: branch_false: ...to here
systemd-258/src/network/tc/fq.c:317:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fair_queueing_usec’
systemd-258/src/network/tc/fq.c:318:17: branch_true: ...to here
systemd-258/src/network/tc/fq.c:318:17: danger: dereference of NULL ‘<unknown>’
#  316|   
#  317|           if (isempty(rvalue)) {
#  318|->                 fq->ce_threshold_usec = USEC_INFINITY;
#  319|   
#  320|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1057]
systemd-258/src/network/tc/fq.c:338:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq.c:284:5: enter_function: entry to ‘config_parse_fair_queueing_usec’
systemd-258/src/network/tc/fq.c:298:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:299:16: branch_false: ...to here
systemd-258/src/network/tc/fq.c:302:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:303:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:303:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:304:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:304:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:306:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:307:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:309:12: branch_false: ...to here
systemd-258/src/network/tc/fq.c:309:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:315:14: branch_false: ...to here
systemd-258/src/network/tc/fq.c:317:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fair_queueing_usec’
systemd-258/src/network/tc/fq.c:324:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:325:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:331:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:331:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:338:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:338:9: danger: dereference of NULL ‘<unknown>’
#  336|           }
#  337|   
#  338|->         fq->ce_threshold_usec = sec;
#  339|           qdisc = NULL;
#  340|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1058]
systemd-258/src/network/tc/fq.c:378:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq.c:344:5: enter_function: entry to ‘config_parse_fair_queueing_max_rate’
systemd-258/src/network/tc/fq.c:358:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:359:18: branch_false: ...to here
systemd-258/src/network/tc/fq.c:362:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:363:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:363:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:364:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:364:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:366:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:367:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:369:12: branch_false: ...to here
systemd-258/src/network/tc/fq.c:369:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:375:14: branch_false: ...to here
systemd-258/src/network/tc/fq.c:377:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fair_queueing_max_rate’
systemd-258/src/network/tc/fq.c:378:17: branch_true: ...to here
systemd-258/src/network/tc/fq.c:378:17: danger: dereference of NULL ‘<unknown>’
#  376|   
#  377|           if (isempty(rvalue)) {
#  378|->                 fq->max_rate = 0;
#  379|   
#  380|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1059]
systemd-258/src/network/tc/fq.c:398:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/fq.c:344:5: enter_function: entry to ‘config_parse_fair_queueing_max_rate’
systemd-258/src/network/tc/fq.c:358:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:359:18: branch_false: ...to here
systemd-258/src/network/tc/fq.c:362:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:363:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:363:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:364:9: branch_false: ...to here
systemd-258/src/network/tc/fq.c:364:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:366:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:367:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:369:12: branch_false: ...to here
systemd-258/src/network/tc/fq.c:369:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:375:14: branch_false: ...to here
systemd-258/src/network/tc/fq.c:377:13: call_function: inlined call to ‘isempty’ from ‘config_parse_fair_queueing_max_rate’
systemd-258/src/network/tc/fq.c:384:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:385:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:391:13: branch_false: ...to here
systemd-258/src/network/tc/fq.c:391:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/fq.c:398:24: branch_false: ...to here
systemd-258/src/network/tc/fq.c:398:9: danger: dereference of NULL ‘<unknown>’
#  396|           }
#  397|   
#  398|->         fq->max_rate = sz / 8;
#  399|           qdisc = NULL;
#  400|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1060]
systemd-258/src/network/tc/gred.c:20:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/gred.c:13:12: enter_function: entry to ‘generic_random_early_detection_init’
systemd-258/src/network/tc/gred.c:16:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/gred.c:18:16: call_function: inlined call to ‘GRED’ from ‘generic_random_early_detection_init’
systemd-258/src/network/tc/gred.c:20:9: danger: dereference of NULL ‘<unknown>’
#   18|           gred = GRED(qdisc);
#   19|   
#   20|->         gred->grio = -1;
#   21|   
#   22|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1061]
systemd-258/src/network/tc/gred.c:59:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#   57|           GenericRandomEarlyDetection *gred = GRED(qdisc);
#   58|   
#   59|->         if (gred->default_virtual_queue >= gred->virtual_queues)
#   60|                   return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
#   61|                                            "%s: DefaultVirtualQueue= must be less than VirtualQueues=. "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1062]
systemd-258/src/network/tc/hhf.c:73:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/hhf.c:40:5: enter_function: entry to ‘config_parse_heavy_hitter_filter_packet_limit’
systemd-258/src/network/tc/hhf.c:54:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/hhf.c:57:9: branch_false: ...to here
systemd-258/src/network/tc/hhf.c:57:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/hhf.c:58:9: branch_false: ...to here
systemd-258/src/network/tc/hhf.c:58:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/hhf.c:59:9: branch_false: ...to here
systemd-258/src/network/tc/hhf.c:59:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/hhf.c:61:13: branch_false: ...to here
systemd-258/src/network/tc/hhf.c:62:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/hhf.c:64:12: branch_false: ...to here
systemd-258/src/network/tc/hhf.c:64:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/hhf.c:70:15: branch_false: ...to here
systemd-258/src/network/tc/hhf.c:72:13: call_function: inlined call to ‘isempty’ from ‘config_parse_heavy_hitter_filter_packet_limit’
systemd-258/src/network/tc/hhf.c:73:17: branch_true: ...to here
systemd-258/src/network/tc/hhf.c:73:17: danger: dereference of NULL ‘<unknown>’
#   71|   
#   72|           if (isempty(rvalue)) {
#   73|->                 hhf->packet_limit = 0;
#   74|   
#   75|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1063]
systemd-258/src/network/tc/htb.c:81:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:48:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_default_class’
systemd-258/src/network/tc/htb.c:62:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:65:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:66:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:66:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:67:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:67:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:69:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:70:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:72:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:72:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:78:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:80:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_default_class’
systemd-258/src/network/tc/htb.c:81:17: branch_true: ...to here
systemd-258/src/network/tc/htb.c:81:17: danger: dereference of NULL ‘<unknown>’
#   79|   
#   80|           if (isempty(rvalue)) {
#   81|->                 htb->default_class = 0;
#   82|   
#   83|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1064]
systemd-258/src/network/tc/htb.c:133:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:100:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_u32’
systemd-258/src/network/tc/htb.c:114:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:117:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:117:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:118:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:118:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:119:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:119:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:121:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:122:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:124:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:124:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:130:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:132:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_u32’
systemd-258/src/network/tc/htb.c:133:17: branch_true: ...to here
systemd-258/src/network/tc/htb.c:133:17: danger: dereference of NULL ‘<unknown>’
#  131|   
#  132|           if (isempty(rvalue)) {
#  133|->                 htb->rate_to_quantum = HTB_DEFAULT_RATE_TO_QUANTUM;
#  134|   
#  135|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1065]
systemd-258/src/network/tc/htb.c:159:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:152:12: enter_function: entry to ‘hierarchy_token_bucket_init’
systemd-258/src/network/tc/htb.c:155:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:157:15: call_function: inlined call to ‘HTB’ from ‘hierarchy_token_bucket_init’
systemd-258/src/network/tc/htb.c:159:9: danger: dereference of NULL ‘<unknown>’
#  157|           htb = HTB(qdisc);
#  158|   
#  159|->         htb->rate_to_quantum = HTB_DEFAULT_RATE_TO_QUANTUM;
#  160|   
#  161|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1066]
systemd-258/src/network/tc/htb.c:276:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:242:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258/src/network/tc/htb.c:256:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:257:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:261:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:261:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:262:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:264:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:265:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:267:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:267:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:273:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:275:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258/src/network/tc/htb.c:276:17: branch_true: ...to here
systemd-258/src/network/tc/htb.c:276:17: danger: dereference of NULL ‘<unknown>’
#  274|   
#  275|           if (isempty(rvalue)) {
#  276|->                 htb->priority = 0;
#  277|                   tclass = NULL;
#  278|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1067]
systemd-258/src/network/tc/htb.c:289:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:242:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258/src/network/tc/htb.c:256:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:257:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:261:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:261:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:262:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:262:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:264:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:265:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:267:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:267:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:273:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:275:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258/src/network/tc/htb.c:281:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_hierarchy_token_bucket_class_u32’
systemd-258/src/network/tc/htb.c:282:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:289:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:289:9: danger: dereference of NULL ‘<unknown>’
#  287|           }
#  288|   
#  289|->         htb->priority = v;
#  290|           tclass = NULL;
#  291|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1068]
systemd-258/src/network/tc/htb.c:330:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258/src/network/tc/htb.c:329:20: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:330:25: branch_true: ...to here
systemd-258/src/network/tc/htb.c:330:25: danger: dereference of NULL ‘<unknown>’
#  328|           if (isempty(rvalue)) {
#  329|                   if (streq(lvalue, "QuantumBytes"))
#  330|->                         htb->quantum = 0;
#  331|                   else if (streq(lvalue, "MTUBytes"))
#  332|                           htb->mtu = HTB_DEFAULT_MTU;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1069]
systemd-258/src/network/tc/htb.c:332:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258/src/network/tc/htb.c:329:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:331:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:331:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:332:25: branch_true: ...to here
systemd-258/src/network/tc/htb.c:332:25: danger: dereference of NULL ‘<unknown>’
#  330|                           htb->quantum = 0;
#  331|                   else if (streq(lvalue, "MTUBytes"))
#  332|->                         htb->mtu = HTB_DEFAULT_MTU;
#  333|                   else if (streq(lvalue, "OverheadBytes"))
#  334|                           htb->overhead = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1070]
systemd-258/src/network/tc/htb.c:334:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258/src/network/tc/htb.c:329:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:331:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:331:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:333:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:333:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:334:25: branch_true: ...to here
systemd-258/src/network/tc/htb.c:334:25: danger: dereference of NULL ‘<unknown>’
#  332|                           htb->mtu = HTB_DEFAULT_MTU;
#  333|                   else if (streq(lvalue, "OverheadBytes"))
#  334|->                         htb->overhead = 0;
#  335|                   else if (streq(lvalue, "BufferBytes"))
#  336|                           htb->buffer = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1071]
systemd-258/src/network/tc/htb.c:336:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258/src/network/tc/htb.c:329:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:331:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:331:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:333:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:333:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:335:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:335:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:336:25: branch_true: ...to here
systemd-258/src/network/tc/htb.c:336:25: danger: dereference of NULL ‘<unknown>’
#  334|                           htb->overhead = 0;
#  335|                   else if (streq(lvalue, "BufferBytes"))
#  336|->                         htb->buffer = 0;
#  337|                   else if (streq(lvalue, "CeilBufferBytes"))
#  338|                           htb->ceil_buffer = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1072]
systemd-258/src/network/tc/htb.c:338:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:329:21: branch_true: ...to here
systemd-258/src/network/tc/htb.c:329:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:331:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:331:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:333:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:333:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:335:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:335:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:337:26: branch_false: ...to here
systemd-258/src/network/tc/htb.c:337:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:338:25: branch_true: ...to here
systemd-258/src/network/tc/htb.c:338:25: danger: dereference of NULL ‘<unknown>’
#  336|                           htb->buffer = 0;
#  337|                   else if (streq(lvalue, "CeilBufferBytes"))
#  338|->                         htb->ceil_buffer = 0;
#  339|                   else
#  340|                           assert_not_reached();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1073]
systemd-258/src/network/tc/htb.c:361:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:360:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:360:12: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:361:17: branch_true: ...to here
systemd-258/src/network/tc/htb.c:361:17: danger: dereference of NULL ‘<unknown>’
#  359|   
#  360|           if (streq(lvalue, "QuantumBytes"))
#  361|->                 htb->quantum = v;
#  362|           else if (streq(lvalue, "OverheadBytes"))
#  363|                   htb->overhead = v;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1074]
systemd-258/src/network/tc/htb.c:363:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:360:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:362:17: branch_false: ...to here
systemd-258/src/network/tc/htb.c:362:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:363:17: branch_true: ...to here
systemd-258/src/network/tc/htb.c:363:17: danger: dereference of NULL ‘<unknown>’
#  361|                   htb->quantum = v;
#  362|           else if (streq(lvalue, "OverheadBytes"))
#  363|->                 htb->overhead = v;
#  364|           else if (streq(lvalue, "MTUBytes"))
#  365|                   htb->mtu = v;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1075]
systemd-258/src/network/tc/htb.c:365:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:360:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:360:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:362:17: branch_false: ...to here
systemd-258/src/network/tc/htb.c:362:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:364:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:364:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:365:17: branch_true: ...to here
systemd-258/src/network/tc/htb.c:365:17: danger: dereference of NULL ‘<unknown>’
#  363|                   htb->overhead = v;
#  364|           else if (streq(lvalue, "MTUBytes"))
#  365|->                 htb->mtu = v;
#  366|           else if (streq(lvalue, "BufferBytes"))
#  367|                   htb->buffer = v;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1076]
systemd-258/src/network/tc/htb.c:367:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:360:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:360:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:362:17: branch_false: ...to here
systemd-258/src/network/tc/htb.c:362:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:364:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:364:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:366:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:366:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:367:17: branch_true: ...to here
systemd-258/src/network/tc/htb.c:367:17: danger: dereference of NULL ‘<unknown>’
#  365|                   htb->mtu = v;
#  366|           else if (streq(lvalue, "BufferBytes"))
#  367|->                 htb->buffer = v;
#  368|           else if (streq(lvalue, "CeilBufferBytes"))
#  369|                   htb->ceil_buffer = v;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1077]
systemd-258/src/network/tc/htb.c:369:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:295:5: enter_function: entry to ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:309:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:310:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:313:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:314:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:314:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:315:9: branch_false: ...to here
systemd-258/src/network/tc/htb.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:317:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:320:12: branch_false: ...to here
systemd-258/src/network/tc/htb.c:320:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:326:15: branch_false: ...to here
systemd-258/src/network/tc/htb.c:328:13: call_function: inlined call to ‘isempty’ from ‘config_parse_hierarchy_token_bucket_class_size’
systemd-258/src/network/tc/htb.c:346:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:347:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:353:14: branch_false: ...to here
systemd-258/src/network/tc/htb.c:353:13: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:360:13: branch_false: ...to here
systemd-258/src/network/tc/htb.c:360:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:362:17: branch_false: ...to here
systemd-258/src/network/tc/htb.c:362:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:364:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:364:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:366:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:366:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/htb.c:368:18: branch_false: ...to here
systemd-258/src/network/tc/htb.c:368:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/htb.c:369:17: branch_true: ...to here
systemd-258/src/network/tc/htb.c:369:17: danger: dereference of NULL ‘<unknown>’
#  367|                   htb->buffer = v;
#  368|           else if (streq(lvalue, "CeilBufferBytes"))
#  369|->                 htb->ceil_buffer = v;
#  370|           else
#  371|                   assert_not_reached();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1078]
systemd-258/src/network/tc/htb.c:445:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:438:12: enter_function: entry to ‘hierarchy_token_bucket_class_init’
systemd-258/src/network/tc/htb.c:441:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:443:15: call_function: inlined call to ‘TCLASS_TO_HTB’ from ‘hierarchy_token_bucket_class_init’
systemd-258/src/network/tc/htb.c:445:9: danger: dereference of NULL ‘<unknown>’
#  443|           htb = TCLASS_TO_HTB(tclass);
#  444|   
#  445|->         htb->mtu = HTB_DEFAULT_MTU;
#  446|   
#  447|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1079]
systemd-258/src/network/tc/htb.c:459:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/htb.c:450:12: enter_function: entry to ‘hierarchy_token_bucket_class_verify’
systemd-258/src/network/tc/htb.c:455:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/htb.c:457:15: call_function: inlined call to ‘TCLASS_TO_HTB’ from ‘hierarchy_token_bucket_class_verify’
systemd-258/src/network/tc/htb.c:459:13: danger: dereference of NULL ‘<unknown>’
#  457|           htb = TCLASS_TO_HTB(tclass);
#  458|   
#  459|->         if (htb->rate == 0)
#  460|                   return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
#  461|                                            "%s: Rate= is mandatory. "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1080]
systemd-258/src/network/tc/netem.c:86:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:51:5: enter_function: entry to ‘config_parse_network_emulator_delay’
systemd-258/src/network/tc/netem.c:64:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:66:16: branch_false: ...to here
systemd-258/src/network/tc/netem.c:69:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:70:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:70:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:71:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:73:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:74:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:76:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:76:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:82:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:84:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_delay’
systemd-258/src/network/tc/netem.c:85:21: branch_true: ...to here
systemd-258/src/network/tc/netem.c:85:20: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/netem.c:86:25: branch_true: ...to here
systemd-258/src/network/tc/netem.c:86:25: danger: dereference of NULL ‘<unknown>’
#   84|           if (isempty(rvalue)) {
#   85|                   if (STR_IN_SET(lvalue, "DelaySec", "NetworkEmulatorDelaySec"))
#   86|->                         ne->delay = USEC_INFINITY;
#   87|                   else if (STR_IN_SET(lvalue, "DelayJitterSec", "NetworkEmulatorDelayJitterSec"))
#   88|                           ne->jitter = USEC_INFINITY;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1081]
systemd-258/src/network/tc/netem.c:88:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:51:5: enter_function: entry to ‘config_parse_network_emulator_delay’
systemd-258/src/network/tc/netem.c:64:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:66:16: branch_false: ...to here
systemd-258/src/network/tc/netem.c:69:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:70:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:70:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:71:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:73:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:74:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:76:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:76:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:82:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:84:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_delay’
systemd-258/src/network/tc/netem.c:85:21: branch_true: ...to here
systemd-258/src/network/tc/netem.c:85:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:87:26: branch_false: ...to here
systemd-258/src/network/tc/netem.c:87:25: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/netem.c:88:25: branch_true: ...to here
systemd-258/src/network/tc/netem.c:88:25: danger: dereference of NULL ‘<unknown>’
#   86|                           ne->delay = USEC_INFINITY;
#   87|                   else if (STR_IN_SET(lvalue, "DelayJitterSec", "NetworkEmulatorDelayJitterSec"))
#   88|->                         ne->jitter = USEC_INFINITY;
#   89|   
#   90|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1082]
systemd-258/src/network/tc/netem.c:103:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:51:5: enter_function: entry to ‘config_parse_network_emulator_delay’
systemd-258/src/network/tc/netem.c:64:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:66:16: branch_false: ...to here
systemd-258/src/network/tc/netem.c:69:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:70:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:70:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:71:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:73:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:74:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:76:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:76:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:82:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:84:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_delay’
systemd-258/src/network/tc/netem.c:94:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:95:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:102:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:102:12: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/netem.c:103:17: branch_true: ...to here
systemd-258/src/network/tc/netem.c:103:17: danger: dereference of NULL ‘<unknown>’
#  101|   
#  102|           if (STR_IN_SET(lvalue, "DelaySec", "NetworkEmulatorDelaySec"))
#  103|->                 ne->delay = u;
#  104|           else if (STR_IN_SET(lvalue, "DelayJitterSec", "NetworkEmulatorDelayJitterSec"))
#  105|                   ne->jitter = u;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1083]
systemd-258/src/network/tc/netem.c:105:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:51:5: enter_function: entry to ‘config_parse_network_emulator_delay’
systemd-258/src/network/tc/netem.c:64:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:66:16: branch_false: ...to here
systemd-258/src/network/tc/netem.c:69:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:70:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:70:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:71:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:73:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:74:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:76:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:76:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:82:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:84:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_delay’
systemd-258/src/network/tc/netem.c:94:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:95:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:102:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:102:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:104:18: branch_false: ...to here
systemd-258/src/network/tc/netem.c:104:17: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/netem.c:105:17: branch_true: ...to here
systemd-258/src/network/tc/netem.c:105:17: danger: dereference of NULL ‘<unknown>’
#  103|                   ne->delay = u;
#  104|           else if (STR_IN_SET(lvalue, "DelayJitterSec", "NetworkEmulatorDelayJitterSec"))
#  105|->                 ne->jitter = u;
#  106|   
#  107|           TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1084]
systemd-258/src/network/tc/netem.c:147:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:112:5: enter_function: entry to ‘config_parse_network_emulator_rate’
systemd-258/src/network/tc/netem.c:125:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:127:18: branch_false: ...to here
systemd-258/src/network/tc/netem.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:132:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:132:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:134:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:135:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:137:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:137:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:143:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:145:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_rate’
systemd-258/src/network/tc/netem.c:146:21: branch_true: ...to here
systemd-258/src/network/tc/netem.c:146:20: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/netem.c:147:25: branch_true: ...to here
systemd-258/src/network/tc/netem.c:147:25: danger: dereference of NULL ‘<unknown>’
#  145|           if (isempty(rvalue)) {
#  146|                   if (STR_IN_SET(lvalue, "LossRate", "NetworkEmulatorLossRate"))
#  147|->                         ne->loss = 0;
#  148|                   else if (STR_IN_SET(lvalue, "DuplicateRate", "NetworkEmulatorDuplicateRate"))
#  149|                           ne->duplicate = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1085]
systemd-258/src/network/tc/netem.c:149:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:112:5: enter_function: entry to ‘config_parse_network_emulator_rate’
systemd-258/src/network/tc/netem.c:125:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:127:18: branch_false: ...to here
systemd-258/src/network/tc/netem.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:132:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:132:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:134:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:135:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:137:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:137:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:143:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:145:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_rate’
systemd-258/src/network/tc/netem.c:146:21: branch_true: ...to here
systemd-258/src/network/tc/netem.c:146:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:148:26: branch_false: ...to here
systemd-258/src/network/tc/netem.c:148:25: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/netem.c:149:25: branch_true: ...to here
systemd-258/src/network/tc/netem.c:149:25: danger: dereference of NULL ‘<unknown>’
#  147|                           ne->loss = 0;
#  148|                   else if (STR_IN_SET(lvalue, "DuplicateRate", "NetworkEmulatorDuplicateRate"))
#  149|->                         ne->duplicate = 0;
#  150|   
#  151|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1086]
systemd-258/src/network/tc/netem.c:164:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:112:5: enter_function: entry to ‘config_parse_network_emulator_rate’
systemd-258/src/network/tc/netem.c:125:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:127:18: branch_false: ...to here
systemd-258/src/network/tc/netem.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:132:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:132:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:134:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:135:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:137:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:137:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:143:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:145:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_rate’
systemd-258/src/network/tc/netem.c:155:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:156:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:163:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:163:12: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/netem.c:164:17: branch_true: ...to here
systemd-258/src/network/tc/netem.c:164:17: danger: dereference of NULL ‘<unknown>’
#  162|   
#  163|           if (STR_IN_SET(lvalue, "LossRate", "NetworkEmulatorLossRate"))
#  164|->                 ne->loss = rate;
#  165|           else if (STR_IN_SET(lvalue, "DuplicateRate", "NetworkEmulatorDuplicateRate"))
#  166|                   ne->duplicate = rate;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1087]
systemd-258/src/network/tc/netem.c:166:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:112:5: enter_function: entry to ‘config_parse_network_emulator_rate’
systemd-258/src/network/tc/netem.c:125:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:127:18: branch_false: ...to here
systemd-258/src/network/tc/netem.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:132:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:132:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:134:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:135:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:137:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:137:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:143:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:145:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_rate’
systemd-258/src/network/tc/netem.c:155:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:156:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:163:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:163:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:165:18: branch_false: ...to here
systemd-258/src/network/tc/netem.c:165:17: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/netem.c:166:17: branch_true: ...to here
systemd-258/src/network/tc/netem.c:166:17: danger: dereference of NULL ‘<unknown>’
#  164|                   ne->loss = rate;
#  165|           else if (STR_IN_SET(lvalue, "DuplicateRate", "NetworkEmulatorDuplicateRate"))
#  166|->                 ne->duplicate = rate;
#  167|   
#  168|           TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1088]
systemd-258/src/network/tc/netem.c:205:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/netem.c:172:5: enter_function: entry to ‘config_parse_network_emulator_packet_limit’
systemd-258/src/network/tc/netem.c:185:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:189:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:189:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:190:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:190:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:191:9: branch_false: ...to here
systemd-258/src/network/tc/netem.c:191:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:193:13: branch_false: ...to here
systemd-258/src/network/tc/netem.c:194:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:196:12: branch_false: ...to here
systemd-258/src/network/tc/netem.c:196:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/netem.c:202:14: branch_false: ...to here
systemd-258/src/network/tc/netem.c:204:13: call_function: inlined call to ‘isempty’ from ‘config_parse_network_emulator_packet_limit’
systemd-258/src/network/tc/netem.c:205:17: branch_true: ...to here
systemd-258/src/network/tc/netem.c:205:17: danger: dereference of NULL ‘<unknown>’
#  203|   
#  204|           if (isempty(rvalue)) {
#  205|->                 ne->limit = 0;
#  206|   
#  207|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1089]
systemd-258/src/network/tc/pie.c:73:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/pie.c:40:5: enter_function: entry to ‘config_parse_pie_packet_limit’
systemd-258/src/network/tc/pie.c:54:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/pie.c:57:9: branch_false: ...to here
systemd-258/src/network/tc/pie.c:57:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/pie.c:58:9: branch_false: ...to here
systemd-258/src/network/tc/pie.c:58:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/pie.c:59:9: branch_false: ...to here
systemd-258/src/network/tc/pie.c:59:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/pie.c:61:13: branch_false: ...to here
systemd-258/src/network/tc/pie.c:62:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/pie.c:64:12: branch_false: ...to here
systemd-258/src/network/tc/pie.c:64:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/pie.c:70:15: branch_false: ...to here
systemd-258/src/network/tc/pie.c:72:13: call_function: inlined call to ‘isempty’ from ‘config_parse_pie_packet_limit’
systemd-258/src/network/tc/pie.c:73:17: branch_true: ...to here
systemd-258/src/network/tc/pie.c:73:17: danger: dereference of NULL ‘<unknown>’
#   71|   
#   72|           if (isempty(rvalue)) {
#   73|->                 pie->packet_limit = 0;
#   74|   
#   75|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1090]
systemd-258/src/network/tc/qdisc.c:139:29: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, max(*qdisc_vtable[kind_14(D)].object_size, 1))’
systemd-258/src/network/tc/qdisc.c:118:12: branch_false: following ‘false’ branch (when ‘kind != -22’)...
systemd-258/src/network/tc/qdisc.c:129:17: branch_false: ...to here
systemd-258/src/network/tc/qdisc.c:129:17: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qdisc.c:130:25: branch_false: ...to here
systemd-258/src/network/tc/qdisc.c:130:25: acquire_memory: allocated here
systemd-258/src/network/tc/qdisc.c:131:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qdisc.c:134:17: branch_false: ...to here
systemd-258/src/network/tc/qdisc.c:138:20: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/qdisc.c:139:29: branch_true: ...to here
systemd-258/src/network/tc/qdisc.c:139:29: danger: ‘calloc(1, max(*qdisc_vtable[kind_14(D)].object_size, 1))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  137|   
#  138|                   if (QDISC_VTABLE(qdisc)->init) {
#  139|->                         r = QDISC_VTABLE(qdisc)->init(qdisc);
#  140|                           if (r < 0)
#  141|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1091]
systemd-258/src/network/tc/qfq.c:89:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/qfq.c:55:5: enter_function: entry to ‘config_parse_quick_fair_queueing_weight’
systemd-258/src/network/tc/qfq.c:69:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:70:18: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:73:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:74:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:75:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:75:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:77:13: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:78:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:80:12: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:80:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:86:15: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:88:13: call_function: inlined call to ‘isempty’ from ‘config_parse_quick_fair_queueing_weight’
systemd-258/src/network/tc/qfq.c:89:17: branch_true: ...to here
systemd-258/src/network/tc/qfq.c:89:17: danger: dereference of NULL ‘<unknown>’
#   87|   
#   88|           if (isempty(rvalue)) {
#   89|->                 qfq->weight = 0;
#   90|                   TAKE_PTR(tclass);
#   91|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1092]
systemd-258/src/network/tc/qfq.c:109:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/qfq.c:55:5: enter_function: entry to ‘config_parse_quick_fair_queueing_weight’
systemd-258/src/network/tc/qfq.c:69:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:70:18: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:73:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:74:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:75:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:75:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:77:13: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:78:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:80:12: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:80:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:86:15: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:88:13: call_function: inlined call to ‘isempty’ from ‘config_parse_quick_fair_queueing_weight’
systemd-258/src/network/tc/qfq.c:94:13: call_function: inlined call to ‘safe_atou32’ from ‘config_parse_quick_fair_queueing_weight’
systemd-258/src/network/tc/qfq.c:95:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:102:13: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:102:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:109:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:109:9: danger: dereference of NULL ‘<unknown>’
#  107|           }
#  108|   
#  109|->         qfq->weight = v;
#  110|           TAKE_PTR(tclass);
#  111|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1093]
systemd-258/src/network/tc/qfq.c:149:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/qfq.c:115:5: enter_function: entry to ‘config_parse_quick_fair_queueing_max_packet’
systemd-258/src/network/tc/qfq.c:129:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:130:18: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:133:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:134:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:134:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:135:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:135:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:137:13: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:138:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:140:12: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:140:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:146:15: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:148:13: call_function: inlined call to ‘isempty’ from ‘config_parse_quick_fair_queueing_max_packet’
systemd-258/src/network/tc/qfq.c:149:17: branch_true: ...to here
systemd-258/src/network/tc/qfq.c:149:17: danger: dereference of NULL ‘<unknown>’
#  147|   
#  148|           if (isempty(rvalue)) {
#  149|->                 qfq->max_packet = 0;
#  150|                   TAKE_PTR(tclass);
#  151|                   return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1094]
systemd-258/src/network/tc/qfq.c:169:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/qfq.c:115:5: enter_function: entry to ‘config_parse_quick_fair_queueing_max_packet’
systemd-258/src/network/tc/qfq.c:129:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:130:18: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:133:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:134:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:134:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:135:9: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:135:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:137:13: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:138:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:140:12: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:140:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:146:15: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:148:13: call_function: inlined call to ‘isempty’ from ‘config_parse_quick_fair_queueing_max_packet’
systemd-258/src/network/tc/qfq.c:154:13: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:155:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:162:13: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:162:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/qfq.c:169:27: branch_false: ...to here
systemd-258/src/network/tc/qfq.c:169:9: danger: dereference of NULL ‘<unknown>’
#  167|           }
#  168|   
#  169|->         qfq->max_packet = (uint32_t) v;
#  170|           TAKE_PTR(tclass);
#  171|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1095]
systemd-258/src/network/tc/sfb.c:83:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/sfb.c:50:5: enter_function: entry to ‘config_parse_stochastic_fair_blue_u32’
systemd-258/src/network/tc/sfb.c:64:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfb.c:67:9: branch_false: ...to here
systemd-258/src/network/tc/sfb.c:67:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfb.c:68:9: branch_false: ...to here
systemd-258/src/network/tc/sfb.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfb.c:69:9: branch_false: ...to here
systemd-258/src/network/tc/sfb.c:69:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfb.c:71:13: branch_false: ...to here
systemd-258/src/network/tc/sfb.c:72:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfb.c:74:12: branch_false: ...to here
systemd-258/src/network/tc/sfb.c:74:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfb.c:80:15: branch_false: ...to here
systemd-258/src/network/tc/sfb.c:82:13: call_function: inlined call to ‘isempty’ from ‘config_parse_stochastic_fair_blue_u32’
systemd-258/src/network/tc/sfb.c:83:17: branch_true: ...to here
systemd-258/src/network/tc/sfb.c:83:17: danger: dereference of NULL ‘<unknown>’
#   81|   
#   82|           if (isempty(rvalue)) {
#   83|->                 sfb->packet_limit = 0;
#   84|   
#   85|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1096]
systemd-258/src/network/tc/sfq.c:66:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/sfq.c:33:5: enter_function: entry to ‘config_parse_stochastic_fairness_queueing_perturb_period’
systemd-258/src/network/tc/sfq.c:47:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfq.c:50:9: branch_false: ...to here
systemd-258/src/network/tc/sfq.c:50:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfq.c:51:9: branch_false: ...to here
systemd-258/src/network/tc/sfq.c:51:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfq.c:52:9: branch_false: ...to here
systemd-258/src/network/tc/sfq.c:52:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfq.c:54:13: branch_false: ...to here
systemd-258/src/network/tc/sfq.c:55:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfq.c:57:12: branch_false: ...to here
systemd-258/src/network/tc/sfq.c:57:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/sfq.c:63:15: branch_false: ...to here
systemd-258/src/network/tc/sfq.c:65:13: call_function: inlined call to ‘isempty’ from ‘config_parse_stochastic_fairness_queueing_perturb_period’
systemd-258/src/network/tc/sfq.c:66:17: branch_true: ...to here
systemd-258/src/network/tc/sfq.c:66:17: danger: dereference of NULL ‘<unknown>’
#   64|   
#   65|           if (isempty(rvalue)) {
#   66|->                 sfq->perturb_period = 0;
#   67|   
#   68|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1097]
systemd-258/src/network/tc/tbf.c:146:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:145:21: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:145:20: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/tbf.c:146:25: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:146:25: danger: dereference of NULL ‘<unknown>’
#  144|           if (isempty(rvalue)) {
#  145|                   if (STR_IN_SET(lvalue, "BurstBytes", "Burst"))
#  146|->                         tbf->burst = 0;
#  147|                   else if (STR_IN_SET(lvalue, "LimitBytes", "LimitSize"))
#  148|                           tbf->limit = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1098]
systemd-258/src/network/tc/tbf.c:148:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:145:21: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:145:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:147:26: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:147:25: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/tbf.c:148:25: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:148:25: danger: dereference of NULL ‘<unknown>’
#  146|                           tbf->burst = 0;
#  147|                   else if (STR_IN_SET(lvalue, "LimitBytes", "LimitSize"))
#  148|->                         tbf->limit = 0;
#  149|                   else if (streq(lvalue, "MTUBytes"))
#  150|                           tbf->mtu = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1099]
systemd-258/src/network/tc/tbf.c:150:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:145:21: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:145:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:147:26: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:147:25: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:149:26: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:149:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/tbf.c:150:25: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:150:25: danger: dereference of NULL ‘<unknown>’
#  148|                           tbf->limit = 0;
#  149|                   else if (streq(lvalue, "MTUBytes"))
#  150|->                         tbf->mtu = 0;
#  151|                   else if (streq(lvalue, "MPUBytes"))
#  152|                           tbf->mpu = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1100]
systemd-258/src/network/tc/tbf.c:152:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:145:21: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:145:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:147:26: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:147:25: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:149:26: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:149:25: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/tbf.c:151:26: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:151:25: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/tbf.c:152:25: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:152:25: danger: dereference of NULL ‘<unknown>’
#  150|                           tbf->mtu = 0;
#  151|                   else if (streq(lvalue, "MPUBytes"))
#  152|->                         tbf->mpu = 0;
#  153|                   else
#  154|                           assert_not_reached();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1101]
systemd-258/src/network/tc/tbf.c:169:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:160:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:161:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:168:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:168:12: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/tbf.c:169:17: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:169:17: danger: dereference of NULL ‘<unknown>’
#  167|   
#  168|           if (STR_IN_SET(lvalue, "BurstBytes", "Burst"))
#  169|->                 tbf->burst = k;
#  170|           else if (STR_IN_SET(lvalue, "LimitBytes", "LimitSize"))
#  171|                   tbf->limit = k;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1102]
systemd-258/src/network/tc/tbf.c:171:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:160:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:161:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:168:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:168:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:170:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:170:17: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/tbf.c:171:17: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:171:17: danger: dereference of NULL ‘<unknown>’
#  169|                   tbf->burst = k;
#  170|           else if (STR_IN_SET(lvalue, "LimitBytes", "LimitSize"))
#  171|->                 tbf->limit = k;
#  172|           else if (streq(lvalue, "MPUBytes"))
#  173|                   tbf->mpu = k;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1103]
systemd-258/src/network/tc/tbf.c:173:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:160:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:161:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:168:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:168:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:170:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:170:17: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:172:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:172:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/tbf.c:173:17: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:173:17: danger: dereference of NULL ‘<unknown>’
#  171|                   tbf->limit = k;
#  172|           else if (streq(lvalue, "MPUBytes"))
#  173|->                 tbf->mpu = k;
#  174|           else if (streq(lvalue, "MTUBytes"))
#  175|                   tbf->mtu = k;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1104]
systemd-258/src/network/tc/tbf.c:175:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:111:5: enter_function: entry to ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:124:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:126:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:129:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:130:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:131:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:131:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:133:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:134:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:136:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:136:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:142:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:144:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_size’
systemd-258/src/network/tc/tbf.c:160:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:161:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:168:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:168:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:170:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:170:17: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:172:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:172:17: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/network/tc/tbf.c:174:18: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:174:17: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/network/tc/tbf.c:175:17: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:175:17: danger: dereference of NULL ‘<unknown>’
#  173|                   tbf->mpu = k;
#  174|           else if (streq(lvalue, "MTUBytes"))
#  175|->                 tbf->mtu = k;
#  176|           else
#  177|                   assert_not_reached();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1105]
systemd-258/src/network/tc/tbf.c:279:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:245:5: enter_function: entry to ‘config_parse_token_bucket_filter_latency’
systemd-258/src/network/tc/tbf.c:258:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:260:16: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:263:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:264:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:265:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:265:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:267:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:268:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:270:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:270:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:276:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:278:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_latency’
systemd-258/src/network/tc/tbf.c:279:17: branch_true: ...to here
systemd-258/src/network/tc/tbf.c:279:17: danger: dereference of NULL ‘<unknown>’
#  277|   
#  278|           if (isempty(rvalue)) {
#  279|->                 tbf->latency = 0;
#  280|   
#  281|                   qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1106]
systemd-258/src/network/tc/tbf.c:293:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tbf.c:245:5: enter_function: entry to ‘config_parse_token_bucket_filter_latency’
systemd-258/src/network/tc/tbf.c:258:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:260:16: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:263:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:264:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:264:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:265:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:265:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:267:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:268:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:270:12: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:270:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:276:15: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:278:13: call_function: inlined call to ‘isempty’ from ‘config_parse_token_bucket_filter_latency’
systemd-258/src/network/tc/tbf.c:285:13: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:286:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tbf.c:293:9: branch_false: ...to here
systemd-258/src/network/tc/tbf.c:293:9: danger: dereference of NULL ‘<unknown>’
#  291|           }
#  292|   
#  293|->         tbf->latency = u;
#  294|   
#  295|           qdisc = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1107]
systemd-258/src/network/tc/tbf.c:303:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  301|           TokenBucketFilter *tbf = TBF(qdisc);
#  302|   
#  303|->         if (tbf->limit > 0 && tbf->latency > 0)
#  304|                   return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
#  305|                                            "%s: Specifying both LimitBytes= and LatencySec= is not allowed. "

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1108]
systemd-258/src/network/tc/tclass.c:101:29: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, max(*tclass_vtable[kind_14(D)].object_size, 1))’
systemd-258/src/network/tc/tclass.c:80:12: branch_false: following ‘false’ branch (when ‘kind != -22’)...
systemd-258/src/network/tc/tclass.c:91:17: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:91:17: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:92:26: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:92:26: acquire_memory: allocated here
systemd-258/src/network/tc/tclass.c:93:20: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:96:17: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:100:20: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/tclass.c:101:29: branch_true: ...to here
systemd-258/src/network/tc/tclass.c:101:29: danger: ‘calloc(1, max(*tclass_vtable[kind_14(D)].object_size, 1))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   99|   
#  100|                   if (TCLASS_VTABLE(tclass)->init) {
#  101|->                         r = TCLASS_VTABLE(tclass)->init(tclass);
#  102|                           if (r < 0)
#  103|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1109]
systemd-258/src/network/tc/tclass.c:419:59: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tclass.c:401:12: enter_function: entry to ‘tclass_configure’
systemd-258/src/network/tc/tclass.c:405:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:406:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:406:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:407:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:407:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:408:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:408:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:409:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:409:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:410:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:410:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:412:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:412:9: call_function: calling ‘log_tclass_debug’ from ‘tclass_configure’
systemd-258/src/network/tc/tclass.c:412:9: return_function: returning to ‘tclass_configure’ from ‘log_tclass_debug’
systemd-258/src/network/tc/tclass.c:416:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:419:59: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:419:59: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:419:59: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:419:59: danger: dereference of NULL ‘<unknown>’
#  417|                   return r;
#  418|   
#  419|->         r = sd_netlink_message_append_string(m, TCA_KIND, TCLASS_VTABLE(tclass)->tca_kind);
#  420|           if (r < 0)
#  421|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1110]
systemd-258/src/network/tc/tclass.c:423:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tclass.c:401:12: enter_function: entry to ‘tclass_configure’
systemd-258/src/network/tc/tclass.c:405:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:406:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:406:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:407:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:407:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:408:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:408:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:409:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:409:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:410:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:410:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:412:9: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:412:9: call_function: calling ‘log_tclass_debug’ from ‘tclass_configure’
systemd-258/src/network/tc/tclass.c:412:9: return_function: returning to ‘tclass_configure’ from ‘log_tclass_debug’
systemd-258/src/network/tc/tclass.c:416:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:419:59: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:419:59: branch_true: following ‘true’ branch...
systemd-258/src/network/tc/tclass.c:419:59: branch_true: ...to here
systemd-258/src/network/tc/tclass.c:420:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:423:13: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:423:13: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:423:13: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:423:13: danger: dereference of NULL ‘<unknown>’
#  421|                   return r;
#  422|   
#  423|->         if (TCLASS_VTABLE(tclass)->fill_message) {
#  424|                   r = TCLASS_VTABLE(tclass)->fill_message(link, tclass, m);
#  425|                   if (r < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1111]
systemd-258/src/network/tc/tclass.c:634:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/tclass.c:629:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:631:13: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:634:13: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/tclass.c:634:13: branch_false: ...to here
systemd-258/src/network/tc/tclass.c:634:13: danger: dereference of NULL ‘<unknown>’
#  632|                   return -EINVAL;
#  633|   
#  634|->         if (TCLASS_VTABLE(tclass)->verify) {
#  635|                   r = TCLASS_VTABLE(tclass)->verify(tclass);
#  636|                   if (r < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1112]
systemd-258/src/network/tc/teql.c:18:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/teql.c:12:12: enter_function: entry to ‘trivial_link_equalizer_verify’
systemd-258/src/network/tc/teql.c:16:21: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:16:16: call_function: inlined call to ‘TEQL’ from ‘trivial_link_equalizer_verify’
systemd-258/src/network/tc/teql.c:18:13: danger: dereference of NULL ‘<unknown>’
#   16|           teql = TEQL(ASSERT_PTR(qdisc));
#   17|   
#   18|->         if (asprintf(&tca_kind, "teql%u", teql->id) < 0)
#   19|                   return log_oom();
#   20|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1113]
systemd-258/src/network/tc/teql.c:78:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/teql.c:44:5: enter_function: entry to ‘config_parse_trivial_link_equalizer_id’
systemd-258/src/network/tc/teql.c:58:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:59:18: branch_false: ...to here
systemd-258/src/network/tc/teql.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:63:9: branch_false: ...to here
systemd-258/src/network/tc/teql.c:63:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:64:9: branch_false: ...to here
systemd-258/src/network/tc/teql.c:64:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:66:13: branch_false: ...to here
systemd-258/src/network/tc/teql.c:67:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:69:12: branch_false: ...to here
systemd-258/src/network/tc/teql.c:69:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:75:16: branch_false: ...to here
systemd-258/src/network/tc/teql.c:77:13: call_function: inlined call to ‘isempty’ from ‘config_parse_trivial_link_equalizer_id’
systemd-258/src/network/tc/teql.c:78:17: branch_true: ...to here
systemd-258/src/network/tc/teql.c:78:17: danger: dereference of NULL ‘<unknown>’
#   76|   
#   77|           if (isempty(rvalue)) {
#   78|->                 teql->id = 0;
#   79|   
#   80|                   TAKE_PTR(qdisc);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1114]
systemd-258/src/network/tc/teql.c:96:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/network/tc/teql.c:44:5: enter_function: entry to ‘config_parse_trivial_link_equalizer_id’
systemd-258/src/network/tc/teql.c:58:28: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:59:18: branch_false: ...to here
systemd-258/src/network/tc/teql.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:63:9: branch_false: ...to here
systemd-258/src/network/tc/teql.c:63:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:64:9: branch_false: ...to here
systemd-258/src/network/tc/teql.c:64:9: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:66:13: branch_false: ...to here
systemd-258/src/network/tc/teql.c:67:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:69:12: branch_false: ...to here
systemd-258/src/network/tc/teql.c:69:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:75:16: branch_false: ...to here
systemd-258/src/network/tc/teql.c:77:13: call_function: inlined call to ‘isempty’ from ‘config_parse_trivial_link_equalizer_id’
systemd-258/src/network/tc/teql.c:84:13: call_function: inlined call to ‘safe_atou’ from ‘config_parse_trivial_link_equalizer_id’
systemd-258/src/network/tc/teql.c:85:12: branch_false: following ‘false’ branch...
systemd-258/src/network/tc/teql.c:91:13: branch_false: ...to here
systemd-258/src/network/tc/teql.c:96:9: danger: dereference of NULL ‘<unknown>’
#   94|                              lvalue, rvalue);
#   95|   
#   96|->         teql->id = id;
#   97|   
#   98|           TAKE_PTR(qdisc);

Error: CPPCHECK_WARNING (CWE-457): [#def1115]
systemd-258/src/network/wait-online/dns-configuration.c:74: error[uninitvar]: Uninitialized variable: v
#   72|                   _cleanup_(dns_server_freep) DNSServer *s = NULL;
#   73|   
#   74|->                 r = dispatch_dns_server(name, v, flags, &s);
#   75|                   if (r < 0)
#   76|                           return json_log(v, flags, r, "JSON array element is not a valid DNSServer.");

Error: CPPCHECK_WARNING (CWE-457): [#def1116]
systemd-258/src/network/wait-online/dns-configuration.c:138: error[uninitvar]: Uninitialized variable: v
#  136|                   _cleanup_(search_domain_freep) SearchDomain *d = NULL;
#  137|   
#  138|->                 r = dispatch_search_domain(name, v, flags, &d);
#  139|                   if (r < 0)
#  140|                           return json_log(v, flags, r, "JSON array element is not a valid SearchDomain.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1117]
systemd-258/src/network/wait-online/dns-configuration.c:156:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 40)’
systemd-258/src/network/wait-online/dns-configuration.c:172:12: enter_function: entry to ‘dispatch_dns_configuration’
systemd-258/src/network/wait-online/dns-configuration.c:183:34: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/dns-configuration.c:187:13: branch_false: ...to here
systemd-258/src/network/wait-online/dns-configuration.c:187:13: acquire_memory: allocated here
systemd-258/src/network/wait-online/dns-configuration.c:188:12: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/dns-configuration.c:191:13: branch_false: ...to here
systemd-258/src/network/wait-online/dns-configuration.c:184:62: call_function: inlined call to ‘dns_configuration_freep’ from ‘dispatch_dns_configuration’
#  154|                   return NULL;
#  155|   
#  156|->         dns_server_free(c->current_dns_server);
#  157|           set_free(c->dns_servers);
#  158|           set_free(c->search_domains);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1118]
systemd-258/src/network/wait-online/dns-configuration.h:39:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
systemd-258/src/network/wait-online/wait-online-manager.c:344:12: enter_function: entry to ‘on_dns_configuration_event’
systemd-258/src/network/wait-online/wait-online-manager.c:351:22: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-manager.c:355:9: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-manager.c:355:9: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-manager.c:357:12: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-manager.c:357:12: branch_false: following ‘false’ branch (when ‘error_id’ is NULL)...
systemd-258/src/network/wait-online/wait-online-manager.c:368:26: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-manager.c:369:12: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-manager.c:375:9: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-manager.c:377:9: branch_true: following ‘true’ branch...
systemd-258/src/network/wait-online/wait-online-manager.c:378:70: call_function: calling ‘dns_configuration_freep’ from ‘on_dns_configuration_event’
#   37|   
#   38|   DNSConfiguration* dns_configuration_free(DNSConfiguration *c);
#   39|-> DEFINE_TRIVIAL_CLEANUP_FUNC(DNSConfiguration*, dns_configuration_free);
#   40|   
#   41|   int dns_configuration_from_json(sd_json_variant *variant, DNSConfiguration **ret);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1119]
systemd-258/src/network/wait-online/wait-online-link.c:21:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*l.manager’
systemd-258/src/network/wait-online/wait-online-link.c:44:12: enter_function: entry to ‘link_new’
systemd-258/src/network/wait-online/wait-online-link.c:49:9: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:50:9: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-link.c:50:9: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:51:9: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-link.c:51:9: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:53:13: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-link.c:54:12: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:57:13: call_function: inlined call to ‘malloc_multiply’ from ‘link_new’
systemd-258/src/network/wait-online/wait-online-link.c:58:12: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:66:89: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-link.c:66:38: call_function: inlined call to ‘hashmap_remove’ from ‘link_new’
systemd-258/src/network/wait-online/wait-online-link.c:45:37: call_function: inlined call to ‘link_freep’ from ‘link_new’
#   19|                   return NULL;
#   20|   
#   21|->         if (l->manager) {
#   22|                   hashmap_remove(l->manager->links_by_index, INT_TO_PTR(l->ifindex));
#   23|                   hashmap_remove(l->manager->links_by_name, l->ifname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1120]
systemd-258/src/network/wait-online/wait-online-link.c:66:89: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(ifname)’
systemd-258/src/network/wait-online/wait-online-link.c:44:12: enter_function: entry to ‘link_new’
systemd-258/src/network/wait-online/wait-online-link.c:49:9: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:50:9: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-link.c:50:9: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:51:9: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-link.c:51:9: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:53:13: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-link.c:53:13: acquire_memory: allocated here
systemd-258/src/network/wait-online/wait-online-link.c:54:12: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:57:13: call_function: inlined call to ‘malloc_multiply’ from ‘link_new’
systemd-258/src/network/wait-online/wait-online-link.c:58:12: branch_false: following ‘false’ branch...
systemd-258/src/network/wait-online/wait-online-link.c:66:89: branch_false: ...to here
systemd-258/src/network/wait-online/wait-online-link.c:66:38: call_function: inlined call to ‘hashmap_remove’ from ‘link_new’
systemd-258/src/network/wait-online/wait-online-link.c:66:89: danger: ‘strdup(ifname)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#   64|                   .ifindex = ifindex,
#   65|                   .required_operstate = LINK_OPERSTATE_RANGE_DEFAULT,
#   66|->                 .dns_configuration = hashmap_remove(m->dns_configuration_by_link_index, INT_TO_PTR(ifindex)),
#   67|           };
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1121]
systemd-258/src/nspawn/nspawn-expose-ports.c:76:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘p’
systemd-258/src/nspawn/nspawn-expose-ports.c:76:9: branch_true: following ‘true’ branch...
systemd-258/src/nspawn/nspawn-expose-ports.c:76:9: release_memory: freed here
systemd-258/src/nspawn/nspawn-expose-ports.c:76:9: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
systemd-258/src/nspawn/nspawn-expose-ports.c:76:9: branch_true: ...to here
systemd-258/src/nspawn/nspawn-expose-ports.c:76:9: danger: use after ‘free’ of ‘p’; freed at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   74|   
#   75|   void expose_port_free_all(ExposePort *p) {
#   76|->         LIST_CLEAR(ports, p, free);
#   77|   }
#   78|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1122]
systemd-258/src/nspawn/nspawn-mount.c:274:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258/src/nspawn/nspawn-mount.c:233:5: enter_function: entry to ‘bind_mount_parse’
systemd-258/src/nspawn/nspawn-mount.c:238:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-mount.c:239:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-mount.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-mount.c:241:13: branch_false: ...to here
systemd-258/src/nspawn/nspawn-mount.c:242:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-mount.c:244:12: branch_false: ...to here
systemd-258/src/nspawn/nspawn-mount.c:244:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-mount.c:246:12: branch_false: ...to here
systemd-258/src/nspawn/nspawn-mount.c:246:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-mount.c:251:12: branch_false: ...to here
systemd-258/src/nspawn/nspawn-mount.c:257:13: call_function: calling ‘source_path_parse_nullable’ from ‘bind_mount_parse’
systemd-258/src/nspawn/nspawn-mount.c:257:13: return_function: returning to ‘bind_mount_parse’ from ‘source_path_parse_nullable’
systemd-258/src/nspawn/nspawn-mount.c:258:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-mount.c:261:14: branch_false: ...to here
systemd-258/src/nspawn/nspawn-mount.c:274:1: danger: ‘p’ leaks here; was allocated at [(35)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/34)
#  272|   
#  273|           return 0;
#  274|-> }
#  275|   
#  276|   int tmpfs_mount_parse(CustomMount **l, size_t *n, const char *s) {

Error: CPPCHECK_WARNING (CWE-457): [#def1123]
systemd-258/src/nspawn/nspawn-oci.c:150: error[uninitvar]: Uninitialized variable: e
#  148|                   const char *n;
#  149|   
#  150|->                 if (!sd_json_variant_is_string(e))
#  151|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL),
#  152|                                           "Environment array contains non-string.");

Error: CPPCHECK_WARNING (CWE-457): [#def1124]
systemd-258/src/nspawn/nspawn-oci.c:254: error[uninitvar]: Uninitialized variable: e
#  252|                   };
#  253|   
#  254|->                 r = oci_dispatch(e, table, flags, &data);
#  255|                   if (r < 0)
#  256|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1125]
systemd-258/src/nspawn/nspawn-oci.c:287: error[uninitvar]: Uninitialized variable: e
#  285|                   int cap;
#  286|   
#  287|->                 if (!sd_json_variant_is_string(e))
#  288|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
#  289|                                           "Entry in capabilities array is not a string.");

Error: CPPCHECK_WARNING (CWE-457): [#def1126]
systemd-258/src/nspawn/nspawn-oci.c:358: error[uninitvar]: Uninitialized variable: e
#  356|                   gid_t gid;
#  357|   
#  358|->                 if (!sd_json_variant_is_unsigned(e))
#  359|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
#  360|                                           "Supplementary GID entry is not a UID.");

Error: CPPCHECK_WARNING (CWE-457): [#def1127]
systemd-258/src/nspawn/nspawn-oci.c:520: error[uninitvar]: Uninitialized variable: e
#  518|                   CustomMount *m;
#  519|   
#  520|->                 r = oci_dispatch(e, table, flags, &data);
#  521|                   if (r < 0)
#  522|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1128]
systemd-258/src/nspawn/nspawn-oci.c:620: error[uninitvar]: Uninitialized variable: e
#  618|                   };
#  619|   
#  620|->                 r = oci_dispatch(e, table, flags, &data);
#  621|                   if (r < 0)
#  622|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1129]
systemd-258/src/nspawn/nspawn-oci.c:832: error[uninitvar]: Uninitialized variable: e
#  830|                   };
#  831|   
#  832|->                 r = oci_dispatch(e, table, flags, node);
#  833|                   if (r < 0)
#  834|                           goto fail_element;

Error: CPPCHECK_WARNING (CWE-457): [#def1130]
systemd-258/src/nspawn/nspawn-oci.c:977: error[uninitvar]: Uninitialized variable: e
#  975|                   };
#  976|   
#  977|->                 r = oci_dispatch(e, table, flags, &data);
#  978|                   if (r < 0)
#  979|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1131]
systemd-258/src/nspawn/nspawn-oci.c:1360: error[uninitvar]: Uninitialized variable: e
# 1358|                   _cleanup_free_ char *path = NULL;
# 1359|   
# 1360|->                 r = oci_dispatch(e, table, flags, &data);
# 1361|                   if (r < 0)
# 1362|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1132]
systemd-258/src/nspawn/nspawn-oci.c:1418: error[uninitvar]: Uninitialized variable: e
# 1416|                   _cleanup_free_ char *path = NULL;
# 1417|   
# 1418|->                 r = oci_dispatch(e, table, flags, &data);
# 1419|                   if (r < 0)
# 1420|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1133]
systemd-258/src/nspawn/nspawn-oci.c:1556: error[uninitvar]: Uninitialized variable: w
# 1554|                   const char *m;
# 1555|   
# 1556|->                 if (!sd_json_variant_is_string(w))
# 1557|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 1558|                                           "sysctl parameter is not a string, refusing.");

Error: CPPCHECK_WARNING (CWE-457): [#def1134]
systemd-258/src/nspawn/nspawn-oci.c:1562: error[uninitvar]: Uninitialized variable: k
# 1560|                   assert_se(m = sd_json_variant_string(w));
# 1561|   
# 1562|->                 if (!sysctl_key_valid(k))
# 1563|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 1564|                                           "sysctl key invalid, refusing: %s", k);

Error: CPPCHECK_WARNING (CWE-457): [#def1135]
systemd-258/src/nspawn/nspawn-oci.c:1686: error[uninitvar]: Uninitialized variable: e
# 1684|                   uint32_t a;
# 1685|   
# 1686|->                 if (!sd_json_variant_is_string(e))
# 1687|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL),
# 1688|                                           "Architecture entry is not a string.");

Error: CPPCHECK_WARNING (CWE-457): [#def1136]
systemd-258/src/nspawn/nspawn-oci.c:1769: error[uninitvar]: Uninitialized variable: e
# 1767|                   };
# 1768|   
# 1769|->                 r = oci_dispatch(e, table, flags, p);
# 1770|                   if (r < 0)
# 1771|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1137]
systemd-258/src/nspawn/nspawn-oci.c:1803: error[uninitvar]: Uninitialized variable: e
# 1801|                   };
# 1802|   
# 1803|->                 r = oci_dispatch(e, table, flags, &rule);
# 1804|                   if (r < 0)
# 1805|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1138]
systemd-258/src/nspawn/nspawn-oci.c:1893: error[uninitvar]: Uninitialized variable: e
# 1891|                   const char *p;
# 1892|   
# 1893|->                 if (!sd_json_variant_is_string(e))
# 1894|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 1895|                                           "Path is not a string, refusing.");

Error: CPPCHECK_WARNING (CWE-457): [#def1139]
systemd-258/src/nspawn/nspawn-oci.c:1933: error[uninitvar]: Uninitialized variable: e
# 1931|                   const char *p;
# 1932|   
# 1933|->                 if (!sd_json_variant_is_string(e))
# 1934|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 1935|                                           "Path is not a string, refusing.");

Error: CPPCHECK_WARNING (CWE-457): [#def1140]
systemd-258/src/nspawn/nspawn-oci.c:2040: error[uninitvar]: Uninitialized variable: e
# 2038|                   };
# 2039|   
# 2040|->                 r = oci_dispatch(e, table, flags, new_item);
# 2041|                   if (r < 0) {
# 2042|                           free(new_item->path);

Error: CPPCHECK_WARNING (CWE-457): [#def1141]
systemd-258/src/nspawn/nspawn-oci.c:2072: error[uninitvar]: Uninitialized variable: k
# 2070|           JSON_VARIANT_OBJECT_FOREACH(k, w, v) {
# 2071|   
# 2072|->                 if (isempty(k))
# 2073|                           return json_log(v, flags, SYNTHETIC_ERRNO(EINVAL),
# 2074|                                           "Annotation with empty key, refusing.");

Error: CPPCHECK_WARNING (CWE-457): [#def1142]
systemd-258/src/nspawn/nspawn-oci.c:2076: error[uninitvar]: Uninitialized variable: w
# 2074|                                           "Annotation with empty key, refusing.");
# 2075|   
# 2076|->                 if (!sd_json_variant_is_string(w))
# 2077|                           return json_log(w, flags, SYNTHETIC_ERRNO(EINVAL),
# 2078|                                           "Annotation has non-string value, refusing.");

Error: CPPCHECK_WARNING (CWE-457): [#def1143]
systemd-258/src/nspawn/nspawn-seccomp.c:183: warning[uninitvar]: Uninitialized variable: arch
#  181|           }
#  182|   
#  183|->         SECCOMP_FOREACH_LOCAL_ARCH(arch) {
#  184|                   _cleanup_(seccomp_releasep) scmp_filter_ctx seccomp = NULL;
#  185|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1144]
systemd-258/src/nspawn/nspawn-setuid.c:30:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘<U3a18>[1]’
systemd-258/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:30:13: danger: ‘<U3a18>[1]’ leaks here
#   28|                   return log_error_errno(errno, "Failed to allocate pipe: %m");
#   29|   
#   30|->         r = safe_fork_full("(getent)",
#   31|                              (int[]) { -EBADF, pipe_fds[1], -EBADF }, NULL, 0,
#   32|                              FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REARRANGE_STDIO|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1145]
systemd-258/src/nspawn/nspawn-setuid.c:30:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
systemd-258/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:30:13: danger: ‘pipe_fds[0]’ leaks here
#   28|                   return log_error_errno(errno, "Failed to allocate pipe: %m");
#   29|   
#   30|->         r = safe_fork_full("(getent)",
#   31|                              (int[]) { -EBADF, pipe_fds[1], -EBADF }, NULL, 0,
#   32|                              FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REARRANGE_STDIO|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1146]
systemd-258/src/nspawn/nspawn-setuid.c:30:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[1]’
systemd-258/src/nspawn/nspawn-setuid.c:78:5: enter_function: entry to ‘change_uid_gid’
systemd-258/src/nspawn/nspawn-setuid.c:90:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:92:12: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:92:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:104:14: call_function: calling ‘spawn_getent’ from ‘change_uid_gid’
#   28|                   return log_error_errno(errno, "Failed to allocate pipe: %m");
#   29|   
#   30|->         r = safe_fork_full("(getent)",
#   31|                              (int[]) { -EBADF, pipe_fds[1], -EBADF }, NULL, 0,
#   32|                              FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_DEATHSIG_SIGTERM|FORK_REARRANGE_STDIO|FORK_LOG|FORK_RLIMIT_NOFILE_SAFE,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1147]
systemd-258/src/nspawn/nspawn-setuid.c:35:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
systemd-258/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:34:12: branch_true: following ‘true’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:35:17: branch_true: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:35:17: danger: ‘pipe_fds[0]’ leaks here
#   33|                              &pid);
#   34|           if (r < 0) {
#   35|->                 safe_close_pair(pipe_fds);
#   36|                   return r;
#   37|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1148]
systemd-258/src/nspawn/nspawn-setuid.c:44:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pipe_fds[0]’
systemd-258/src/nspawn/nspawn-setuid.c:23:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:24:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:27:13: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:27:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:31:36: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:34:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:38:12: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:38:12: branch_false: following ‘false’ branch...
systemd-258/src/nspawn/nspawn-setuid.c:44:23: branch_false: ...to here
systemd-258/src/nspawn/nspawn-setuid.c:44:23: danger: ‘pipe_fds[0]’ leaks here
#   42|           }
#   43|   
#   44|->         pipe_fds[1] = safe_close(pipe_fds[1]);
#   45|   
#   46|           *rpid = pid;

Error: COMPILER_WARNING: [#def1149] [important]
systemd-258/src/nspawn/nspawn.c:9:10: error[fatal error]: sys/keyctl.h: No such file or directory
#    7|   #include <sys/file.h>
#    8|   #include <sys/ioctl.h>
#    9|-> #include <sys/keyctl.h>
#   10|   #include <sys/mount.h>
#   11|   #include <sys/personality.h>

Error: COMPILER_WARNING: [#def1150] [important]
systemd-258/src/nsresourced/bpf/userns-restrict/userns-restrict.bpf.c:80:44: error[-Wimplicit-function-declaration]: implicit declaration of function ‘__builtin_btf_type_id’
#   78|   
#   79|           /* Get user namespace from vfsmount */
#   80|->         m = bpf_rdonly_cast(real_mount(v), bpf_core_type_id_kernel(struct mount));
#   81|           mount_userns = m->mnt_ns->user_ns;
#   82|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1151]
systemd-258/src/nsresourced/nsresourced-manager.c:190:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*m.listen_fd, 3)’
systemd-258/src/nsresourced/nsresourced-manager.c:167:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:169:26: branch_false: ...to here
systemd-258/src/nsresourced/nsresourced-manager.c:177:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:179:12: branch_false: ...to here
systemd-258/src/nsresourced/nsresourced-manager.c:179:12: branch_true: following ‘true’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:180:22: branch_true: ...to here
systemd-258/src/nsresourced/nsresourced-manager.c:183:20: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:190:29: branch_false: ...to here
systemd-258/src/nsresourced/nsresourced-manager.c:190:29: acquire_resource: opened here
systemd-258/src/nsresourced/nsresourced-manager.c:190:28: danger: ‘dup2(*m.listen_fd, 3)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  188|                           }
#  189|                   } else {
#  190|->                         if (dup2(m->listen_fd, 3) < 0) { /* dup2() creates with O_CLOEXEC off */
#  191|                                   log_error_errno(errno, "Failed to move listen fd to 3: %m");
#  192|                                   _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1152]
systemd-258/src/nsresourced/nsresourced-manager.c:461:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*m.listen_fd’
systemd-258/src/nsresourced/nsresourced-manager.c:431:12: enter_function: entry to ‘manager_make_listen_socket’
systemd-258/src/nsresourced/nsresourced-manager.c:438:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:440:13: branch_false: ...to here
systemd-258/src/nsresourced/nsresourced-manager.c:440:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:443:24: branch_false: ...to here
systemd-258/src/nsresourced/nsresourced-manager.c:444:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:447:16: branch_false: ...to here
systemd-258/src/nsresourced/nsresourced-manager.c:454:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:457:13: call_function: inlined call to ‘symlink_idempotent’ from ‘manager_make_listen_socket’
systemd-258/src/nsresourced/nsresourced-manager.c:458:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/nsresourced-manager.c:461:13: branch_false: ...to here
systemd-258/src/nsresourced/nsresourced-manager.c:461:12: danger: ‘*m.listen_fd’ leaks here
#  459|                   return log_error_errno(r, "Failed to symlink userdb socket: %m");
#  460|   
#  461|->         if (listen(m->listen_fd, SOMAXCONN) < 0)
#  462|                   return log_error_errno(errno, "Failed to listen on socket: %m");
#  463|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1153]
systemd-258/src/nsresourced/nsresourcework.c:676:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
systemd-258/src/nsresourced/nsresourcework.c:671:19: acquire_memory: allocated here
systemd-258/src/nsresourced/nsresourcework.c:672:12: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
systemd-258/src/nsresourced/nsresourcework.c:676:9: branch_false: ...to here
systemd-258/src/nsresourced/nsresourcework.c:676:9: danger: ‘n’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  674|   
#  675|           /* make sure the truncated name fits into utmpx even if prefixed with "ns-" and suffixed by "-65535" */
#  676|->         strshorten(n, sizeof_field(struct utmpx, ut_user) - STRLEN("ns-") - STRLEN("-65536") - 1);
#  677|   
#  678|           return n;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1154]
systemd-258/src/nsresourced/userns-registry.c:82:9: warning[-Wanalyzer-malloc-leak]: leak of ‘userns_info’
systemd-258/src/nsresourced/userns-registry.c:131:12: enter_function: entry to ‘userns_registry_load’
systemd-258/src/nsresourced/userns-registry.c:161:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-registry.c:164:23: branch_false: ...to here
systemd-258/src/nsresourced/userns-registry.c:164:23: call_function: calling ‘userns_info_new’ from ‘userns_registry_load’
systemd-258/src/nsresourced/userns-registry.c:164:23: return_function: returning to ‘userns_registry_load’ from ‘userns_info_new’
systemd-258/src/nsresourced/userns-registry.c:165:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-registry.c:168:13: branch_false: ...to here
systemd-258/src/nsresourced/userns-registry.c:149:29: call_function: inlined call to ‘closep’ from ‘userns_registry_load’
systemd-258/src/nsresourced/userns-registry.c:148:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘userns_registry_load’
systemd-258/src/nsresourced/userns-registry.c:147:57: call_function: inlined call to ‘userns_info_freep’ from ‘userns_registry_load’
 branch_true: ...to here
systemd-258/src/nsresourced/userns-registry.c:147:57: call_function: inlined call to ‘userns_info_freep’ from ‘userns_registry_load’
#   80|           free(userns->name);
#   81|   
#   82|->         strv_free(userns->netifs);
#   83|   
#   84|           return mfree(userns);

Error: CPPCHECK_WARNING (CWE-457): [#def1155]
systemd-258/src/nsresourced/userns-registry.c:109: error[uninitvar]: Uninitialized variable: e
#  107|                   bool found = false;
#  108|   
#  109|->                 if (!sd_json_variant_is_unsigned(e))
#  110|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not a number.");
#  111|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1156]
systemd-258/src/nsresourced/userns-registry.c:113:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*cg’
systemd-258/src/nsresourced/userns-registry.c:87:12: enter_function: entry to ‘dispatch_cgroups_array’
systemd-258/src/nsresourced/userns-registry.c:88:35: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-registry.c:92:13: branch_false: ...to here
systemd-258/src/nsresourced/userns-registry.c:92:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-registry.c:98:14: branch_false: ...to here
systemd-258/src/nsresourced/userns-registry.c:98:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-registry.c:101:19: branch_false: ...to here
systemd-258/src/nsresourced/userns-registry.c:101:19: call_function: calling ‘malloc_multiply’ from ‘dispatch_cgroups_array’
systemd-258/src/nsresourced/userns-registry.c:101:19: return_function: returning to ‘dispatch_cgroups_array’ from ‘malloc_multiply’
systemd-258/src/nsresourced/userns-registry.c:102:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-registry.c:106:9: branch_true: following ‘true’ branch...
systemd-258/src/nsresourced/userns-registry.c:109:20: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-registry.c:112:17: branch_false: ...to here
systemd-258/src/nsresourced/userns-registry.c:112:17: branch_false: following ‘false’ branch (when ‘n_cgroups == 0’)...
systemd-258/src/nsresourced/userns-registry.c:112:17: branch_false: ...to here
systemd-258/src/nsresourced/userns-registry.c:112:17: branch_true: following ‘true’ branch...
systemd-258/src/nsresourced/userns-registry.c:113:29: branch_true: ...to here
systemd-258/src/nsresourced/userns-registry.c:113:29: danger: use of uninitialized value ‘*cg’ here
#  111|   
#  112|                   FOREACH_ARRAY(cg, cgroups, n_cgroups)
#  113|->                         if (*cg == sd_json_variant_unsigned(e)) {
#  114|                                   found = true;
#  115|                                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1157]
systemd-258/src/nsresourced/userns-restrict.c:218:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:218:24: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
#  216|           }
#  217|   
#  218|->         outer_map_fd = sym_bpf_map__fd(obj->maps.userns_mnt_id_hash);
#  219|           if (outer_map_fd < 0)
#  220|                   return log_debug_errno(outer_map_fd, "Failed to get outer BPF map fd: %m");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1158]
systemd-258/src/nsresourced/userns-restrict.c:228:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_true: following ‘true’ branch (when ‘replace != 0’)...
systemd-258/src/nsresourced/userns-restrict.c:224:32: branch_true: ...to here
systemd-258/src/nsresourced/userns-restrict.c:225:20: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:228:21: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:228:21: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/11)
#  226|                           return inner_map_fd;
#  227|   
#  228|->                 r = sym_bpf_map_update_elem(outer_map_fd, &ino, &inner_map_fd, BPF_ANY);
#  229|                   if (r < 0)
#  230|                           return log_debug_errno(r, "Failed to replace map in inode hash: %m");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1159]
systemd-258/src/nsresourced/userns-restrict.c:241:29: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_false: following ‘false’ branch (when ‘replace == 0’)...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:237:28: branch_false: following ‘false’ branch (when ‘n_try != 0’)...
systemd-258/src/nsresourced/userns-restrict.c:241:29: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:241:29: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/11)
#  239|                                                          "Stillcan't create inode entry in BPF map after 10 tries.");
#  240|   
#  241|->                         r = sym_bpf_map_lookup_elem(outer_map_fd, &ino, &innermap_id);
#  242|                           if (r >= 0) {
#  243|                                   inner_map_fd = sym_bpf_map_get_fd_by_id(innermap_id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1160]
systemd-258/src/nsresourced/userns-restrict.c:243:48: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_false: following ‘false’ branch (when ‘replace == 0’)...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:237:28: branch_false: following ‘false’ branch (when ‘n_try != 0’)...
systemd-258/src/nsresourced/userns-restrict.c:241:29: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:242:28: branch_true: following ‘true’ branch...
systemd-258/src/nsresourced/userns-restrict.c:243:48: branch_true: ...to here
systemd-258/src/nsresourced/userns-restrict.c:243:48: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/11)
#  241|                           r = sym_bpf_map_lookup_elem(outer_map_fd, &ino, &innermap_id);
#  242|                           if (r >= 0) {
#  243|->                                 inner_map_fd = sym_bpf_map_get_fd_by_id(innermap_id);
#  244|                                   if (inner_map_fd < 0)
#  245|                                           return log_debug_errno(inner_map_fd, "Failed to get file descriptor for inner map: %m");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1161]
systemd-258/src/nsresourced/userns-restrict.c:257:29: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_mount_fds, 4)’
systemd-258/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_false: following ‘false’ branch (when ‘replace == 0’)...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:237:28: branch_false: following ‘false’ branch (when ‘n_try != 0’)...
systemd-258/src/nsresourced/userns-restrict.c:241:29: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:242:28: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:249:29: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:249:28: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:253:40: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:254:28: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:257:29: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:257:29: danger: ‘malloc_multiply(n_mount_fds, 4)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/11)
#  255|                                   return inner_map_fd;
#  256|   
#  257|->                         r = sym_bpf_map_update_elem(outer_map_fd, &ino, &inner_map_fd, BPF_NOEXIST);
#  258|                           if (r >= 0)
#  259|                                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1162]
systemd-258/src/nsresourced/userns-restrict.c:268:21: warning[-Wanalyzer-malloc-leak]: leak of ‘mntid’
systemd-258/src/nsresourced/userns-restrict.c:185:5: enter_function: entry to ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:198:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:199:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:200:9: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:205:12: branch_false: following ‘false’ branch (when ‘userns_inode <= 4294967295’)...
systemd-258/src/nsresourced/userns-restrict.c:208:19: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:208:19: call_function: calling ‘malloc_multiply’ from ‘userns_restrict_put_by_inode’
systemd-258/src/nsresourced/userns-restrict.c:208:19: return_function: returning to ‘userns_restrict_put_by_inode’ from ‘malloc_multiply’
systemd-258/src/nsresourced/userns-restrict.c:209:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:212:28: branch_false: following ‘false’ branch (when ‘i >= n_mount_fds’)...
systemd-258/src/nsresourced/userns-restrict.c:218:24: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:219:12: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:222:12: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:237:28: branch_false: following ‘false’ branch (when ‘n_try != 0’)...
systemd-258/src/nsresourced/userns-restrict.c:241:29: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:244:36: branch_false: following ‘false’ branch...
systemd-258/src/nsresourced/userns-restrict.c:247:33: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:265:9: branch_false: following ‘false’ branch (when ‘n_mount_fds == 0’)...
systemd-258/src/nsresourced/userns-restrict.c:265:9: branch_false: ...to here
systemd-258/src/nsresourced/userns-restrict.c:265:9: branch_true: following ‘true’ branch...
systemd-258/src/nsresourced/userns-restrict.c:266:26: branch_true: ...to here
systemd-258/src/nsresourced/userns-restrict.c:268:21: danger: ‘mntid’ leaks here; was allocated at [(12)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/11)
#  266|                   uint32_t dummy_value = 1;
#  267|   
#  268|->                 r = sym_bpf_map_update_elem(inner_map_fd, mntid, &dummy_value, BPF_ANY);
#  269|                   if (r < 0)
#  270|                           return log_debug_errno(r, "Failed to add mount ID to map: %m");

Error: CPPCHECK_WARNING (CWE-457): [#def1163]
systemd-258/src/nss-resolve/nss-resolve.c:140: error[uninitvar]: Uninitialized variable: i
#  138|                   int64_t b;
#  139|   
#  140|->                 if (!sd_json_variant_is_integer(i))
#  141|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is not an integer.", k, strna(name));
#  142|   

Error: CPPCHECK_WARNING (CWE-457): [#def1164]
systemd-258/src/oom/oomd-manager.c:78: error[uninitvar]: Uninitialized variable: c
#   76|                   usec_t duration;
#   77|   
#   78|->                 if (!sd_json_variant_is_object(c))
#   79|                           continue;
#   80|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1165]
systemd-258/src/oom/oomd-util.c:528:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mem_available’
systemd-258/src/oom/oomd-util.c:471:5: enter_function: entry to ‘oomd_system_context_acquire’
systemd-258/src/oom/oomd-util.c:486:9: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:487:9: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:487:9: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:489:13: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:490:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/oom/oomd-util.c:498:20: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:500:20: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:500:20: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:503:29: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:518:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/oom/oomd-util.c:521:20: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:521:20: branch_false: following ‘false’ branch (when ‘field_filled != 15’)...
systemd-258/src/oom/oomd-util.c:494:38: call_function: inlined call to ‘freep’ from ‘oomd_system_context_acquire’
systemd-258/src/oom/oomd-util.c:498:20: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:500:20: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:500:20: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:503:29: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:518:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/oom/oomd-util.c:521:20: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:528:13: danger: use of uninitialized value ‘mem_available’ here
#  526|                   return log_debug_errno(SYNTHETIC_ERRNO(EINVAL), "%s is missing expected fields", proc_meminfo_path);
#  527|   
#  528|->         if (mem_available > ctx.mem_total)
#  529|                   return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
#  530|                                          "MemAvailable (%" PRIu64 ") cannot be greater than MemTotal (%" PRIu64 ")",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1166]
systemd-258/src/oom/oomd-util.c:534:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘swap_free’
systemd-258/src/oom/oomd-util.c:471:5: enter_function: entry to ‘oomd_system_context_acquire’
systemd-258/src/oom/oomd-util.c:486:9: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:487:9: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:487:9: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:489:13: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:490:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/oom/oomd-util.c:498:20: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:500:20: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:500:20: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:503:29: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:518:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/oom/oomd-util.c:521:20: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:521:20: branch_false: following ‘false’ branch (when ‘field_filled != 15’)...
systemd-258/src/oom/oomd-util.c:494:38: call_function: inlined call to ‘freep’ from ‘oomd_system_context_acquire’
systemd-258/src/oom/oomd-util.c:498:20: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:500:20: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:500:20: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:503:29: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:506:27: branch_true: following ‘true’ branch...
systemd-258/src/oom/oomd-util.c:507:25: branch_true: ...to here
systemd-258/src/oom/oomd-util.c:518:20: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/oom/oomd-util.c:521:20: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:528:12: branch_false: following ‘false’ branch...
systemd-258/src/oom/oomd-util.c:534:25: branch_false: ...to here
systemd-258/src/oom/oomd-util.c:534:13: danger: use of uninitialized value ‘swap_free’ here
#  532|                                          ctx.mem_total);
#  533|   
#  534|->         if (swap_free > ctx.swap_total)
#  535|                   return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
#  536|                                          "SwapFree (%" PRIu64 ") cannot be greater than SwapTotal (%" PRIu64 ")",

Error: CPPCHECK_WARNING (CWE-416): [#def1167]
systemd-258/src/portable/portable.c:107: error[deallocuse]: Dereferencing 'm' after it is deallocated / released
#  105|           if (!isempty(selinux_label)) {
#  106|                   m->selinux_label = strdup(selinux_label);
#  107|->                 if (!m->selinux_label) {
#  108|                           free(m->image_path);
#  109|                           return mfree(m);

Error: CPPCHECK_WARNING (CWE-672): [#def1168]
systemd-258/src/portable/portable.c:109: error[deallocret]: Returning/dereferencing 'm' after it is deallocated / released
#  107|                   if (!m->selinux_label) {
#  108|                           free(m->image_path);
#  109|->                         return mfree(m);
#  110|                   }
#  111|           }

Error: CPPCHECK_WARNING (CWE-672): [#def1169]
systemd-258/src/portable/portable.c:116: error[deallocret]: Returning/dereferencing 'm' after it is deallocated / released
#  114|           m->fd = fd;
#  115|   
#  116|->         return TAKE_PTR(m);
#  117|   }
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1170]
systemd-258/src/portable/portablectl.c:217:1: warning[-Wanalyzer-malloc-leak]: leak of ‘prefix’
systemd-258/src/portable/portablectl.c:167:12: enter_function: entry to ‘determine_matches’
systemd-258/src/portable/portablectl.c:178:21: call_function: calling ‘extract_prefix’ from ‘determine_matches’
systemd-258/src/portable/portablectl.c:178:21: return_function: returning to ‘determine_matches’ from ‘extract_prefix’
systemd-258/src/portable/portablectl.c:179:20: branch_false: following ‘false’ branch...
systemd-258/src/portable/portablectl.c:182:21: branch_false: ...to here
systemd-258/src/portable/portablectl.c:185:21: call_function: inlined call to ‘strv_consume’ from ‘determine_matches’
systemd-258/src/portable/portablectl.c:217:1: danger: ‘prefix’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  215|   
#  216|           return 0;
#  217|-> }
#  218|   
#  219|   static int acquire_bus(sd_bus **bus) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1171]
systemd-258/src/portable/portabled-operation.c:92:13: warning[-Wanalyzer-malloc-leak]: leak of ‘o’
systemd-258/src/portable/portabled-operation.c:81:9: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-operation.c:82:9: branch_false: ...to here
systemd-258/src/portable/portabled-operation.c:82:9: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-operation.c:83:9: branch_false: ...to here
systemd-258/src/portable/portabled-operation.c:83:9: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-operation.c:84:9: branch_false: ...to here
systemd-258/src/portable/portabled-operation.c:84:9: branch_false: following ‘false’ branch...
systemd-258/src/portable/portabled-operation.c:86:13: branch_false: ...to here
systemd-258/src/portable/portabled-operation.c:86:13: acquire_memory: allocated here
systemd-258/src/portable/portabled-operation.c:87:12: branch_false: following ‘false’ branch (when ‘o’ is non-NULL)...
systemd-258/src/portable/portabled-operation.c:90:9: branch_false: ...to here
systemd-258/src/portable/portabled-operation.c:92:13: danger: ‘o’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   90|           o->extra_fd = -EBADF;
#   91|   
#   92|->         r = sd_event_add_child(manager->event, &o->event_source, child, WEXITED, operation_done, o);
#   93|           if (r < 0) {
#   94|                   free(o);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1172]
systemd-258/src/random-seed/random-seed-tool.c:179:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(176)’
systemd-258/src/random-seed/random-seed-tool.c:142:12: enter_function: entry to ‘load_seed_file’
systemd-258/src/random-seed/random-seed-tool.c:153:9: branch_false: following ‘false’ branch...
systemd-258/src/random-seed/random-seed-tool.c:154:9: branch_false: ...to here
systemd-258/src/random-seed/random-seed-tool.c:154:9: branch_false: following ‘false’ branch...
systemd-258/src/random-seed/random-seed-tool.c:156:15: branch_false: ...to here
systemd-258/src/random-seed/random-seed-tool.c:157:12: branch_false: following ‘false’ branch...
systemd-258/src/random-seed/random-seed-tool.c:160:13: branch_false: ...to here
systemd-258/src/random-seed/random-seed-tool.c:161:12: branch_false: following ‘false’ branch...
systemd-258/src/random-seed/random-seed-tool.c:165:12: branch_false: ...to here
systemd-258/src/random-seed/random-seed-tool.c:165:12: branch_false: following ‘false’ branch...
systemd-258/src/random-seed/random-seed-tool.c:172:12: branch_false: ...to here
systemd-258/src/random-seed/random-seed-tool.c:172:12: branch_true: following ‘true’ branch (when ‘ret_hash_state’ is non-NULL)...
systemd-258/src/random-seed/random-seed-tool.c:175:30: call_function: inlined call to ‘malloc_multiply’ from ‘load_seed_file’
systemd-258/src/random-seed/random-seed-tool.c:176:20: branch_false: following ‘false’ branch...
systemd-258/src/random-seed/random-seed-tool.c:179:17: branch_false: ...to here
systemd-258/src/random-seed/random-seed-tool.c:179:17: danger: ‘malloc(176)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  177|                           return log_oom();
#  178|   
#  179|->                 sha256_init_ctx(hash_state);
#  180|                   sha256_process_bytes_and_size(buf, k, hash_state); /* Hash with length to distinguish from new seed. */
#  181|   

Error: CPPCHECK_WARNING (CWE-457): [#def1173]
systemd-258/src/resolve/resolvectl.c:1610: error[uninitvar]: Uninitialized variable: &pos1
# 1608|   
# 1609|           if (ifname)
# 1610|->                 printf("%s%nLink %i (%s)%n%s:", ansi_highlight(), &pos1, ifindex, ifname, &pos2, ansi_normal());
# 1611|           else if (delegate_id)
# 1612|                   printf("%s%nDelegate %s%n%s:", ansi_highlight(), &pos1, delegate_id, &pos2, ansi_normal());

Error: CPPCHECK_WARNING (CWE-457): [#def1174]
systemd-258/src/resolve/resolvectl.c:1610: error[uninitvar]: Uninitialized variable: &pos2
# 1608|   
# 1609|           if (ifname)
# 1610|->                 printf("%s%nLink %i (%s)%n%s:", ansi_highlight(), &pos1, ifindex, ifname, &pos2, ansi_normal());
# 1611|           else if (delegate_id)
# 1612|                   printf("%s%nDelegate %s%n%s:", ansi_highlight(), &pos1, delegate_id, &pos2, ansi_normal());

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1175]
systemd-258/src/resolve/resolvectl.c:1616:45: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pos2’
# 1614|                   printf("%s%nGlobal%n%s:", ansi_highlight(), &pos1, &pos2, ansi_normal());
# 1615|   
# 1616|->         size_t cols = columns(), position = pos2 - pos1 + 2;
# 1617|   
# 1618|           STRV_FOREACH(i, p) {

Error: CPPCHECK_WARNING (CWE-457): [#def1176]
systemd-258/src/resolve/resolvectl.c:3065: error[uninitvar]: Uninitialized variable: a
# 3063|                   size_t l;
# 3064|   
# 3065|->                 jraw = sd_json_variant_by_key(a, "raw");
# 3066|                   if (!jraw) {
# 3067|                           log_warning("Received monitor answer lacking valid raw data, ignoring.");

Error: CPPCHECK_WARNING (CWE-457): [#def1177]
systemd-258/src/resolve/resolvectl.c:3298: error[uninitvar]: Uninitialized variable: i
# 3296|                           size_t size;
# 3297|   
# 3298|->                         raw = sd_json_variant_by_key(i, "raw");
# 3299|                           if (!raw)
# 3300|                                   return log_error_errno(SYNTHETIC_ERRNO(ENOTRECOVERABLE), "raw field missing from RR JSON data.");

Error: CPPCHECK_WARNING (CWE-457): [#def1178]
systemd-258/src/resolve/resolvectl.c:3369: error[uninitvar]: Uninitialized variable: i
# 3367|   
# 3368|           JSON_VARIANT_ARRAY_FOREACH(i, scope_info.cache) {
# 3369|->                 r = dump_cache_item(i);
# 3370|                   if (r < 0)
# 3371|                           return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1179]
systemd-258/src/resolve/resolvectl.c:3416: error[uninitvar]: Uninitialized variable: i
# 3414|   
# 3415|                   JSON_VARIANT_ARRAY_FOREACH(i, d) {
# 3416|->                         r = dump_cache_scope(i);
# 3417|                           if (r < 0)
# 3418|                                   return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1180]
systemd-258/src/resolve/resolvectl.c:3596: error[uninitvar]: Uninitialized variable: i
# 3594|   
# 3595|                   JSON_VARIANT_ARRAY_FOREACH(i, d) {
# 3596|->                         r = dump_server_state(i);
# 3597|                           if (r < 0)
# 3598|                                   return r;

Error: CPPCHECK_WARNING (CWE-476): [#def1181]
systemd-258/src/resolve/resolvectl.c:4413: error[ctunullpointer]: Null pointer dereference: args
# 4411|           if (single_arg)
# 4412|                   *p++ = (char *) single_arg;
# 4413|->         FOREACH_ARRAY(arg, args, num_args)
# 4414|                   *p++ = *arg;
# 4415|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1182]
systemd-258/src/resolve/resolved-bus.c:158:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/resolve/resolved-bus.c:1225:13: enter_function: entry to ‘bus_method_resolve_service_complete’
systemd-258/src/resolve/resolved-bus.c:1233:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-bus.c:1235:13: branch_false: ...to here
systemd-258/src/resolve/resolved-bus.c:1235:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-bus.c:1236:21: branch_true: ...to here
systemd-258/src/resolve/resolved-bus.c:1236:21: call_function: calling ‘reply_query_state’ from ‘bus_method_resolve_service_complete’
#  156|   
#  157|           return r;
#  158|-> }
#  159|   
#  160|   static int reply_query_state(DnsQuery *q) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1183]
systemd-258/src/resolve/resolved-dns-answer.c:24:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.n_ref’
systemd-258/src/resolve/resolved-dns-answer.c:147:12: enter_function: entry to ‘dns_answer_add_raw_all’
systemd-258/src/resolve/resolved-dns-answer.c:151:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:152:21: call_function: calling ‘dns_answer_add_raw’ from ‘dns_answer_add_raw_all’
#   22|   }
#   23|   
#   24|-> DEFINE_PRIVATE_TRIVIAL_REF_UNREF_FUNC(DnsAnswerItem, dns_answer_item, dns_answer_item_free);
#   25|   DEFINE_TRIVIAL_CLEANUP_FUNC(DnsAnswerItem*, dns_answer_item_unref);
#   26|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1184]
systemd-258/src/resolve/resolved-dns-answer.c:59:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(16)’
systemd-258/src/resolve/resolved-dns-answer.c:680:5: enter_function: entry to ‘dns_answer_reserve’
systemd-258/src/resolve/resolved-dns-answer.c:681:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:683:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:683:12: branch_false: following ‘false’ branch (when ‘n_free != 0’)...
systemd-258/src/resolve/resolved-dns-answer.c:686:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:686:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:689:21: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:689:21: call_function: calling ‘dns_answer_new’ from ‘dns_answer_reserve’
#   57|           size_t m;
#   58|   
#   59|->         assert(a);
#   60|           assert(a->items);
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1185]
systemd-258/src/resolve/resolved-dns-answer.c:677:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
systemd-258/src/resolve/resolved-dns-answer.c:647:6: enter_function: entry to ‘dns_answer_order_by_scope’
systemd-258/src/resolve/resolved-dns-answer.c:652:13: call_function: inlined call to ‘dns_answer_size’ from ‘dns_answer_order_by_scope’
systemd-258/src/resolve/resolved-dns-answer.c:653:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:659:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:659:21: call_function: calling ‘malloc_multiply’ from ‘dns_answer_order_by_scope’
systemd-258/src/resolve/resolved-dns-answer.c:659:21: return_function: returning to ‘dns_answer_order_by_scope’ from ‘malloc_multiply’
systemd-258/src/resolve/resolved-dns-answer.c:660:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:664:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:664:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:664:9: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:669:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:669:9: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:673:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:675:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:676:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-answer.c:677:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-answer.c:677:17: danger: use of uninitialized value ‘*<unknown>’ here
#  675|           ordered_set_clear(a->items);
#  676|           for (size_t i = 0; i < n; i++)
#  677|->                 assert_se(ordered_set_put(a->items, items[i]) >= 0);
#  678|   }
#  679|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1186]
systemd-258/src/resolve/resolved-dns-answer.h:107:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p’
systemd-258/src/resolve/test-dns-answer.c:303:1: enter_function: entry to ‘test_dns_answer_remove_by_key’
systemd-258/src/resolve/test-dns-answer.c:304:58: call_function: calling ‘prepare_answer’ from ‘test_dns_answer_remove_by_key’
systemd-258/src/resolve/test-dns-answer.c:304:49: call_function: calling ‘dns_answer_unrefp’ from ‘test_dns_answer_remove_by_key’
#  105|   uint32_t dns_answer_min_ttl(DnsAnswer *a);
#  106|   
#  107|-> DEFINE_TRIVIAL_CLEANUP_FUNC(DnsAnswer*, dns_answer_unref);
#  108|   
#  109|   typedef struct DnsAnswerIterator {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1187]
systemd-258/src/resolve/resolved-dns-browse-services.c:246:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*p.n_ref’
systemd-258/src/resolve/resolved-dns-browse-services.c:544:13: enter_function: entry to ‘mdns_browse_service_query_complete’
systemd-258/src/resolve/resolved-dns-browse-services.c:549:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-browse-services.c:550:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-browse-services.c:550:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-browse-services.c:552:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-browse-services.c:552:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-browse-services.c:555:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-browse-services.c:555:14: call_function: calling ‘dns_service_browser_ref’ from ‘mdns_browse_service_query_complete’
systemd-258/src/resolve/resolved-dns-browse-services.c:555:14: return_function: returning to ‘mdns_browse_service_query_complete’ from ‘dns_service_browser_ref’
systemd-258/src/resolve/resolved-dns-browse-services.c:556:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-browse-services.c:559:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-browse-services.c:559:13: call_function: calling ‘mdns_browser_revisit_cache’ from ‘mdns_browse_service_query_complete’
#  244|   }
#  245|   
#  246|-> DEFINE_TRIVIAL_REF_UNREF_FUNC(DnssdDiscoveredService, dnssd_discovered_service, dns_service_free);
#  247|   
#  248|   int mdns_service_update(DnssdDiscoveredService *service, DnsResourceRecord *rr, usec_t t, usec_t until) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1188]
systemd-258/src/resolve/resolved-dns-cache.c:1380:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-cache.c:1332:5: enter_function: entry to ‘dns_cache_export_shared_to_packet’
systemd-258/src/resolve/resolved-dns-cache.c:1337:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1338:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1338:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1339:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1339:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1341:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1341:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1342:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1342:17: branch_true: following ‘true’ branch (when ‘j’ is non-NULL)...
systemd-258/src/resolve/resolved-dns-cache.c:1342:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1343:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1346:30: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1346:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1350:29: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1350:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1355:29: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1355:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1358:28: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1359:33: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘dns_cache_export_shared_to_packet’
systemd-258/src/resolve/resolved-dns-cache.c:1363:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1366:33: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1372:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-cache.c:1373:36: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1373:36: branch_false: following ‘false’ branch (when ‘max_rr != 0’)...
systemd-258/src/resolve/resolved-dns-cache.c:1380:65: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-cache.c:1380:33: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘dns_cache_export_shared_to_packet’
systemd-258/src/resolve/resolved-dns-cache.c:1380:65: call_function: inlined call to ‘htobe16’ from ‘dns_cache_export_shared_to_packet’
systemd-258/src/resolve/resolved-dns-cache.c:1380:33: danger: dereference of NULL ‘<unknown>’
# 1378|                                    * a new one, push the RR into that one and link it to the current one. */
# 1379|   
# 1380|->                                 DNS_PACKET_HEADER(p)->ancount = htobe16(ancount);
# 1381|                                   ancount = 0;
# 1382|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1189]
systemd-258/src/resolve/resolved-dns-packet.c:2444:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-packet.c:2439:12: enter_function: entry to ‘dns_packet_extract_question’
systemd-258/src/resolve/resolved-dns-packet.c:2444:13: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘dns_packet_extract_question’
systemd-258/src/resolve/resolved-dns-packet.c:2444:13: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-packet.c:2444:13: danger: dereference of NULL ‘<unknown>’
# 2442|           int r;
# 2443|   
# 2444|->         n = DNS_PACKET_QDCOUNT(p);
# 2445|           if (n > 0) {
# 2446|                   question = dns_question_new(n);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1190]
systemd-258/src/resolve/resolved-dns-packet.h:146:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-packet.c:2490:12: enter_function: entry to ‘dns_packet_extract_answer’
systemd-258/src/resolve/resolved-dns-packet.c:2497:13: call_function: calling ‘DNS_PACKET_RRCOUNT’ from ‘dns_packet_extract_answer’
#  144|   static inline unsigned DNS_PACKET_RRCOUNT(DnsPacket *p) {
#  145|           return
#  146|->                 (unsigned) DNS_PACKET_ANCOUNT(p) +
#  147|                   (unsigned) DNS_PACKET_NSCOUNT(p) +
#  148|                   (unsigned) DNS_PACKET_ARCOUNT(p);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1191]
systemd-258/src/resolve/resolved-dns-question.c:16:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dns_question_new(*a.n_keys + *b.n_keys)’
systemd-258/src/resolve/resolved-dns-question.c:571:5: enter_function: entry to ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:575:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:577:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:577:12: branch_false: following ‘false’ branch (when ‘a != b’)...
systemd-258/src/resolve/resolved-dns-question.c:577:23: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:577:13: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:582:13: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:582:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:587:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:587:13: call_function: calling ‘dns_question_new’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:587:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_new’
systemd-258/src/resolve/resolved-dns-question.c:588:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:591:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:591:13: call_function: calling ‘dns_question_add_raw_all’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:591:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_add_raw_all’
systemd-258/src/resolve/resolved-dns-question.c:572:53: call_function: inlined call to ‘dns_question_unrefp’ from ‘dns_question_merge’
#   14|           DnsQuestion *q;
#   15|   
#   16|->         if (n > UINT16_MAX) /* We can only place 64K key in an question section at max */
#   17|                   n = UINT16_MAX;
#   18|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1192]
systemd-258/src/resolve/resolved-dns-question.c:16:12: warning[-Wanalyzer-malloc-leak]: leak of ‘dns_question_new(*q.n_keys)’
systemd-258/src/resolve/resolved-dns-question.c:245:5: enter_function: entry to ‘dns_question_cname_redirect’
systemd-258/src/resolve/resolved-dns-question.c:251:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:252:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:253:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:255:13: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_cname_redirect’
systemd-258/src/resolve/resolved-dns-question.c:255:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:260:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:260:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-question.c:261:38: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-question.c:277:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:280:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:292:13: call_function: calling ‘dns_question_new’ from ‘dns_question_cname_redirect’
systemd-258/src/resolve/resolved-dns-question.c:292:13: return_function: returning to ‘dns_question_cname_redirect’ from ‘dns_question_new’
systemd-258/src/resolve/resolved-dns-question.c:293:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:297:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:297:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-question.c:246:53: call_function: inlined call to ‘dns_question_unrefp’ from ‘dns_question_cname_redirect’
#   14|           DnsQuestion *q;
#   15|   
#   16|->         if (n > UINT16_MAX) /* We can only place 64K key in an question section at max */
#   17|                   n = UINT16_MAX;
#   18|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1193]
systemd-258/src/resolve/resolved-dns-question.c:63:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
systemd-258/src/resolve/resolved-dns-question.c:571:5: enter_function: entry to ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:575:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:577:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:577:12: branch_false: following ‘false’ branch (when ‘a != b’)...
systemd-258/src/resolve/resolved-dns-question.c:577:23: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:577:13: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:582:13: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:582:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:587:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:587:13: call_function: calling ‘dns_question_new’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:587:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_new’
systemd-258/src/resolve/resolved-dns-question.c:588:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:591:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:591:13: call_function: calling ‘dns_question_add_raw_all’ from ‘dns_question_merge’
#   61|   
#   62|           DNS_QUESTION_FOREACH_ITEM(item, b) {
#   63|->                 r = dns_question_add_raw(a, item->key, item->flags);
#   64|                   if (r < 0)
#   65|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1194]
systemd-258/src/resolve/resolved-dns-question.c:81:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
systemd-258/src/resolve/resolved-dns-question.c:470:5: enter_function: entry to ‘dns_question_new_service’
systemd-258/src/resolve/resolved-dns-question.c:484:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:501:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:501:12: branch_false: following ‘false’ branch (when ‘domain’ is non-NULL)...
systemd-258/src/resolve/resolved-dns-question.c:504:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:504:12: branch_true: following ‘true’ branch (when ‘type’ is non-NULL)...
systemd-258/src/resolve/resolved-dns-question.c:505:20: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-question.c:505:20: branch_false: following ‘false’ branch (when ‘convert_idna == 0’)...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:514:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:517:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:525:13: call_function: calling ‘dns_question_new’ from ‘dns_question_new_service’
systemd-258/src/resolve/resolved-dns-question.c:525:13: return_function: returning to ‘dns_question_new_service’ from ‘dns_question_new’
systemd-258/src/resolve/resolved-dns-question.c:526:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:529:15: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:530:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:533:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:533:13: call_function: calling ‘dns_question_add’ from ‘dns_question_new_service’
#   79|   
#   80|           DNS_QUESTION_FOREACH_ITEM(item, q) {
#   81|->                 r = dns_resource_key_equal(item->key, key);
#   82|                   if (r < 0)
#   83|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1195]
systemd-258/src/resolve/resolved-dns-question.c:96:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
systemd-258/src/resolve/resolved-dns-question.c:571:5: enter_function: entry to ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:575:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:577:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:577:12: branch_false: following ‘false’ branch (when ‘a != b’)...
systemd-258/src/resolve/resolved-dns-question.c:577:23: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:577:13: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:582:13: call_function: inlined call to ‘dns_question_size’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:582:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:587:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:587:13: call_function: calling ‘dns_question_new’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:587:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_new’
systemd-258/src/resolve/resolved-dns-question.c:588:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:591:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:591:13: call_function: calling ‘dns_question_add_raw_all’ from ‘dns_question_merge’
systemd-258/src/resolve/resolved-dns-question.c:591:13: return_function: returning to ‘dns_question_merge’ from ‘dns_question_add_raw_all’
systemd-258/src/resolve/resolved-dns-question.c:592:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:595:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:595:13: call_function: calling ‘dns_question_add_all’ from ‘dns_question_merge’
#   94|   
#   95|           DNS_QUESTION_FOREACH_ITEM(item, b) {
#   96|->                 r = dns_question_add(a, item->key, item->flags);
#   97|                   if (r < 0)
#   98|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1196]
systemd-258/src/resolve/resolved-dns-rr.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘dns_resource_record_new(*rr.key)’
systemd-258/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: return_function: returning to ‘dns_resource_record_copy’ from ‘dns_resource_record_new’
systemd-258/src/resolve/resolved-dns-rr.c:1731:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1734:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1938:20: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1725:66: call_function: inlined call to ‘dns_resource_record_unrefp’ from ‘dns_resource_record_copy’
#  127|           /* Static/const keys created with DNS_RESOURCE_KEY_CONST will
#  128|            * set this to -1, they should not be reffed/unreffed */
#  129|->         assert(k->n_ref != UINT_MAX);
#  130|   
#  131|           assert(k->n_ref > 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1197]
systemd-258/src/resolve/resolved-dns-rr.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(112)’
systemd-258/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
#  127|           /* Static/const keys created with DNS_RESOURCE_KEY_CONST will
#  128|            * set this to -1, they should not be reffed/unreffed */
#  129|->         assert(k->n_ref != UINT_MAX);
#  130|   
#  131|           assert(k->n_ref > 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1198]
systemd-258/src/resolve/resolved-dns-rr.c:131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(112)’
systemd-258/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
#  129|           assert(k->n_ref != UINT_MAX);
#  130|   
#  131|->         assert(k->n_ref > 0);
#  132|           k->n_ref++;
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1199]
systemd-258/src/resolve/resolved-dns-rr.c:331:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘x’
systemd-258/src/resolve/resolved-dns-rr.c:1693:5: enter_function: entry to ‘dns_resource_record_compare_func’
systemd-258/src/resolve/resolved-dns-rr.c:1696:13: call_function: calling ‘dns_resource_key_compare_func’ from ‘dns_resource_record_compare_func’
#  329|                   return r;
#  330|   
#  331|->         r = CMP(x->type, y->type);
#  332|           if (r != 0)
#  333|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1200]
systemd-258/src/resolve/resolved-dns-rr.c:331:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘y’
systemd-258/src/resolve/resolved-dns-rr.c:1693:5: enter_function: entry to ‘dns_resource_record_compare_func’
systemd-258/src/resolve/resolved-dns-rr.c:1696:13: call_function: calling ‘dns_resource_key_compare_func’ from ‘dns_resource_record_compare_func’
#  329|                   return r;
#  330|   
#  331|->         r = CMP(x->type, y->type);
#  332|           if (r != 0)
#  333|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1201]
systemd-258/src/resolve/resolved-dns-rr.c:528:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: return_function: returning to ‘dns_resource_record_copy’ from ‘dns_resource_record_new’
systemd-258/src/resolve/resolved-dns-rr.c:1731:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1734:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1740:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1740:54: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1837:38: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dns-rr.c:1838:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1840:41: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1841:20: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1725:66: call_function: inlined call to ‘dns_resource_record_unrefp’ from ‘dns_resource_record_copy’
#  526|   
#  527|           free(rr->to_string);
#  528|->         return mfree(rr);
#  529|   }
#  530|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1202]
systemd-258/src/resolve/resolved-dns-rr.c:1734:21: warning[-Wanalyzer-malloc-leak]: leak of ‘dns_resource_record_new(*rr.key)’
systemd-258/src/resolve/resolved-dns-rr.c:1724:20: enter_function: entry to ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: call_function: calling ‘dns_resource_record_new’ from ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1730:16: return_function: returning to ‘dns_resource_record_copy’ from ‘dns_resource_record_new’
systemd-258/src/resolve/resolved-dns-rr.c:1731:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1734:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1740:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-rr.c:1740:54: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-rr.c:1772:35: call_function: calling ‘dns_txt_item_copy’ from ‘dns_resource_record_copy’
systemd-258/src/resolve/resolved-dns-rr.c:1725:66: call_function: inlined call to ‘dns_resource_record_unrefp’ from ‘dns_resource_record_copy’
# 1732|                   return NULL;
# 1733|   
# 1734|->         copy->ttl = rr->ttl;
# 1735|           copy->expiry = rr->expiry;
# 1736|           copy->n_skip_labels_signer = rr->n_skip_labels_signer;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1203]
systemd-258/src/resolve/resolved-dns-rr.h:367:1: warning[-Wanalyzer-malloc-leak]: leak of ‘q’
systemd-258/src/resolve/resolved-dns-question.c:388:5: enter_function: entry to ‘dns_question_new_reverse’
systemd-258/src/resolve/resolved-dns-question.c:394:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:395:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:395:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:397:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:401:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:404:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:404:13: call_function: calling ‘dns_question_new’ from ‘dns_question_new_reverse’
systemd-258/src/resolve/resolved-dns-question.c:404:13: return_function: returning to ‘dns_question_new_reverse’ from ‘dns_question_new’
systemd-258/src/resolve/resolved-dns-question.c:405:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:408:15: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:409:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-question.c:412:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-question.c:414:13: call_function: calling ‘dns_question_add’ from ‘dns_question_new_reverse’
systemd-258/src/resolve/resolved-dns-question.c:390:53: call_function: inlined call to ‘dns_question_unrefp’ from ‘dns_question_new_reverse’
systemd-258/src/resolve/resolved-dns-question.c:389:60: call_function: calling ‘dns_resource_key_unrefp’ from ‘dns_question_new_reverse’
#  365|           dns_resource_key_to_string(key, (char[DNS_RESOURCE_KEY_STRING_MAX]) {}, DNS_RESOURCE_KEY_STRING_MAX)
#  366|   
#  367|-> DEFINE_TRIVIAL_CLEANUP_FUNC(DnsResourceKey*, dns_resource_key_unref);
#  368|   
#  369|   static inline bool dns_key_is_shared(const DnsResourceKey *key) {

Error: COMPILER_WARNING: [#def1204] [important]
systemd-258/src/resolve/resolved-dns-scope.c:971:26: error[error]: ‘struct ipv6_mreq’ has no member named ‘ipv6mr_ifindex’
#  969|                   struct ipv6_mreq mreq = {
#  970|                           .ipv6mr_multiaddr = in6,
#  971|->                         .ipv6mr_ifindex = s->link->ifindex,
#  972|                   };
#  973|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1205]
systemd-258/src/resolve/resolved-dns-search-domain.c:55:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
systemd-258/src/resolve/resolved-dns-search-domain.c:12:5: enter_function: entry to ‘dns_search_domain_new’
systemd-258/src/resolve/resolved-dns-search-domain.c:24:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-search-domain.c:25:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-search-domain.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-search-domain.c:26:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-search-domain.c:26:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-search-domain.c:27:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-search-domain.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-search-domain.c:29:13: call_function: inlined call to ‘dns_name_normalize’ from ‘dns_search_domain_new’
systemd-258/src/resolve/resolved-dns-search-domain.c:30:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-search-domain.c:33:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-search-domain.c:34:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-search-domain.c:44:13: call_function: inlined call to ‘malloc_multiply’ from ‘dns_search_domain_new’
systemd-258/src/resolve/resolved-dns-search-domain.c:45:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-search-domain.c:52:25: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-search-domain.c:55:9: danger: ‘malloc(64)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
#   53|           };
#   54|   
#   55|->         switch (type) {
#   56|   
#   57|           case DNS_SEARCH_DOMAIN_LINK:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1206]
systemd-258/src/resolve/resolved-dns-server.c:101:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘link’
systemd-258/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
#   99|           case DNS_SERVER_LINK:
#  100|                   s->link = link;
#  101|->                 LIST_APPEND(servers, link->dns_servers, s);
#  102|                   link->n_dns_servers++;
#  103|                   break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1207]
systemd-258/src/resolve/resolved-dns-server.c:117:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘delegate’
systemd-258/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
#  115|           case DNS_SERVER_DELEGATE:
#  116|                   s->delegate = delegate;
#  117|->                 LIST_APPEND(servers, delegate->dns_servers, s);
#  118|                   delegate->n_dns_servers++;
#  119|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1208]
systemd-258/src/resolve/resolved-dns-server.c:121:17: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
systemd-258/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
#  119|                   break;
#  120|           default:
#  121|->                 assert_not_reached();
#  122|           }
#  123|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1209]
systemd-258/src/resolve/resolved-dns-server.c:1162:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(184)’
systemd-258/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
# 1160|   
# 1161|   void dns_server_reset_features(DnsServer *s) {
# 1162|->         assert(s);
# 1163|   
# 1164|           s->verified_feature_level = _DNS_SERVER_FEATURE_LEVEL_INVALID;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1210]
systemd-258/src/resolve/resolved-dns-server.c:1254:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(184)’
systemd-258/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
# 1252|   
# 1253|           /* And then, unref it */
# 1254|->         dns_stream_unref(ref);
# 1255|   }
# 1256|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1211]
systemd-258/src/resolve/resolved-dns-server.c:1254:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
systemd-258/src/resolve/resolved-dns-server.c:886:12: enter_function: entry to ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:893:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:894:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:896:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:897:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:901:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:901:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-server.c:906:13: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘manager_get_first_dns_server’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘manager_get_first_dns_server’
systemd-258/src/resolve/resolved-dns-server.c:910:13: call_function: calling ‘dns_server_find’ from ‘manager_add_dns_server_by_string’
systemd-258/src/resolve/resolved-dns-server.c:910:13: return_function: returning to ‘manager_add_dns_server_by_string’ from ‘dns_server_find’
systemd-258/src/resolve/resolved-dns-server.c:911:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-server.c:918:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-server.c:918:16: call_function: calling ‘dns_server_new’ from ‘manager_add_dns_server_by_string’
# 1252|   
# 1253|           /* And then, unref it */
# 1254|->         dns_stream_unref(ref);
# 1255|   }
# 1256|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1212]
systemd-258/src/resolve/resolved-dns-stub.c:363:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-stub.c:1084:12: enter_function: entry to ‘on_dns_stub_stream_packet’
systemd-258/src/resolve/resolved-dns-stub.c:1085:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1086:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1086:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1087:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1087:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1089:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1089:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1090:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1092:17: call_function: calling ‘dns_stub_process_query’ from ‘on_dns_stub_stream_packet’
#  361|                   return -EMSGSIZE;
#  362|   
#  363|->         DNS_PACKET_HEADER(p)->qdcount = htobe16(dns_question_size(q));
#  364|   
#  365|           *ret = TAKE_PTR(p);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1213]
systemd-258/src/resolve/resolved-dns-stub.c:678:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘truncated’
systemd-258/src/resolve/resolved-dns-stub.c:1084:12: enter_function: entry to ‘on_dns_stub_stream_packet’
systemd-258/src/resolve/resolved-dns-stub.c:1085:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1086:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1086:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1087:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1087:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1089:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1089:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1090:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1092:17: call_function: calling ‘dns_stub_process_query’ from ‘on_dns_stub_stream_packet’
#  676|                   return log_debug_errno(r, "Failed to make failure packet: %m");
#  677|   
#  678|->         r = dns_stub_finish_reply_packet(
#  679|                           reply,
#  680|                           DNS_PACKET_ID(p),

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1214]
systemd-258/src/resolve/resolved-dns-stub.c:959:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-stub.c:1084:12: enter_function: entry to ‘on_dns_stub_stream_packet’
systemd-258/src/resolve/resolved-dns-stub.c:1085:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1086:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1086:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1087:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1087:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1089:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1089:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1090:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1092:17: call_function: calling ‘dns_stub_process_query’ from ‘on_dns_stub_stream_packet’
#  957|           }
#  958|   
#  959|->         if (dns_type_is_obsolete(dns_question_first_key(p->question)->type)) {
#  960|                   log_debug("Got message with obsolete key type, refusing.");
#  961|                   dns_stub_send_failure(m, l, s, p, DNS_RCODE_REFUSED, false);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1215]
systemd-258/src/resolve/resolved-dns-stub.c:965:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-stub.c:1084:12: enter_function: entry to ‘on_dns_stub_stream_packet’
systemd-258/src/resolve/resolved-dns-stub.c:1085:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1086:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1086:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1087:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1087:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1089:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1089:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1090:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1092:17: call_function: calling ‘dns_stub_process_query’ from ‘on_dns_stub_stream_packet’
#  963|           }
#  964|   
#  965|->         if (dns_type_is_zone_transfer(dns_question_first_key(p->question)->type)) {
#  966|                   log_debug("Got request for zone transfer, refusing.");
#  967|                   dns_stub_send_failure(m, l, s, p, DNS_RCODE_REFUSED, false);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1216]
systemd-258/src/resolve/resolved-dns-stub.c:1065:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-stub.c:1078:12: enter_function: entry to ‘on_dns_stub_packet_extra’
systemd-258/src/resolve/resolved-dns-stub.c:1079:35: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-stub.c:1081:16: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-stub.c:1081:16: call_function: calling ‘on_dns_stub_packet_internal’ from ‘on_dns_stub_packet_extra’
# 1063|   
# 1064|           if (dns_packet_validate_query(p) > 0) {
# 1065|->                 log_debug("Got DNS stub UDP query packet for id %u", DNS_PACKET_ID(p));
# 1066|   
# 1067|                   dns_stub_process_query(m, l, NULL, p);

Error: CPPCHECK_WARNING (CWE-457): [#def1217]
systemd-258/src/resolve/resolved-dns-transaction.c:455: error[uninitvar]: Uninitialized variable: c
#  453|   
#  454|           SET_FOREACH_MOVE(c, t->notify_query_candidates_done, t->notify_query_candidates)
#  455|->                 dns_query_candidate_notify(c);
#  456|           SWAP_TWO(t->notify_query_candidates, t->notify_query_candidates_done);
#  457|   

Error: CPPCHECK_WARNING (CWE-457): [#def1218]
systemd-258/src/resolve/resolved-dns-transaction.c:459: error[uninitvar]: Uninitialized variable: z
#  457|   
#  458|           SET_FOREACH_MOVE(z, t->notify_zone_items_done, t->notify_zone_items)
#  459|->                 dns_zone_item_notify(z);
#  460|           SWAP_TWO(t->notify_zone_items, t->notify_zone_items_done);
#  461|           if (t->probing && t->state == DNS_TRANSACTION_ATTEMPTS_MAX_REACHED)

Error: CPPCHECK_WARNING (CWE-457): [#def1219]
systemd-258/src/resolve/resolved-dns-transaction.c:465: error[uninitvar]: Uninitialized variable: d
#  463|   
#  464|           SET_FOREACH_MOVE(d, t->notify_transactions_done, t->notify_transactions)
#  465|->                 dns_transaction_notify(d, t);
#  466|           SWAP_TWO(t->notify_transactions, t->notify_transactions_done);
#  467|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1220]
systemd-258/src/resolve/resolved-dns-transaction.c:2624:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ds’
systemd-258/src/resolve/resolved-dns-transaction.c:2455:5: enter_function: entry to ‘dns_transaction_request_dnssec_keys’
systemd-258/src/resolve/resolved-dns-transaction.c:2462:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2479:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2479:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2481:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2483:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2483:14: call_function: calling ‘dns_transaction_dnssec_supported’ from ‘dns_transaction_request_dnssec_keys’
systemd-258/src/resolve/resolved-dns-transaction.c:2483:14: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_dnssec_supported’
systemd-258/src/resolve/resolved-dns-transaction.c:2483:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2486:9: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2486:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2488:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2492:91: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2492:21: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_request_dnssec_keys’
systemd-258/src/resolve/resolved-dns-transaction.c:2492:21: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258/src/resolve/resolved-dns-transaction.c:2493:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2495:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2495:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2498:25: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2591:76: release_memory: ‘ds’ is NULL
systemd-258/src/resolve/resolved-dns-transaction.c:2600:55: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_request_dnssec_keys’
systemd-258/src/resolve/resolved-dns-transaction.c:2600:55: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:2601:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2603:28: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2603:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2608:69: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2608:69: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_request_dnssec_keys’
systemd-258/src/resolve/resolved-dns-transaction.c:2608:69: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:2609:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2611:36: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2611:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2617:124: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2617:77: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_request_dnssec_keys’
systemd-258/src/resolve/resolved-dns-transaction.c:2617:77: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:2618:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2620:36: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2620:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2624:37: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2624:37: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_request_dnssec_keys’
systemd-258/src/resolve/resolved-dns-transaction.c:2624:37: return_function: returning to ‘dns_transaction_request_dnssec_keys’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:2624:37: danger: dereference of NULL ‘dns_transaction_key(t)’
# 2622|   
# 2623|                                   /* If we were looking for the DS RR, don't request it again. */
# 2624|->                                 if (dns_transaction_key(t)->type == DNS_TYPE_DS)
# 2625|                                           continue;
# 2626|                           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1221]
systemd-258/src/resolve/resolved-dns-transaction.c:2887:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:2853:12: enter_function: entry to ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2856:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2862:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2862:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2865:32: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2865:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2868:83: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2868:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2868:13: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258/src/resolve/resolved-dns-transaction.c:2869:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2874:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2885:17: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2887:29: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2887:29: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2887:29: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:2887:29: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 2885|                   SET_FOREACH(dt, t->dnssec_transactions) {
# 2886|   
# 2887|->                         if (dns_transaction_key(dt)->class != rr->key->class)
# 2888|                                   continue;
# 2889|                           if (dns_transaction_key(dt)->type != DNS_TYPE_DS)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1222]
systemd-258/src/resolve/resolved-dns-transaction.c:2928:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:2853:12: enter_function: entry to ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2856:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2862:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2862:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2865:32: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2865:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2868:83: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2868:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2868:13: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258/src/resolve/resolved-dns-transaction.c:2869:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2874:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2926:17: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2928:29: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2928:29: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2928:29: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:2928:29: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 2926|                   SET_FOREACH(dt, t->dnssec_transactions) {
# 2927|   
# 2928|->                         if (dns_transaction_key(dt)->class != rr->key->class)
# 2929|                                   continue;
# 2930|                           if (dns_transaction_key(dt)->type != DNS_TYPE_DS)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1223]
systemd-258/src/resolve/resolved-dns-transaction.c:2971:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:2853:12: enter_function: entry to ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2856:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2857:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2862:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2862:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2865:32: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2865:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2868:83: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2868:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2868:13: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258/src/resolve/resolved-dns-transaction.c:2869:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2871:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2874:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2970:17: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:2971:29: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:2971:29: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_rrsig’
systemd-258/src/resolve/resolved-dns-transaction.c:2971:29: return_function: returning to ‘dns_transaction_requires_rrsig’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:2971:29: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 2969|   
# 2970|                   SET_FOREACH(dt, t->dnssec_transactions) {
# 2971|->                         if (dns_transaction_key(dt)->class != rr->key->class)
# 2972|                                   continue;
# 2973|                           if (dns_transaction_key(dt)->type != DNS_TYPE_DS)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1224]
systemd-258/src/resolve/resolved-dns-transaction.c:2973:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:3279:12: enter_function: entry to ‘dnssec_validate_records’
systemd-258/src/resolve/resolved-dns-transaction.c:3289:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3293:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3293:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3330:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3332:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3336:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3369:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3412:20: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3413:29: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3413:29: call_function: calling ‘dns_transaction_requires_rrsig’ from ‘dnssec_validate_records’
# 2971|                           if (dns_transaction_key(dt)->class != rr->key->class)
# 2972|                                   continue;
# 2973|->                         if (dns_transaction_key(dt)->type != DNS_TYPE_DS)
# 2974|                                   continue;
# 2975|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1225]
systemd-258/src/resolve/resolved-dns-transaction.c:3034:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:2994:12: enter_function: entry to ‘dns_transaction_in_private_tld’
systemd-258/src/resolve/resolved-dns-transaction.c:3017:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3019:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3019:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3022:15: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3024:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3026:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3026:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3029:14: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3029:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3032:9: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3032:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3034:21: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3034:21: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_in_private_tld’
systemd-258/src/resolve/resolved-dns-transaction.c:3034:21: return_function: returning to ‘dns_transaction_in_private_tld’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3034:21: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 3032|           SET_FOREACH(dt, t->dnssec_transactions) {
# 3033|   
# 3034|->                 if (dns_transaction_key(dt)->class != key->class)
# 3035|                           continue;
# 3036|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1226]
systemd-258/src/resolve/resolved-dns-transaction.c:3034:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘key’
systemd-258/src/resolve/resolved-dns-transaction.c:3053:12: enter_function: entry to ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3059:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3064:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3064:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3067:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3070:83: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3070:83: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3070:83: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3070:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3070:13: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258/src/resolve/resolved-dns-transaction.c:3071:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3073:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3073:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3076:47: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3076:47: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3076:47: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3076:13: call_function: calling ‘dns_transaction_in_private_tld’ from ‘dns_transaction_requires_nsec’
# 3032|           SET_FOREACH(dt, t->dnssec_transactions) {
# 3033|   
# 3034|->                 if (dns_transaction_key(dt)->class != key->class)
# 3035|                           continue;
# 3036|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1227]
systemd-258/src/resolve/resolved-dns-transaction.c:3034:55: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘key’
systemd-258/src/resolve/resolved-dns-transaction.c:3053:12: enter_function: entry to ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3059:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3064:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3064:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3067:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3070:83: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3070:83: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3070:83: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3070:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3070:13: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258/src/resolve/resolved-dns-transaction.c:3071:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3073:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3073:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3076:47: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3076:47: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3076:47: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3076:13: call_function: calling ‘dns_transaction_in_private_tld’ from ‘dns_transaction_requires_nsec’
# 3032|           SET_FOREACH(dt, t->dnssec_transactions) {
# 3033|   
# 3034|->                 if (dns_transaction_key(dt)->class != key->class)
# 3035|                           continue;
# 3036|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1228]
systemd-258/src/resolve/resolved-dns-transaction.c:3067:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:3053:12: enter_function: entry to ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3059:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3064:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3064:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_requires_nsec’
systemd-258/src/resolve/resolved-dns-transaction.c:3067:32: return_function: returning to ‘dns_transaction_requires_nsec’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3067:13: danger: dereference of NULL ‘dns_transaction_key(t)’
# 3065|                   return false;
# 3066|   
# 3067|->         if (dns_type_is_pseudo(dns_transaction_key(t)->type))
# 3068|                   return -EINVAL;
# 3069|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1229]
systemd-258/src/resolve/resolved-dns-transaction.c:3144:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:3118:12: enter_function: entry to ‘dns_transaction_dnskey_authenticated’
systemd-258/src/resolve/resolved-dns-transaction.c:3127:13: call_function: calling ‘dns_transaction_negative_trust_anchor_lookup’ from ‘dns_transaction_dnskey_authenticated’
systemd-258/src/resolve/resolved-dns-transaction.c:3127:13: return_function: returning to ‘dns_transaction_dnskey_authenticated’ from ‘dns_transaction_negative_trust_anchor_lookup’
systemd-258/src/resolve/resolved-dns-transaction.c:3128:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3130:12: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3130:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3133:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3133:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3137:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3139:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3139:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3142:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3142:17: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3144:29: branch_true: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3144:29: call_function: calling ‘dns_transaction_key’ from ‘dns_transaction_dnskey_authenticated’
systemd-258/src/resolve/resolved-dns-transaction.c:3144:29: return_function: returning to ‘dns_transaction_dnskey_authenticated’ from ‘dns_transaction_key’
systemd-258/src/resolve/resolved-dns-transaction.c:3144:29: danger: dereference of NULL ‘dns_transaction_key(dt)’
# 3142|                   SET_FOREACH(dt, t->dnssec_transactions) {
# 3143|   
# 3144|->                         if (dns_transaction_key(dt)->class != rr->key->class)
# 3145|                                   continue;
# 3146|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1230]
systemd-258/src/resolve/resolved-dns-transaction.c:3147:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:3279:12: enter_function: entry to ‘dnssec_validate_records’
systemd-258/src/resolve/resolved-dns-transaction.c:3289:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3293:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3293:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3330:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3332:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3336:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3369:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3412:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3480:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3480:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3489:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3493:29: call_function: calling ‘dns_transaction_dnskey_authenticated’ from ‘dnssec_validate_records’
# 3145|                                   continue;
# 3146|   
# 3147|->                         if (dns_transaction_key(dt)->type == DNS_TYPE_DNSKEY) {
# 3148|   
# 3149|                                   r = dns_name_equal(dns_resource_key_name(dns_transaction_key(dt)), rrsig->rrsig.signer);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1231]
systemd-258/src/resolve/resolved-dns-transaction.c:3163:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-dns-transaction.c:3279:12: enter_function: entry to ‘dnssec_validate_records’
systemd-258/src/resolve/resolved-dns-transaction.c:3289:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3293:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3293:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3330:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3332:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3336:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3369:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3412:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3480:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3480:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dns-transaction.c:3489:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dns-transaction.c:3493:29: call_function: calling ‘dns_transaction_dnskey_authenticated’ from ‘dnssec_validate_records’
# 3161|                                   found = true;
# 3162|   
# 3163|->                         } else if (dns_transaction_key(dt)->type == DNS_TYPE_DS) {
# 3164|   
# 3165|                                   r = dns_name_equal(dns_resource_key_name(dns_transaction_key(dt)), rrsig->rrsig.signer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1232]
systemd-258/src/resolve/resolved-dnssd.c:30:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_b’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:601:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:603:36: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:610:29: call_function: calling ‘dnssd_txt_item_new_from_data’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:610:29: return_function: returning to ‘config_parse_dnssd_txt’ from ‘dnssd_txt_item_new_from_data’
systemd-258/src/resolve/resolved-dnssd.c:611:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
 branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   28|                   return NULL;
#   29|   
#   30|->         dns_resource_record_unref(txt_data->rr);
#   31|           dns_txt_item_free_all(txt_data->txts);
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1233]
systemd-258/src/resolve/resolved-dnssd.c:30:9: warning[-Wanalyzer-malloc-leak]: leak of ‘last’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:601:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:603:36: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:610:29: call_function: calling ‘dnssd_txt_item_new_from_data’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:610:29: return_function: returning to ‘config_parse_dnssd_txt’ from ‘dnssd_txt_item_new_from_data’
systemd-258/src/resolve/resolved-dnssd.c:611:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
 branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   28|                   return NULL;
#   29|   
#   30|->         dns_resource_record_unref(txt_data->rr);
#   31|           dns_txt_item_free_all(txt_data->txts);
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1234]
systemd-258/src/resolve/resolved-dnssd.c:30:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   28|                   return NULL;
#   29|   
#   30|->         dns_resource_record_unref(txt_data->rr);
#   31|           dns_txt_item_free_all(txt_data->txts);
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1235]
systemd-258/src/resolve/resolved-dnssd.c:30:9: warning[-Wanalyzer-malloc-leak]: leak of ‘txt_data’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:563:20: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
 branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   28|                   return NULL;
#   29|   
#   30|->         dns_resource_record_unref(txt_data->rr);
#   31|           dns_txt_item_free_all(txt_data->txts);
#   32|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1236]
systemd-258/src/resolve/resolved-dnssd.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_b’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:601:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:603:36: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:610:29: call_function: calling ‘dnssd_txt_item_new_from_data’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:610:29: return_function: returning to ‘config_parse_dnssd_txt’ from ‘dnssd_txt_item_new_from_data’
systemd-258/src/resolve/resolved-dnssd.c:611:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
 branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   29|   
#   30|           dns_resource_record_unref(txt_data->rr);
#   31|->         dns_txt_item_free_all(txt_data->txts);
#   32|   
#   33|           return mfree(txt_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1237]
systemd-258/src/resolve/resolved-dnssd.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘last’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:601:36: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:603:36: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:610:29: call_function: calling ‘dnssd_txt_item_new_from_data’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:610:29: return_function: returning to ‘config_parse_dnssd_txt’ from ‘dnssd_txt_item_new_from_data’
systemd-258/src/resolve/resolved-dnssd.c:611:28: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: following ‘true’ branch (when ‘last’ is NULL)...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:625:17: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
 branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   29|   
#   30|           dns_resource_record_unref(txt_data->rr);
#   31|->         dns_txt_item_free_all(txt_data->txts);
#   32|   
#   33|           return mfree(txt_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1238]
systemd-258/src/resolve/resolved-dnssd.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   29|   
#   30|           dns_resource_record_unref(txt_data->rr);
#   31|->         dns_txt_item_free_all(txt_data->txts);
#   32|   
#   33|           return mfree(txt_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1239]
systemd-258/src/resolve/resolved-dnssd.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘txt_data’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:563:20: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
 branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#   29|   
#   30|           dns_resource_record_unref(txt_data->rr);
#   31|->         dns_txt_item_free_all(txt_data->txts);
#   32|   
#   33|           return mfree(txt_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1240]
systemd-258/src/resolve/resolved-dnssd.c:56:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   54|                   hashmap_remove(service->manager->dnssd_registered_services, service->id);
#   55|   
#   56|->         dns_resource_record_unref(service->ptr_rr);
#   57|           dns_resource_record_unref(service->sub_ptr_rr);
#   58|           dns_resource_record_unref(service->srv_rr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1241]
systemd-258/src/resolve/resolved-dnssd.c:57:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   55|   
#   56|           dns_resource_record_unref(service->ptr_rr);
#   57|->         dns_resource_record_unref(service->sub_ptr_rr);
#   58|           dns_resource_record_unref(service->srv_rr);
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1242]
systemd-258/src/resolve/resolved-dnssd.c:58:9: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258/src/resolve/resolved-dnssd.c:102:12: enter_function: entry to ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:108:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:109:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:111:19: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:111:19: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:112:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:115:25: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:116:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:119:13: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:119:13: call_function: calling ‘dnssd_id_from_path’ from ‘dnssd_registered_service_load’
systemd-258/src/resolve/resolved-dnssd.c:119:13: return_function: returning to ‘dnssd_registered_service_load’ from ‘dnssd_id_from_path’
systemd-258/src/resolve/resolved-dnssd.c:120:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:123:26: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:104:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘dnssd_registered_service_load’
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:103:75: call_function: inlined call to ‘dnssd_registered_service_freep’ from ‘dnssd_registered_service_load’
#   56|           dns_resource_record_unref(service->ptr_rr);
#   57|           dns_resource_record_unref(service->sub_ptr_rr);
#   58|->         dns_resource_record_unref(service->srv_rr);
#   59|   
#   60|           dnssd_txtdata_free_all(service->txt_data_items);

Error: CPPCHECK_WARNING (CWE-401): [#def1243]
systemd-258/src/resolve/resolved-dnssd.c:353: error[memleak]: Memory leak: i
#  351|           *ret_item = TAKE_PTR(i);
#  352|   
#  353|->         return 0;
#  354|   }
#  355|   

Error: CPPCHECK_WARNING (CWE-401): [#def1244]
systemd-258/src/resolve/resolved-dnssd.c:378: error[memleak]: Memory leak: i
#  376|           *ret_item = TAKE_PTR(i);
#  377|   
#  378|->         return 0;
#  379|   }
#  380|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1245]
systemd-258/src/resolve/resolved-dnssd.c:585:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 32)’
systemd-258/src/resolve/resolved-dnssd.c:537:5: enter_function: entry to ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:550:37: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:557:13: call_function: inlined call to ‘isempty’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:563:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:563:20: acquire_memory: allocated here
systemd-258/src/resolve/resolved-dnssd.c:564:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:576:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:578:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:580:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:585:21: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:586:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-dnssd.c:588:20: branch_false: ...to here
systemd-258/src/resolve/resolved-dnssd.c:599:28: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-dnssd.c:600:37: call_function: inlined call to ‘unbase64mem’ from ‘config_parse_dnssd_txt’
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
 branch_true: ...to here
systemd-258/src/resolve/resolved-dnssd.c:549:54: call_function: inlined call to ‘dnssd_txtdata_freep’ from ‘config_parse_dnssd_txt’
#  583|                   }
#  584|   
#  585|->                 r = split_pair(word, "=", &key, &value);
#  586|                   if (r == -ENOMEM)
#  587|                           return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1246]
systemd-258/src/resolve/resolved-etc-hosts.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(40)’
systemd-258/src/resolve/resolved-etc-hosts.c:337:12: enter_function: entry to ‘manager_etc_hosts_read’
systemd-258/src/resolve/resolved-etc-hosts.c:343:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:346:13: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:366:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:376:13: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:377:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/resolve/resolved-etc-hosts.c:380:13: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:380:13: call_function: calling ‘etc_hosts_parse’ from ‘manager_etc_hosts_read’
#   29|                   return NULL;
#   30|   
#   31|->         set_free(item->names);
#   32|           return mfree(item);
#   33|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1247]
systemd-258/src/resolve/resolved-etc-hosts.c:524:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
systemd-258/src/resolve/resolved-etc-hosts.c:506:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:507:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:507:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:508:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:508:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:509:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:509:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:511:16: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:514:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:523:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:523:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:524:22: danger: dereference of NULL ‘t’
#  522|           /* Determine whether we are looking for A and/or AAAA RRs */
#  523|           DNS_QUESTION_FOREACH(t, q) {
#  524|->                 if (!IN_SET(t->type, DNS_TYPE_A, DNS_TYPE_AAAA, DNS_TYPE_ANY))
#  525|                           continue;
#  526|                   if (!IN_SET(t->class, DNS_CLASS_IN, DNS_CLASS_ANY))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1248]
systemd-258/src/resolve/resolved-etc-hosts.c:556:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_hashmap_get(*hosts.by_name,  name)’
systemd-258/src/resolve/resolved-etc-hosts.c:494:12: enter_function: entry to ‘etc_hosts_lookup_by_name’
systemd-258/src/resolve/resolved-etc-hosts.c:506:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:507:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:507:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:508:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:508:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:509:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:509:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:511:16: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:518:20: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:523:9: branch_true: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:523:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:544:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:544:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:544:9: call_function: inlined call to ‘set_iterate’ from ‘etc_hosts_lookup_by_name’
systemd-258/src/resolve/resolved-etc-hosts.c:544:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:548:20: branch_true: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:556:25: danger: dereference of NULL ‘_hashmap_get(*hosts.by_name,  name)’
#  554|                           canonical_name = item_by_addr->canonical_name;
#  555|                   else
#  556|->                         canonical_name = item->name;
#  557|   
#  558|                   if (!streq(item->name, canonical_name)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1249]
systemd-258/src/resolve/resolved-etc-hosts.c:558:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘_hashmap_get(*hosts.by_name,  name)’
systemd-258/src/resolve/resolved-etc-hosts.c:494:12: enter_function: entry to ‘etc_hosts_lookup_by_name’
systemd-258/src/resolve/resolved-etc-hosts.c:506:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:507:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:507:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:508:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:508:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:509:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:509:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:511:16: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:518:20: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:523:9: branch_true: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:523:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:544:9: branch_false: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:544:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:544:9: call_function: inlined call to ‘set_iterate’ from ‘etc_hosts_lookup_by_name’
systemd-258/src/resolve/resolved-etc-hosts.c:544:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:548:20: branch_true: ...to here
systemd-258/src/resolve/resolved-etc-hosts.c:553:20: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-etc-hosts.c:558:22: danger: dereference of NULL ‘_hashmap_get(*hosts.by_name,  name)’
#  556|                           canonical_name = item->name;
#  557|   
#  558|->                 if (!streq(item->name, canonical_name)) {
#  559|                           r = answer_add_cname(*answer, item->name, canonical_name);
#  560|                           if (r < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1250]
systemd-258/src/resolve/resolved-llmnr.c:116:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-llmnr.c:92:12: enter_function: entry to ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:95:22: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:99:9: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:99:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:100:9: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:102:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:103:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:106:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:106:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:109:17: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:109:17: call_function: calling ‘manager_find_scope’ from ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:109:17: return_function: returning to ‘on_llmnr_packet’ from ‘manager_find_scope’
systemd-258/src/resolve/resolved-llmnr.c:110:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:115:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:115:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-llmnr.c:116:17: branch_true: ...to here
systemd-258/src/resolve/resolved-llmnr.c:116:17: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-llmnr.c:116:17: branch_true: ...to here
systemd-258/src/resolve/resolved-llmnr.c:116:17: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:116:17: branch_true: ...to here
systemd-258/src/resolve/resolved-llmnr.c:116:17: danger: dereference of NULL ‘<unknown>’
#  114|   
#  115|           if (dns_packet_validate_reply(p) > 0) {
#  116|->                 log_debug("Got LLMNR UDP reply packet for id %u", DNS_PACKET_ID(p));
#  117|   
#  118|                   dns_scope_check_conflicts(scope, p);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1251]
systemd-258/src/resolve/resolved-llmnr.c:120:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-llmnr.c:92:12: enter_function: entry to ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:95:22: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:99:9: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:99:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:100:9: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:102:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:103:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:106:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:106:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:109:17: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:109:17: call_function: calling ‘manager_find_scope’ from ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:109:17: return_function: returning to ‘on_llmnr_packet’ from ‘manager_find_scope’
systemd-258/src/resolve/resolved-llmnr.c:110:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:115:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:115:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-llmnr.c:116:17: branch_true: ...to here
systemd-258/src/resolve/resolved-llmnr.c:120:54: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:120:54: branch_true: ...to here
systemd-258/src/resolve/resolved-llmnr.c:120:54: danger: dereference of NULL ‘<unknown>’
#  118|                   dns_scope_check_conflicts(scope, p);
#  119|   
#  120|->                 t = hashmap_get(m->dns_transactions, UINT_TO_PTR(DNS_PACKET_ID(p)));
#  121|                   if (t)
#  122|                           dns_transaction_process_reply(t, p, false);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1252]
systemd-258/src/resolve/resolved-llmnr.c:125:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-llmnr.c:92:12: enter_function: entry to ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:95:22: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:99:9: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:99:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:100:9: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:100:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:102:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:103:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:106:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:106:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:109:17: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:109:17: call_function: calling ‘manager_find_scope’ from ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:109:17: return_function: returning to ‘on_llmnr_packet’ from ‘manager_find_scope’
systemd-258/src/resolve/resolved-llmnr.c:110:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:115:13: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:115:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-llmnr.c:124:20: branch_false: ...to here
systemd-258/src/resolve/resolved-llmnr.c:124:19: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-llmnr.c:125:17: branch_true: ...to here
systemd-258/src/resolve/resolved-llmnr.c:125:17: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-llmnr.c:125:17: branch_true: ...to here
systemd-258/src/resolve/resolved-llmnr.c:125:17: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘on_llmnr_packet’
systemd-258/src/resolve/resolved-llmnr.c:125:17: branch_true: ...to here
systemd-258/src/resolve/resolved-llmnr.c:125:17: danger: dereference of NULL ‘<unknown>’
#  123|   
#  124|           } else if (dns_packet_validate_query(p) > 0)  {
#  125|->                 log_debug("Got LLMNR UDP query packet for id %u", DNS_PACKET_ID(p));
#  126|   
#  127|                   dns_scope_process_query(scope, NULL, p);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1253]
systemd-258/src/resolve/resolved-manager.c:955:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
systemd-258/src/resolve/resolved-manager.c:924:5: enter_function: entry to ‘manager_recv’
systemd-258/src/resolve/resolved-manager.c:943:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-manager.c:944:9: branch_false: ...to here
systemd-258/src/resolve/resolved-manager.c:944:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-manager.c:945:9: branch_false: ...to here
systemd-258/src/resolve/resolved-manager.c:945:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-manager.c:947:14: branch_false: ...to here
systemd-258/src/resolve/resolved-manager.c:948:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-manager.c:951:13: branch_false: ...to here
systemd-258/src/resolve/resolved-manager.c:952:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-manager.c:955:15: branch_false: ...to here
systemd-258/src/resolve/resolved-manager.c:955:15: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘manager_recv’
systemd-258/src/resolve/resolved-manager.c:955:15: branch_true: ...to here
systemd-258/src/resolve/resolved-manager.c:955:15: danger: dereference of NULL ‘p’
#  953|                   return r;
#  954|   
#  955|->         iov = IOVEC_MAKE(DNS_PACKET_DATA(p), p->allocated);
#  956|   
#  957|           l = recvmsg_safe(fd, &mh, 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1254]
systemd-258/src/resolve/resolved-mdns.c:232:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
systemd-258/src/resolve/resolved-mdns.c:209:13: enter_function: entry to ‘mdns_should_reply_using_unicast’
systemd-258/src/resolve/resolved-mdns.c:215:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:219:17: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:225:20: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:227:17: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_isempty’ from ‘mdns_should_reply_using_unicast’
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:232:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:232:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:232:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:232:20: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:231:9: call_function: inlined call to ‘dns_question_size’ from ‘mdns_should_reply_using_unicast’
systemd-258/src/resolve/resolved-mdns.c:231:9: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:232:22: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:232:22: danger: dereference of NULL ‘item’
#  230|           /* All the questions in the query had a QU bit set, RFC 6762, section 5.4 */
#  231|           DNS_QUESTION_FOREACH_ITEM(item, p->question)
#  232|->                 if (!FLAGS_SET(item->flags, DNS_QUESTION_WANTS_UNICAST_REPLY))
#  233|                           return false;
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1255]
systemd-258/src/resolve/resolved-mdns.c:540:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/resolved-mdns.c:405:12: enter_function: entry to ‘on_mdns_packet’
systemd-258/src/resolve/resolved-mdns.c:413:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:419:14: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:424:17: call_function: calling ‘manager_find_scope’ from ‘on_mdns_packet’
systemd-258/src/resolve/resolved-mdns.c:424:17: return_function: returning to ‘on_mdns_packet’ from ‘manager_find_scope’
systemd-258/src/resolve/resolved-mdns.c:425:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:430:13: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:430:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-mdns.c:539:20: branch_false: ...to here
systemd-258/src/resolve/resolved-mdns.c:539:19: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:540:17: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:540:17: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-mdns.c:540:17: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:540:17: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘on_mdns_packet’
systemd-258/src/resolve/resolved-mdns.c:540:17: branch_true: ...to here
systemd-258/src/resolve/resolved-mdns.c:540:17: danger: dereference of NULL ‘<unknown>’
#  538|                           mdns_notify_browsers_unsolicited_updates(m, p->answer, p->family);
#  539|           } else if (dns_packet_validate_query(p) > 0)  {
#  540|->                 log_debug("Got mDNS query packet for id %u", DNS_PACKET_ID(p));
#  541|   
#  542|                   r = mdns_scope_process_query(scope, p);

Error: CPPCHECK_WARNING (CWE-457): [#def1256]
systemd-258/src/resolve/resolved-varlink.c:430: error[uninitvar]: Uninitialized variable: i
#  428|                   int64_t b;
#  429|   
#  430|->                 if (!sd_json_variant_is_integer(i))
#  431|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "Element %zu of JSON field '%s' is not an integer.", k, strna(name));
#  432|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1257]
systemd-258/src/resolve/test-dns-cache.c:1107:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
systemd-258/src/resolve/test-dns-cache.c:1043:1: enter_function: entry to ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258/src/resolve/test-dns-cache.c:1045:55: call_function: calling ‘mk_put_args’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258/src/resolve/test-dns-cache.c:1045:55: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘mk_put_args’
systemd-258/src/resolve/test-dns-cache.c:1053:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-cache.c:1054:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-cache.c:1054:9: call_function: calling ‘answer_add_a’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258/src/resolve/test-dns-cache.c:1054:9: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘answer_add_a’
systemd-258/src/resolve/test-dns-cache.c:1058:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-cache.c:1059:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-cache.c:1059:9: call_function: calling ‘answer_add_a’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258/src/resolve/test-dns-cache.c:1059:9: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘answer_add_a’
systemd-258/src/resolve/test-dns-cache.c:1063:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-cache.c:1064:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-cache.c:1064:9: call_function: calling ‘answer_add_a’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258/src/resolve/test-dns-cache.c:1064:9: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘answer_add_a’
systemd-258/src/resolve/test-dns-cache.c:1067:9: call_function: calling ‘cache_put’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258/src/resolve/test-dns-cache.c:1067:9: return_function: returning to ‘test_dns_cache_export_shared_to_packet_multi’ from ‘cache_put’
systemd-258/src/resolve/test-dns-cache.c:1070:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-cache.c:1071:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-cache.c:1071:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-cache.c:1073:23: branch_false: ...to here
systemd-258/src/resolve/test-dns-cache.c:1107:20: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_dns_cache_export_shared_to_packet_multi’
systemd-258/src/resolve/test-dns-cache.c:1107:13: branch_true: ...to here
systemd-258/src/resolve/test-dns-cache.c:1107:13: danger: argument 1 (‘<unknown>’) NULL where non-null expected
# 1105|           /* cache key order is not deterministic; the packets could come out in either order */
# 1106|   
# 1107|->         if (memcmp(DNS_PACKET_DATA(packet), data1, size1) == 0) {
# 1108|                   ASSERT_EQ(packet->size, size1);
# 1109|                   ASSERT_EQ(memcmp(DNS_PACKET_DATA(packet), data1, size1), 0);

Error: CPPCHECK_WARNING (CWE-457): [#def1258]
systemd-258/src/resolve/test-dns-cache.c:1144: warning[uninitvar]: Uninitialized variable: actual
# 1142|           }
# 1143|   
# 1144|->         qsort(actual, n, sizeof(char *), cmpstring);
# 1145|   
# 1146|           for (size_t i = 0; i < n; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1259]
systemd-258/src/resolve/test-dns-packet-append.c:32:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:25:1: enter_function: entry to ‘test_packet_set_flags_dns_checking_enabled’
systemd-258/src/resolve/test-dns-packet-append.c:28:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:29:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:29:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:30:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:32:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_dns_checking_enabled’
systemd-258/src/resolve/test-dns-packet-append.c:32:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:32:9: danger: dereference of NULL ‘<unknown>’
#   30|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ false, /* truncated= */ false);
#   31|   
#   32|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#   33|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#   34|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1260]
systemd-258/src/resolve/test-dns-packet-append.c:51:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:44:1: enter_function: entry to ‘test_packet_set_flags_dns_checking_disabled’
systemd-258/src/resolve/test-dns-packet-append.c:47:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:48:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:48:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:49:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:51:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_dns_checking_disabled’
systemd-258/src/resolve/test-dns-packet-append.c:51:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:51:9: danger: dereference of NULL ‘<unknown>’
#   49|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ true, /* truncated= */ false);
#   50|   
#   51|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#   52|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#   53|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1261]
systemd-258/src/resolve/test-dns-packet-append.c:70:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:63:1: enter_function: entry to ‘test_packet_set_flags_llmnr’
systemd-258/src/resolve/test-dns-packet-append.c:66:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:67:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:67:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:68:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:70:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_llmnr’
systemd-258/src/resolve/test-dns-packet-append.c:70:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:70:9: danger: dereference of NULL ‘<unknown>’
#   68|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ true, /* truncated= */ false);
#   69|   
#   70|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#   71|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#   72|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1262]
systemd-258/src/resolve/test-dns-packet-append.c:89:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:82:1: enter_function: entry to ‘test_packet_set_flags_mdns_not_truncated’
systemd-258/src/resolve/test-dns-packet-append.c:85:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:86:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:86:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:87:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:89:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_mdns_not_truncated’
systemd-258/src/resolve/test-dns-packet-append.c:89:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:89:9: danger: dereference of NULL ‘<unknown>’
#   87|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ true, /* truncated= */ false);
#   88|   
#   89|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#   90|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#   91|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1263]
systemd-258/src/resolve/test-dns-packet-append.c:108:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:101:1: enter_function: entry to ‘test_packet_set_flags_mdns_truncated’
systemd-258/src/resolve/test-dns-packet-append.c:104:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:105:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:105:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:106:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:108:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_set_flags_mdns_truncated’
systemd-258/src/resolve/test-dns-packet-append.c:108:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:108:9: danger: dereference of NULL ‘<unknown>’
#  106|           dns_packet_set_flags(packet, /* dnssec_checking_disabled= */ true, /* truncated= */ true);
#  107|   
#  108|->         ASSERT_EQ(DNS_PACKET_QR(packet), 0);
#  109|           ASSERT_EQ(DNS_PACKET_OPCODE(packet), 0);
#  110|           ASSERT_EQ(DNS_PACKET_AA(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1264]
systemd-258/src/resolve/test-dns-packet-append.c:156:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:148:1: enter_function: entry to ‘test_packet_append_key_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:152:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:153:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:153:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:155:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:156:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:156:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:156:9: danger: dereference of NULL ‘<unknown>’
#  154|   
#  155|           DNS_PACKET_ID(packet) = htobe16(42);
#  156|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  157|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  158|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1265]
systemd-258/src/resolve/test-dns-packet-append.c:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:148:1: enter_function: entry to ‘test_packet_append_key_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:152:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:153:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:153:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:155:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:156:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:157:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:157:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:157:9: danger: dereference of NULL ‘<unknown>’
#  155|           DNS_PACKET_ID(packet) = htobe16(42);
#  156|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  157|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  158|   
#  159|           key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, "www.example.com");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1266]
systemd-258/src/resolve/test-dns-packet-append.c:188:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:180:1: enter_function: entry to ‘test_packet_append_key_single_soa_any_class’
systemd-258/src/resolve/test-dns-packet-append.c:184:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:185:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:185:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:187:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258/src/resolve/test-dns-packet-append.c:188:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258/src/resolve/test-dns-packet-append.c:188:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:188:9: danger: dereference of NULL ‘<unknown>’
#  186|   
#  187|           DNS_PACKET_ID(packet) = htobe16(42);
#  188|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  189|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  190|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1267]
systemd-258/src/resolve/test-dns-packet-append.c:189:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:180:1: enter_function: entry to ‘test_packet_append_key_single_soa_any_class’
systemd-258/src/resolve/test-dns-packet-append.c:184:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:185:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:185:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:187:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258/src/resolve/test-dns-packet-append.c:188:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258/src/resolve/test-dns-packet-append.c:189:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_single_soa_any_class’
systemd-258/src/resolve/test-dns-packet-append.c:189:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:189:9: danger: dereference of NULL ‘<unknown>’
#  187|           DNS_PACKET_ID(packet) = htobe16(42);
#  188|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  189|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  190|   
#  191|           key = dns_resource_key_new(DNS_CLASS_ANY, DNS_TYPE_SOA, "www.example.com");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1268]
systemd-258/src/resolve/test-dns-packet-append.c:243:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:216:1: enter_function: entry to ‘test_packet_append_question_compression’
systemd-258/src/resolve/test-dns-packet-append.c:222:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:224:15: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:225:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:226:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:227:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:231:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:232:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:236:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:237:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:240:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:240:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:242:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258/src/resolve/test-dns-packet-append.c:243:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258/src/resolve/test-dns-packet-append.c:243:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:243:9: danger: dereference of NULL ‘<unknown>’
#  241|   
#  242|           DNS_PACKET_ID(packet) = htobe16(42);
#  243|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  244|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(dns_question_size(question));
#  245|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1269]
systemd-258/src/resolve/test-dns-packet-append.c:244:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:216:1: enter_function: entry to ‘test_packet_append_question_compression’
systemd-258/src/resolve/test-dns-packet-append.c:222:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:224:15: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:225:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:226:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:227:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:230:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:231:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:232:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:236:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:237:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:240:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:240:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:242:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258/src/resolve/test-dns-packet-append.c:243:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258/src/resolve/test-dns-packet-append.c:244:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_question_compression’
systemd-258/src/resolve/test-dns-packet-append.c:244:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_question_compression’
systemd-258/src/resolve/test-dns-packet-append.c:244:9: danger: dereference of NULL ‘<unknown>’
#  242|           DNS_PACKET_ID(packet) = htobe16(42);
#  243|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  244|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(dns_question_size(question));
#  245|   
#  246|           ASSERT_OK(dns_packet_append_question(packet, question));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1270]
systemd-258/src/resolve/test-dns-packet-append.c:285:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:278:1: enter_function: entry to ‘test_packet_append_opt_basic’
systemd-258/src/resolve/test-dns-packet-append.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:282:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:282:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:284:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_basic’
systemd-258/src/resolve/test-dns-packet-append.c:285:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_basic’
systemd-258/src/resolve/test-dns-packet-append.c:285:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:285:9: danger: dereference of NULL ‘<unknown>’
#  283|   
#  284|           DNS_PACKET_ID(packet) = htobe16(42);
#  285|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  286|   
#  287|           ASSERT_OK(dns_packet_append_opt(packet, 512, false, false, NULL, 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1271]
systemd-258/src/resolve/test-dns-packet-append.c:313:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:306:1: enter_function: entry to ‘test_packet_append_opt_change_max_udp’
systemd-258/src/resolve/test-dns-packet-append.c:309:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:310:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:310:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:312:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_change_max_udp’
systemd-258/src/resolve/test-dns-packet-append.c:313:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_change_max_udp’
systemd-258/src/resolve/test-dns-packet-append.c:313:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:313:9: danger: dereference of NULL ‘<unknown>’
#  311|   
#  312|           DNS_PACKET_ID(packet) = htobe16(42);
#  313|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  314|   
#  315|           ASSERT_OK(dns_packet_append_opt(packet, 4100, false, false, NULL, 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1272]
systemd-258/src/resolve/test-dns-packet-append.c:341:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:334:1: enter_function: entry to ‘test_packet_append_opt_dnssec_ok’
systemd-258/src/resolve/test-dns-packet-append.c:337:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:338:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:338:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:340:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_dnssec_ok’
systemd-258/src/resolve/test-dns-packet-append.c:341:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_dnssec_ok’
systemd-258/src/resolve/test-dns-packet-append.c:341:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:341:9: danger: dereference of NULL ‘<unknown>’
#  339|   
#  340|           DNS_PACKET_ID(packet) = htobe16(42);
#  341|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  342|   
#  343|           ASSERT_OK(dns_packet_append_opt(packet, 512, true, false, NULL, 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1273]
systemd-258/src/resolve/test-dns-packet-append.c:369:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:362:1: enter_function: entry to ‘test_packet_append_opt_rcode’
systemd-258/src/resolve/test-dns-packet-append.c:365:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:366:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:366:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:368:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_rcode’
systemd-258/src/resolve/test-dns-packet-append.c:369:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_rcode’
systemd-258/src/resolve/test-dns-packet-append.c:369:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:369:9: danger: dereference of NULL ‘<unknown>’
#  367|   
#  368|           DNS_PACKET_ID(packet) = htobe16(42);
#  369|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  370|   
#  371|           ASSERT_OK(dns_packet_append_opt(packet, 512, false, false, NULL, 0x97a, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1274]
systemd-258/src/resolve/test-dns-packet-append.c:397:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:390:1: enter_function: entry to ‘test_packet_append_opt_nsid’
systemd-258/src/resolve/test-dns-packet-append.c:393:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:394:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:394:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:396:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_nsid’
systemd-258/src/resolve/test-dns-packet-append.c:397:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_opt_nsid’
systemd-258/src/resolve/test-dns-packet-append.c:397:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:397:9: danger: dereference of NULL ‘<unknown>’
#  395|   
#  396|           DNS_PACKET_ID(packet) = htobe16(42);
#  397|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  398|   
#  399|           ASSERT_OK(dns_packet_append_opt(packet, 512, false, false, "nsid.example.com", 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1275]
systemd-258/src/resolve/test-dns-packet-append.c:430:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:422:1: enter_function: entry to ‘test_packet_append_key_and_opt’
systemd-258/src/resolve/test-dns-packet-append.c:426:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:427:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:427:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:429:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258/src/resolve/test-dns-packet-append.c:430:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258/src/resolve/test-dns-packet-append.c:430:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:430:9: danger: dereference of NULL ‘<unknown>’
#  428|   
#  429|           DNS_PACKET_ID(packet) = htobe16(42);
#  430|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  431|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  432|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1276]
systemd-258/src/resolve/test-dns-packet-append.c:431:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:422:1: enter_function: entry to ‘test_packet_append_key_and_opt’
systemd-258/src/resolve/test-dns-packet-append.c:426:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:427:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:427:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:429:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258/src/resolve/test-dns-packet-append.c:430:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258/src/resolve/test-dns-packet-append.c:431:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_and_opt’
systemd-258/src/resolve/test-dns-packet-append.c:431:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:431:9: danger: dereference of NULL ‘<unknown>’
#  429|           DNS_PACKET_ID(packet) = htobe16(42);
#  430|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  431|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  432|   
#  433|           key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, "example.com");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1277]
systemd-258/src/resolve/test-dns-packet-append.c:470:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:462:1: enter_function: entry to ‘test_packet_truncate_opt’
systemd-258/src/resolve/test-dns-packet-append.c:466:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:467:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:467:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:469:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258/src/resolve/test-dns-packet-append.c:470:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258/src/resolve/test-dns-packet-append.c:470:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:470:9: danger: dereference of NULL ‘<unknown>’
#  468|   
#  469|           DNS_PACKET_ID(packet) = htobe16(42);
#  470|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  471|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  472|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1278]
systemd-258/src/resolve/test-dns-packet-append.c:471:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:462:1: enter_function: entry to ‘test_packet_truncate_opt’
systemd-258/src/resolve/test-dns-packet-append.c:466:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:467:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:467:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:469:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258/src/resolve/test-dns-packet-append.c:470:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258/src/resolve/test-dns-packet-append.c:471:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_truncate_opt’
systemd-258/src/resolve/test-dns-packet-append.c:471:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:471:9: danger: dereference of NULL ‘<unknown>’
#  469|           DNS_PACKET_ID(packet) = htobe16(42);
#  470|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  471|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
#  472|   
#  473|           key = dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, "example.com");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1279]
systemd-258/src/resolve/test-dns-packet-append.c:507:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:500:1: enter_function: entry to ‘test_packet_patch_max_udp_size’
systemd-258/src/resolve/test-dns-packet-append.c:503:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:504:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:504:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:506:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_patch_max_udp_size’
systemd-258/src/resolve/test-dns-packet-append.c:507:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_patch_max_udp_size’
systemd-258/src/resolve/test-dns-packet-append.c:507:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:507:9: danger: dereference of NULL ‘<unknown>’
#  505|   
#  506|           DNS_PACKET_ID(packet) = htobe16(42);
#  507|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  508|   
#  509|           ASSERT_OK(dns_packet_append_opt(packet, 512, false, false, NULL, 0, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1280]
systemd-258/src/resolve/test-dns-packet-append.c:537:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:530:1: enter_function: entry to ‘test_packet_patch_max_udp_size_no_opt’
systemd-258/src/resolve/test-dns-packet-append.c:533:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:534:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:534:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:536:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_patch_max_udp_size_no_opt’
systemd-258/src/resolve/test-dns-packet-append.c:537:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_patch_max_udp_size_no_opt’
systemd-258/src/resolve/test-dns-packet-append.c:537:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:537:9: danger: dereference of NULL ‘<unknown>’
#  535|   
#  536|           DNS_PACKET_ID(packet) = htobe16(42);
#  537|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, DNS_RCODE_SUCCESS));
#  538|   
#  539|           ASSERT_FALSE(dns_packet_patch_max_udp_size(packet, 4097));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1281]
systemd-258/src/resolve/test-dns-packet-append.c:573:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:554:1: enter_function: entry to ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:560:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:561:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:565:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:566:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:569:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:570:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:570:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:572:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:573:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:573:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:573:9: danger: dereference of NULL ‘<unknown>’
#  571|   
#  572|           DNS_PACKET_ID(p1) = htobe16(42);
#  573|->         DNS_PACKET_HEADER(p1)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  574|           DNS_PACKET_HEADER(p1)->ancount = htobe16(dns_answer_size(answer));
#  575|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1282]
systemd-258/src/resolve/test-dns-packet-append.c:574:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:554:1: enter_function: entry to ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:560:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:561:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:565:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:566:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:569:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:570:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:570:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:572:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:573:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:574:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:574:42: call_function: inlined call to ‘htobe16’ from ‘test_packet_dup’
systemd-258/src/resolve/test-dns-packet-append.c:574:9: danger: dereference of NULL ‘<unknown>’
#  572|           DNS_PACKET_ID(p1) = htobe16(42);
#  573|           DNS_PACKET_HEADER(p1)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  574|->         DNS_PACKET_HEADER(p1)->ancount = htobe16(dns_answer_size(answer));
#  575|   
#  576|           ASSERT_OK(dns_packet_append_answer(p1, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1283]
systemd-258/src/resolve/test-dns-packet-append.c:622:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:603:1: enter_function: entry to ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:609:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:610:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:614:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:615:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:618:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:619:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:619:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:621:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:622:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:622:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:622:9: danger: dereference of NULL ‘<unknown>’
#  620|   
#  621|           DNS_PACKET_ID(packet) = htobe16(42);
#  622|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  623|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  624|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1284]
systemd-258/src/resolve/test-dns-packet-append.c:623:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:603:1: enter_function: entry to ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:609:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:610:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:614:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:615:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:618:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:619:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:619:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:621:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:622:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:623:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:623:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_a’
systemd-258/src/resolve/test-dns-packet-append.c:623:9: danger: dereference of NULL ‘<unknown>’
#  621|           DNS_PACKET_ID(packet) = htobe16(42);
#  622|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  623|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  624|   
#  625|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1285]
systemd-258/src/resolve/test-dns-packet-append.c:664:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:645:1: enter_function: entry to ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:651:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:652:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:656:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:657:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:660:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:661:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:661:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:663:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:664:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:664:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:664:9: danger: dereference of NULL ‘<unknown>’
#  662|   
#  663|           DNS_PACKET_ID(packet) = htobe16(42);
#  664|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  665|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  666|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1286]
systemd-258/src/resolve/test-dns-packet-append.c:665:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:645:1: enter_function: entry to ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:651:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:652:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:656:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:657:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:660:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:661:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:661:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:663:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:664:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:665:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:665:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_ns’
systemd-258/src/resolve/test-dns-packet-append.c:665:9: danger: dereference of NULL ‘<unknown>’
#  663|           DNS_PACKET_ID(packet) = htobe16(42);
#  664|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  665|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  666|   
#  667|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1287]
systemd-258/src/resolve/test-dns-packet-append.c:707:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:688:1: enter_function: entry to ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:694:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:695:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:699:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:700:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:703:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:704:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:704:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:706:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:707:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:707:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:707:9: danger: dereference of NULL ‘<unknown>’
#  705|   
#  706|           DNS_PACKET_ID(packet) = htobe16(42);
#  707|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  708|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  709|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1288]
systemd-258/src/resolve/test-dns-packet-append.c:708:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:688:1: enter_function: entry to ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:694:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:695:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:699:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:700:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:703:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:704:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:704:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:706:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:707:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:708:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:708:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_cname’
systemd-258/src/resolve/test-dns-packet-append.c:708:9: danger: dereference of NULL ‘<unknown>’
#  706|           DNS_PACKET_ID(packet) = htobe16(42);
#  707|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  708|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  709|   
#  710|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1289]
systemd-258/src/resolve/test-dns-packet-append.c:751:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:731:1: enter_function: entry to ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:737:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:738:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:743:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:744:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:747:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:748:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:748:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:750:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:751:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:751:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:751:9: danger: dereference of NULL ‘<unknown>’
#  749|   
#  750|           DNS_PACKET_ID(packet) = htobe16(42);
#  751|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  752|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  753|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1290]
systemd-258/src/resolve/test-dns-packet-append.c:752:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:731:1: enter_function: entry to ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:737:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:738:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:743:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:744:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:747:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:748:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:748:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:750:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:751:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:752:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:752:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_hinfo’
systemd-258/src/resolve/test-dns-packet-append.c:752:9: danger: dereference of NULL ‘<unknown>’
#  750|           DNS_PACKET_ID(packet) = htobe16(42);
#  751|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  752|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  753|   
#  754|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1291]
systemd-258/src/resolve/test-dns-packet-append.c:794:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:775:1: enter_function: entry to ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:781:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:782:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:786:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:787:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:790:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:791:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:791:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:793:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:794:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:794:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:794:9: danger: dereference of NULL ‘<unknown>’
#  792|   
#  793|           DNS_PACKET_ID(packet) = htobe16(42);
#  794|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  795|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  796|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1292]
systemd-258/src/resolve/test-dns-packet-append.c:795:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:775:1: enter_function: entry to ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:781:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:782:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:786:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:787:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:790:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:791:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:791:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:793:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:794:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:795:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:795:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_ptr’
systemd-258/src/resolve/test-dns-packet-append.c:795:9: danger: dereference of NULL ‘<unknown>’
#  793|           DNS_PACKET_ID(packet) = htobe16(42);
#  794|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  795|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  796|   
#  797|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1293]
systemd-258/src/resolve/test-dns-packet-append.c:843:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:823:1: enter_function: entry to ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:829:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:830:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:836:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:840:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:840:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:842:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:843:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:843:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:843:9: danger: dereference of NULL ‘<unknown>’
#  841|   
#  842|           DNS_PACKET_ID(packet) = htobe16(42);
#  843|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  844|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  845|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1294]
systemd-258/src/resolve/test-dns-packet-append.c:844:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:823:1: enter_function: entry to ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:829:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:830:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:836:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:840:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:840:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:842:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:843:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:844:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:844:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_mx’
systemd-258/src/resolve/test-dns-packet-append.c:844:9: danger: dereference of NULL ‘<unknown>’
#  842|           DNS_PACKET_ID(packet) = htobe16(42);
#  843|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  844|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  845|   
#  846|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: CPPCHECK_WARNING (CWE-476): [#def1295]
systemd-258/src/resolve/test-dns-packet-append.c:880: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
#  878|           item = calloc(1, offsetof(DnsTxtItem, data) + 3);
#  879|           ASSERT_NOT_NULL(item);
#  880|->         item->length = 2;
#  881|           memcpy(item->data, "hi", 3);
#  882|           LIST_APPEND(items, rr->txt.items, item);

Error: CPPCHECK_WARNING (CWE-476): [#def1296]
systemd-258/src/resolve/test-dns-packet-append.c:881: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
#  879|           ASSERT_NOT_NULL(item);
#  880|           item->length = 2;
#  881|->         memcpy(item->data, "hi", 3);
#  882|           LIST_APPEND(items, rr->txt.items, item);
#  883|   

Error: CPPCHECK_WARNING (CWE-476): [#def1297]
systemd-258/src/resolve/test-dns-packet-append.c:886: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
#  884|           item = calloc(1, offsetof(DnsTxtItem, data) + 6);
#  885|           ASSERT_NOT_NULL(item);
#  886|->         item->length = 5;
#  887|           memcpy(item->data, "world", 6);
#  888|           LIST_APPEND(items, rr->txt.items, item);

Error: CPPCHECK_WARNING (CWE-476): [#def1298]
systemd-258/src/resolve/test-dns-packet-append.c:887: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
#  885|           ASSERT_NOT_NULL(item);
#  886|           item->length = 5;
#  887|->         memcpy(item->data, "world", 6);
#  888|           LIST_APPEND(items, rr->txt.items, item);
#  889|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1299]
systemd-258/src/resolve/test-dns-packet-append.c:899:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:868:1: enter_function: entry to ‘test_packet_append_answer_single_txt’
systemd-258/src/resolve/test-dns-packet-append.c:875:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:876:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:879:9: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:880:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:882:9: branch_true: following ‘true’ branch (when ‘_item’ is NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:882:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:885:9: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:886:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:888:9: branch_true: following ‘true’ branch (when ‘_item’ is NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:888:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:891:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:892:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_txt’
systemd-258/src/resolve/test-dns-packet-append.c:895:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:896:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:896:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:898:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_txt’
systemd-258/src/resolve/test-dns-packet-append.c:899:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_txt’
systemd-258/src/resolve/test-dns-packet-append.c:899:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:899:9: danger: dereference of NULL ‘<unknown>’
#  897|   
#  898|           DNS_PACKET_ID(packet) = htobe16(42);
#  899|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  900|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  901|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1300]
systemd-258/src/resolve/test-dns-packet-append.c:948:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:923:1: enter_function: entry to ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:929:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:930:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:940:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:941:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:944:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:945:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:945:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:947:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:948:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:948:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:948:9: danger: dereference of NULL ‘<unknown>’
#  946|   
#  947|           DNS_PACKET_ID(packet) = htobe16(42);
#  948|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  949|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  950|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1301]
systemd-258/src/resolve/test-dns-packet-append.c:949:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:923:1: enter_function: entry to ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:929:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:930:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:940:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:941:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:944:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:945:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:945:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:947:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:948:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:949:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:949:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_loc’
systemd-258/src/resolve/test-dns-packet-append.c:949:9: danger: dereference of NULL ‘<unknown>’
#  947|           DNS_PACKET_ID(packet) = htobe16(42);
#  948|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
#  949|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
#  950|   
#  951|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1302]
systemd-258/src/resolve/test-dns-packet-append.c:999:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:977:1: enter_function: entry to ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:983:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:984:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:991:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:992:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:995:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:996:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:996:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:998:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:999:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:999:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:999:9: danger: dereference of NULL ‘<unknown>’
#  997|   
#  998|           DNS_PACKET_ID(packet) = htobe16(42);
#  999|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1000|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1001|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1303]
systemd-258/src/resolve/test-dns-packet-append.c:1000:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:977:1: enter_function: entry to ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:983:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:984:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:991:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:992:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:995:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:996:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:996:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:998:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:999:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:1000:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:1000:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_srv’
systemd-258/src/resolve/test-dns-packet-append.c:1000:9: danger: dereference of NULL ‘<unknown>’
#  998|           DNS_PACKET_ID(packet) = htobe16(42);
#  999|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1000|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1001|   
# 1002|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1304]
systemd-258/src/resolve/test-dns-packet-append.c:1054:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:1030:1: enter_function: entry to ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1036:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1037:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1046:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1047:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1050:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1051:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1051:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:1053:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1054:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1054:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1054:9: danger: dereference of NULL ‘<unknown>’
# 1052|   
# 1053|           DNS_PACKET_ID(packet) = htobe16(42);
# 1054|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1055|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1056|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1305]
systemd-258/src/resolve/test-dns-packet-append.c:1055:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:1030:1: enter_function: entry to ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1036:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1037:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1046:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1047:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1050:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1051:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1051:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:1053:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1054:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1055:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1055:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_single_naptr’
systemd-258/src/resolve/test-dns-packet-append.c:1055:9: danger: dereference of NULL ‘<unknown>’
# 1053|           DNS_PACKET_ID(packet) = htobe16(42);
# 1054|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1055|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1056|   
# 1057|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1306]
systemd-258/src/resolve/test-dns-packet-append.c:1135:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:1094:1: enter_function: entry to ‘test_packet_append_answer_rrsig_with_a’
systemd-258/src/resolve/test-dns-packet-append.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1102:14: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1103:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1104:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1111:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1112:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1131:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1132:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1132:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:1134:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258/src/resolve/test-dns-packet-append.c:1135:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258/src/resolve/test-dns-packet-append.c:1135:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1135:9: danger: dereference of NULL ‘<unknown>’
# 1133|   
# 1134|           DNS_PACKET_ID(packet) = htobe16(42);
# 1135|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1136|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1137|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1307]
systemd-258/src/resolve/test-dns-packet-append.c:1136:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:1094:1: enter_function: entry to ‘test_packet_append_answer_rrsig_with_a’
systemd-258/src/resolve/test-dns-packet-append.c:1100:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1102:14: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1103:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1104:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1111:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1112:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1131:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1132:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1132:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:1134:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258/src/resolve/test-dns-packet-append.c:1135:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258/src/resolve/test-dns-packet-append.c:1136:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258/src/resolve/test-dns-packet-append.c:1136:46: call_function: inlined call to ‘htobe16’ from ‘test_packet_append_answer_rrsig_with_a’
systemd-258/src/resolve/test-dns-packet-append.c:1136:9: danger: dereference of NULL ‘<unknown>’
# 1134|           DNS_PACKET_ID(packet) = htobe16(42);
# 1135|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1136|->         DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1137|   
# 1138|           ASSERT_OK(dns_packet_append_answer(packet, answer, NULL));

Error: CPPCHECK_WARNING (CWE-476): [#def1308]
systemd-258/src/resolve/test-dns-packet-append.c:1180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 1178|           ASSERT_NOT_NULL(param);
# 1179|   
# 1180|->         param->key = key;
# 1181|           param->length = len;
# 1182|   

Error: CPPCHECK_WARNING (CWE-476): [#def1309]
systemd-258/src/resolve/test-dns-packet-append.c:1181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 1179|   
# 1180|           param->key = key;
# 1181|->         param->length = len;
# 1182|   
# 1183|           if (value != NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1310]
systemd-258/src/resolve/test-dns-packet-append.c:1223:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:1190:1: enter_function: entry to ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1197:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1198:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1202:9: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1202:9: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258/src/resolve/test-dns-packet-append.c:1203:9: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1203:9: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258/src/resolve/test-dns-packet-append.c:1204:9: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1204:9: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258/src/resolve/test-dns-packet-append.c:1205:9: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1205:9: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258/src/resolve/test-dns-packet-append.c:1207:17: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1207:17: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258/src/resolve/test-dns-packet-append.c:1211:17: call_function: calling ‘add_svcb_param’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1211:17: return_function: returning to ‘test_packet_append_answer_single_svcb’ from ‘add_svcb_param’
systemd-258/src/resolve/test-dns-packet-append.c:1215:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1216:9: call_function: inlined call to ‘dns_answer_add’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1219:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1220:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1220:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-append.c:1222:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1223:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_answer_single_svcb’
systemd-258/src/resolve/test-dns-packet-append.c:1223:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1223:9: danger: dereference of NULL ‘<unknown>’
# 1221|   
# 1222|           DNS_PACKET_ID(packet) = htobe16(42);
# 1223|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(1, 0, 1, 0, 1, 1, 0, 0, DNS_RCODE_SUCCESS));
# 1224|           DNS_PACKET_HEADER(packet)->ancount = htobe16(dns_answer_size(answer));
# 1225|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1311]
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:1279:1: enter_function: entry to ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1284:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: danger: dereference of NULL ‘<unknown>’
# 1284|           ASSERT_OK(dns_packet_new(&packet, DNS_PROTOCOL_DNS, 0, DNS_PACKET_SIZE_MAX));
# 1285|   
# 1286|->         DNS_PACKET_ID(packet) = htobe16(42);
# 1287|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, 0));
# 1288|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1312]
systemd-258/src/resolve/test-dns-packet-append.c:1287:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:1279:1: enter_function: entry to ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1284:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1287:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1287:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1287:9: danger: dereference of NULL ‘<unknown>’
# 1285|   
# 1286|           DNS_PACKET_ID(packet) = htobe16(42);
# 1287|->         DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, 0));
# 1288|           DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
# 1289|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1313]
systemd-258/src/resolve/test-dns-packet-append.c:1288:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-append.c:1279:1: enter_function: entry to ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1284:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1286:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1287:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1288:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_append_key_name_too_long’
systemd-258/src/resolve/test-dns-packet-append.c:1288:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-append.c:1288:9: danger: dereference of NULL ‘<unknown>’
# 1286|           DNS_PACKET_ID(packet) = htobe16(42);
# 1287|           DNS_PACKET_HEADER(packet)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(0, 0, 0, 0, 1, 0, 0, 0, 0));
# 1288|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(1);
# 1289|   
# 1290|           key = ASSERT_PTR(dns_resource_key_new(DNS_CLASS_IN, DNS_TYPE_A, "www.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com"));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1314]
systemd-258/src/resolve/test-dns-packet-extract.c:37:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:23:1: enter_function: entry to ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:26:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:27:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:27:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:28:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:35:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:37:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:37:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:37:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:37:9: danger: dereference of NULL ‘<unknown>’
#   35|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#   36|   
#   37|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#   38|   
#   39|           ASSERT_EQ(DNS_PACKET_QR(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1315]
systemd-258/src/resolve/test-dns-packet-extract.c:50:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:23:1: enter_function: entry to ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:26:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:27:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:27:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:28:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:35:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:37:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:37:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:37:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:39:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:40:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:40:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:41:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:42:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:42:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:43:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:43:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:45:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:45:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:46:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:46:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:47:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:47:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:48:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:48:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:50:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:50:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_basic’
systemd-258/src/resolve/test-dns-packet-extract.c:50:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:50:9: danger: dereference of NULL ‘<unknown>’
#   48|           ASSERT_EQ(dns_packet_rcode(packet), 0);
#   49|   
#   50|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 1);
#   51|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 0);
#   52|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1316]
systemd-258/src/resolve/test-dns-packet-extract.c:70:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:56:1: enter_function: entry to ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:59:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:60:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:60:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:61:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:70:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:70:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:70:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:70:9: danger: dereference of NULL ‘<unknown>’
#   68|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#   69|   
#   70|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#   71|   
#   72|           ASSERT_EQ(DNS_PACKET_QR(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1317]
systemd-258/src/resolve/test-dns-packet-extract.c:83:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:56:1: enter_function: entry to ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:59:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:60:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:60:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:61:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:70:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:70:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:70:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:72:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:72:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:73:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:73:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:74:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:75:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:75:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:76:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:76:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:78:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:78:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:79:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:79:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:80:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:80:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:81:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:81:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:83:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:83:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_query_status_recursion_desired’
systemd-258/src/resolve/test-dns-packet-extract.c:83:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:83:9: danger: dereference of NULL ‘<unknown>’
#   81|           ASSERT_EQ(dns_packet_rcode(packet), 0);
#   82|   
#   83|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 339);
#   84|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 0);
#   85|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1318]
systemd-258/src/resolve/test-dns-packet-extract.c:103:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:89:1: enter_function: entry to ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:92:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:93:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:93:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:94:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:101:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:103:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:103:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:103:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:103:9: danger: dereference of NULL ‘<unknown>’
#  101|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  102|   
#  103|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#  104|   
#  105|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1319]
systemd-258/src/resolve/test-dns-packet-extract.c:116:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:89:1: enter_function: entry to ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:92:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:93:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:93:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:94:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:101:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:103:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:103:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:103:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:105:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:105:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:106:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:106:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:107:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:107:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:108:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:108:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:109:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:109:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:111:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:111:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:112:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:112:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:113:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:113:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:114:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:114:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:116:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:116:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:116:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:116:9: danger: dereference of NULL ‘<unknown>’
#  114|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_SUCCESS);
#  115|   
#  116|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 3);
#  117|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 4);
#  118|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1320]
systemd-258/src/resolve/test-dns-packet-extract.c:136:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:122:1: enter_function: entry to ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:125:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:126:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:126:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:127:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:134:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:136:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:136:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:136:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:136:9: danger: dereference of NULL ‘<unknown>’
#  134|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  135|   
#  136|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#  137|   
#  138|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1321]
systemd-258/src/resolve/test-dns-packet-extract.c:149:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:122:1: enter_function: entry to ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:125:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:126:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:126:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:127:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:134:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:136:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:136:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:136:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:138:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:138:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:139:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:140:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:140:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:141:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:141:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:142:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:142:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:144:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:144:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:145:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:145:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:146:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:146:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:147:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:147:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:149:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:149:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_nxdomain’
systemd-258/src/resolve/test-dns-packet-extract.c:149:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:149:9: danger: dereference of NULL ‘<unknown>’
#  147|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_NXDOMAIN);
#  148|   
#  149|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 1);
#  150|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 0);
#  151|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1322]
systemd-258/src/resolve/test-dns-packet-extract.c:169:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:155:1: enter_function: entry to ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:158:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:159:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:159:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:160:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:167:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:169:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:169:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:169:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:169:9: danger: dereference of NULL ‘<unknown>’
#  167|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  168|   
#  169|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#  170|   
#  171|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1323]
systemd-258/src/resolve/test-dns-packet-extract.c:182:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:155:1: enter_function: entry to ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:158:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:159:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:159:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:160:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:167:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:169:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:169:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:169:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:171:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:171:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:172:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:172:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:173:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:173:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:174:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:174:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:175:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:175:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:177:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:177:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:178:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:178:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:179:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:179:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:180:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:180:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:182:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:182:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_recursive_non_authoritative’
systemd-258/src/resolve/test-dns-packet-extract.c:182:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:182:9: danger: dereference of NULL ‘<unknown>’
#  180|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_SUCCESS);
#  181|   
#  182|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 1283);
#  183|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 3588);
#  184|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1324]
systemd-258/src/resolve/test-dns-packet-extract.c:202:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:188:1: enter_function: entry to ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:191:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:192:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:192:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:193:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:200:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:202:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:202:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:202:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:202:9: danger: dereference of NULL ‘<unknown>’
#  200|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  201|   
#  202|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66u);
#  203|   
#  204|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1325]
systemd-258/src/resolve/test-dns-packet-extract.c:215:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:188:1: enter_function: entry to ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:191:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:192:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:192:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:193:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:200:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:202:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:202:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:202:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:204:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:204:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:205:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:205:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:206:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:206:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:207:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:208:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:208:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:210:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:210:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:211:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:212:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:213:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:213:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:215:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:215:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_delegate’
systemd-258/src/resolve/test-dns-packet-extract.c:215:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:215:9: danger: dereference of NULL ‘<unknown>’
#  213|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_SUCCESS);
#  214|   
#  215|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 1);
#  216|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 0);
#  217|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 2317);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1326]
systemd-258/src/resolve/test-dns-packet-extract.c:235:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:221:1: enter_function: entry to ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:224:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:225:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:225:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:226:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:235:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:235:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:235:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:235:9: danger: dereference of NULL ‘<unknown>’
#  233|           ASSERT_OK(dns_packet_append_blob(packet, data, sizeof(data), NULL));
#  234|   
#  235|->         ASSERT_EQ(be16toh(DNS_PACKET_ID(packet)), 66);
#  236|   
#  237|           ASSERT_EQ(DNS_PACKET_QR(packet), 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1327]
systemd-258/src/resolve/test-dns-packet-extract.c:248:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-packet-extract.c:221:1: enter_function: entry to ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:224:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:225:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:225:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-packet-extract.c:226:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:233:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:235:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:235:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:235:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:237:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:237:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:238:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:238:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:239:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:240:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:240:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:241:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:241:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:243:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:243:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:244:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:245:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:245:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:246:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:246:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-packet-extract.c:248:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:248:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_packet_header_reply_dnssec_bits’
systemd-258/src/resolve/test-dns-packet-extract.c:248:9: branch_true: ...to here
systemd-258/src/resolve/test-dns-packet-extract.c:248:9: danger: dereference of NULL ‘<unknown>’
#  246|           ASSERT_EQ(dns_packet_rcode(packet), DNS_RCODE_SUCCESS);
#  247|   
#  248|->         ASSERT_EQ(DNS_PACKET_QDCOUNT(packet), 3);
#  249|           ASSERT_EQ(DNS_PACKET_ANCOUNT(packet), 4);
#  250|           ASSERT_EQ(DNS_PACKET_NSCOUNT(packet), 0);

Error: CPPCHECK_WARNING (CWE-476): [#def1328]
systemd-258/src/resolve/test-dns-packet-extract.c:2492: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
# 2490|           item = calloc(1, offsetof(DnsTxtItem, data) + 3);
# 2491|           ASSERT_NOT_NULL(item);
# 2492|->         item->length = 2;
# 2493|           memcpy(item->data, "hi", 3);
# 2494|           LIST_APPEND(items, rr->txt.items, item);

Error: CPPCHECK_WARNING (CWE-476): [#def1329]
systemd-258/src/resolve/test-dns-packet-extract.c:2493: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
# 2491|           ASSERT_NOT_NULL(item);
# 2492|           item->length = 2;
# 2493|->         memcpy(item->data, "hi", 3);
# 2494|           LIST_APPEND(items, rr->txt.items, item);
# 2495|   

Error: CPPCHECK_WARNING (CWE-476): [#def1330]
systemd-258/src/resolve/test-dns-packet-extract.c:2498: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
# 2496|           item = calloc(1, offsetof(DnsTxtItem, data) + 6);
# 2497|           ASSERT_NOT_NULL(item);
# 2498|->         item->length = 5;
# 2499|           memcpy(item->data, "world", 6);
# 2500|           LIST_APPEND(items, rr->txt.items, item);

Error: CPPCHECK_WARNING (CWE-476): [#def1331]
systemd-258/src/resolve/test-dns-packet-extract.c:2499: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: item
# 2497|           ASSERT_NOT_NULL(item);
# 2498|           item->length = 5;
# 2499|->         memcpy(item->data, "world", 6);
# 2500|           LIST_APPEND(items, rr->txt.items, item);
# 2501|   

Error: CPPCHECK_WARNING (CWE-476): [#def1332]
systemd-258/src/resolve/test-dns-packet-extract.c:3902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 3900|           ASSERT_NOT_NULL(param);
# 3901|   
# 3902|->         param->key = key;
# 3903|           param->length = len;
# 3904|   

Error: CPPCHECK_WARNING (CWE-476): [#def1333]
systemd-258/src/resolve/test-dns-packet-extract.c:3903: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 3901|   
# 3902|           param->key = key;
# 3903|->         param->length = len;
# 3904|   
# 3905|           if (value != NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1334]
systemd-258/src/resolve/test-dns-query.c:131:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-query.c:118:1: enter_function: entry to ‘test_dns_query_new_bypass_ok’
systemd-258/src/resolve/test-dns-query.c:124:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-query.c:125:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:125:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-query.c:127:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:127:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-query.c:128:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:128:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-query.c:130:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:130:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-query.c:131:54: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:131:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_dns_query_new_bypass_ok’
systemd-258/src/resolve/test-dns-query.c:131:46: call_function: inlined call to ‘htobe16’ from ‘test_dns_query_new_bypass_ok’
systemd-258/src/resolve/test-dns-query.c:131:9: danger: dereference of NULL ‘<unknown>’
#  129|   
#  130|           ASSERT_OK(dns_packet_append_question(packet, question));
#  131|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(dns_question_size(question));
#  132|           ASSERT_OK(dns_packet_extract(packet));
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1335]
systemd-258/src/resolve/test-dns-query.c:151:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-dns-query.c:138:1: enter_function: entry to ‘test_dns_query_new_bypass_conflict’
systemd-258/src/resolve/test-dns-query.c:144:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-query.c:145:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:145:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-query.c:147:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:147:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-query.c:148:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:148:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/resolve/test-dns-query.c:150:9: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:150:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-dns-query.c:151:54: branch_false: ...to here
systemd-258/src/resolve/test-dns-query.c:151:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘test_dns_query_new_bypass_conflict’
systemd-258/src/resolve/test-dns-query.c:151:46: call_function: inlined call to ‘htobe16’ from ‘test_dns_query_new_bypass_conflict’
systemd-258/src/resolve/test-dns-query.c:151:9: danger: dereference of NULL ‘<unknown>’
#  149|   
#  150|           ASSERT_OK(dns_packet_append_question(packet, question));
#  151|->         DNS_PACKET_HEADER(packet)->qdcount = htobe16(dns_question_size(question));
#  152|           ASSERT_OK(dns_packet_extract(packet));
#  153|   

Error: CPPCHECK_WARNING (CWE-476): [#def1336]
systemd-258/src/resolve/test-dns-rr.c:1368: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a->txt.items
# 1366|           a->txt.items = calloc(1, offsetof(DnsTxtItem, data) + len + 1);
# 1367|           ASSERT_NOT_NULL(a->txt.items);
# 1368|->         a->txt.items->length = len;
# 1369|           memcpy(a->txt.items->data, data, len);
# 1370|   

Error: CPPCHECK_WARNING (CWE-476): [#def1337]
systemd-258/src/resolve/test-dns-rr.c:1386: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a->txt.items
# 1384|           a->txt.items = calloc(1, offsetof(DnsTxtItem, data) + len + 1);
# 1385|           ASSERT_NOT_NULL(a->txt.items);
# 1386|->         a->txt.items->length = len;
# 1387|           memcpy(a->txt.items->data, data, len);
# 1388|   

Error: CPPCHECK_WARNING (CWE-476): [#def1338]
systemd-258/src/resolve/test-dns-rr.c:1406: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: a->txt.items
# 1404|           a->txt.items = calloc(1, offsetof(DnsTxtItem, data) + len + 1);
# 1405|           ASSERT_NOT_NULL(a->txt.items);
# 1406|->         a->txt.items->length = len;
# 1407|           memcpy(a->txt.items->data, data, len);
# 1408|   

Error: CPPCHECK_WARNING (CWE-476): [#def1339]
systemd-258/src/resolve/test-dns-rr.c:2043: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 2041|           ASSERT_NOT_NULL(param);
# 2042|   
# 2043|->         param->key = key;
# 2044|           param->length = len;
# 2045|   

Error: CPPCHECK_WARNING (CWE-476): [#def1340]
systemd-258/src/resolve/test-dns-rr.c:2044: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: param
# 2042|   
# 2043|           param->key = key;
# 2044|->         param->length = len;
# 2045|   
# 2046|           if (value != NULL)

Error: CPPCHECK_WARNING (CWE-587): [#def1341]
systemd-258/src/resolve/test-dns-rr.c:2341: error[assignBoolToPointer]: Boolean value assigned to pointer.
# 2339|           ASSERT_EQ(rr->wire_format_size, sizeof(data));
# 2340|           ASSERT_EQ(rr->wire_format_rdata_offset, 27u);
# 2341|->         ASSERT_EQ(rr->wire_format_canonical, true);
# 2342|   
# 2343|           r = memcmp(rr->wire_format, data, sizeof(data));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1342]
systemd-258/src/resolve/test-resolved-dummy-server.c:54:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
systemd-258/src/resolve/test-resolved-dummy-server.c:24:12: enter_function: entry to ‘server_recv’
systemd-258/src/resolve/test-resolved-dummy-server.c:43:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:44:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:44:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:46:14: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:47:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:50:13: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:51:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:54:15: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:54:15: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘server_recv’
systemd-258/src/resolve/test-resolved-dummy-server.c:54:15: branch_true: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:54:15: danger: dereference of NULL ‘p’
#   52|                   return r;
#   53|   
#   54|->         iov = IOVEC_MAKE(DNS_PACKET_DATA(p), p->allocated);
#   55|   
#   56|           l = recvmsg_safe(fd, &mh, 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1343]
systemd-258/src/resolve/test-resolved-dummy-server.c:193:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-resolved-dummy-server.c:178:12: enter_function: entry to ‘make_reply_packet’
systemd-258/src/resolve/test-resolved-dummy-server.c:182:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:183:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:183:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:185:53: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:186:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:189:13: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:190:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:193:36: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258/src/resolve/test-resolved-dummy-server.c:193:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258/src/resolve/test-resolved-dummy-server.c:193:36: branch_true: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:193:9: danger: dereference of NULL ‘<unknown>’
#  191|                   return r;
#  192|   
#  193|->         DNS_PACKET_HEADER(p)->id = DNS_PACKET_ID(packet);
#  194|           DNS_PACKET_HEADER(p)->qdcount = htobe16(dns_question_size(packet->question));
#  195|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1344]
systemd-258/src/resolve/test-resolved-dummy-server.c:194:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-resolved-dummy-server.c:178:12: enter_function: entry to ‘make_reply_packet’
systemd-258/src/resolve/test-resolved-dummy-server.c:182:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:183:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:183:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:185:53: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:186:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:189:13: branch_false: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:190:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:193:36: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258/src/resolve/test-resolved-dummy-server.c:193:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258/src/resolve/test-resolved-dummy-server.c:194:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘make_reply_packet’
systemd-258/src/resolve/test-resolved-dummy-server.c:194:41: call_function: inlined call to ‘htobe16’ from ‘make_reply_packet’
systemd-258/src/resolve/test-resolved-dummy-server.c:194:9: danger: dereference of NULL ‘<unknown>’
#  192|   
#  193|           DNS_PACKET_HEADER(p)->id = DNS_PACKET_ID(packet);
#  194|->         DNS_PACKET_HEADER(p)->qdcount = htobe16(dns_question_size(packet->question));
#  195|   
#  196|           *ret = TAKE_PTR(p);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1345]
systemd-258/src/resolve/test-resolved-dummy-server.c:325:51: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-resolved-dummy-server.c:321:13: enter_function: entry to ‘server_fail’
systemd-258/src/resolve/test-resolved-dummy-server.c:322:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-dummy-server.c:325:51: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘server_fail’
systemd-258/src/resolve/test-resolved-dummy-server.c:325:51: branch_true: ...to here
systemd-258/src/resolve/test-resolved-dummy-server.c:325:51: danger: dereference of NULL ‘<unknown>’
#  323|   
#  324|           /* Order: qr, opcode, aa, tc, rd, ra, ad, cd, rcode */
#  325|->         DNS_PACKET_HEADER(reply)->flags = htobe16(DNS_PACKET_MAKE_FLAGS(
#  326|                                                   1, 0, 0, 0, DNS_PACKET_RD(packet), 1, 0, 1, rcode));
#  327|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1346]
systemd-258/src/resolve/test-resolved-packet.c:209:9: warning[-Wanalyzer-null-argument]: use of NULL ‘joined’ where non-null expected
systemd-258/src/resolve/test-resolved-packet.c:182:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-packet.c:184:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-packet.c:184:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-packet.c:185:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-packet.c:185:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-packet.c:187:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-packet.c:190:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-packet.c:192:60: branch_false: ...to here
systemd-258/src/resolve/test-resolved-packet.c:193:30: release_memory: ‘joined’ is NULL
systemd-258/src/resolve/test-resolved-packet.c:209:9: release_memory: ‘joined’ is NULL
systemd-258/src/resolve/test-resolved-packet.c:209:9: release_memory: ‘joined’ is NULL
systemd-258/src/resolve/test-resolved-packet.c:209:9: danger: argument 1 (‘joined’) NULL where non-null expected
#  207|           }
#  208|   
#  209|->         assert(streq(joined, twilio_reply_string));
#  210|   
#  211|           _cleanup_(sd_json_variant_unrefp) sd_json_variant *parsed = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1347]
systemd-258/src/resolve/test-resolved-stream.c:189:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/resolve/test-resolved-stream.c:179:13: enter_function: entry to ‘send_simple_question’
systemd-258/src/resolve/test-resolved-stream.c:184:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-stream.c:185:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-stream.c:185:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-stream.c:186:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-stream.c:186:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-stream.c:187:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-stream.c:187:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-stream.c:188:9: branch_false: ...to here
systemd-258/src/resolve/test-resolved-stream.c:188:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/test-resolved-stream.c:189:49: call_function: inlined call to ‘dns_question_size’ from ‘send_simple_question’
systemd-258/src/resolve/test-resolved-stream.c:189:9: call_function: inlined call to ‘DNS_PACKET_DATA’ from ‘send_simple_question’
systemd-258/src/resolve/test-resolved-stream.c:189:41: call_function: inlined call to ‘htobe16’ from ‘send_simple_question’
systemd-258/src/resolve/test-resolved-stream.c:189:9: danger: dereference of NULL ‘<unknown>’
#  187|           assert_se(dns_question_add(question, key, 0) >= 0);
#  188|           assert_se(dns_packet_append_question(p, question) >= 0);
#  189|->         DNS_PACKET_HEADER(p)->qdcount = htobe16(dns_question_size(question));
#  190|           assert_se(dns_stream_write_packet(stream, p) >= 0);
#  191|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1348]
systemd-258/src/rfkill/rfkill.c:265:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘c.rfkill_fd’
systemd-258/src/rfkill/rfkill.c:377:1: enter_function: entry to ‘main’
systemd-258/src/rfkill/rfkill.c:377:1: call_function: calling ‘run’ from ‘main’
#  263|           }
#  264|   
#  265|->         safe_close(c->rfkill_fd);
#  266|   }
#  267|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1349]
systemd-258/src/shared/acl-util.c:474:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘entry’
systemd-258/src/shared/acl-util.c:446:5: enter_function: entry to ‘fd_add_uid_acl_permission’
systemd-258/src/shared/acl-util.c:459:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/acl-util.c:460:9: branch_false: ...to here
systemd-258/src/shared/acl-util.c:460:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/acl-util.c:462:15: branch_false: ...to here
systemd-258/src/shared/acl-util.c:463:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/acl-util.c:466:13: branch_false: ...to here
systemd-258/src/shared/acl-util.c:466:13: call_function: calling ‘acl_find_uid’ from ‘fd_add_uid_acl_permission’
systemd-258/src/shared/acl-util.c:466:13: return_function: returning to ‘fd_add_uid_acl_permission’ from ‘acl_find_uid’
systemd-258/src/shared/acl-util.c:467:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/acl-util.c:474:13: branch_false: ...to here
systemd-258/src/shared/acl-util.c:474:13: danger: use of uninitialized value ‘entry’ here
#  472|           }
#  473|   
#  474|->         if (acl_get_permset(entry, &permset) < 0)
#  475|                   return -errno;
#  476|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1350]
systemd-258/src/shared/base-filesystem.c:196:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘r’
systemd-258/src/shared/base-filesystem.c:144:5: enter_function: entry to ‘base_filesystem_create_fd’
systemd-258/src/shared/base-filesystem.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/base-filesystem.c:149:9: branch_false: ...to here
systemd-258/src/shared/base-filesystem.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/base-filesystem.c:153:9: branch_true: following ‘true’ branch...
systemd-258/src/shared/base-filesystem.c:154:21: branch_true: ...to here
systemd-258/src/shared/base-filesystem.c:154:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/base-filesystem.c:157:35: branch_false: ...to here
systemd-258/src/shared/base-filesystem.c:153:9: branch_true: following ‘true’ branch...
systemd-258/src/shared/base-filesystem.c:154:21: branch_true: ...to here
systemd-258/src/shared/base-filesystem.c:157:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/base-filesystem.c:160:21: branch_false: ...to here
systemd-258/src/shared/base-filesystem.c:163:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/base-filesystem.c:193:25: branch_false: ...to here
systemd-258/src/shared/base-filesystem.c:193:25: branch_false: following ‘false’ branch...
systemd-258/src/shared/base-filesystem.c:193:25: call_function: inlined call to ‘umaskp’ from ‘base_filesystem_create_fd’
systemd-258/src/shared/base-filesystem.c:196:20: danger: use of uninitialized value ‘r’ here
#  194|                                   r = RET_NERRNO(mkdirat(fd, i->dir, i->mode));
#  195|                   }
#  196|->                 if (r < 0) {
#  197|                           bool ignore = IN_SET(r, -EEXIST, -EROFS) || FLAGS_SET(i->flags, BASE_FILESYSTEM_IGNORE_ON_FAILURE);
#  198|                           log_full_errno(ignore ? LOG_DEBUG : LOG_ERR, r,

Error: CPPCHECK_WARNING (CWE-672): [#def1351]
systemd-258/src/shared/bitmap.c:37: error[deallocret]: Returning/dereferencing 'ret' after it is deallocated / released
#   35|   
#   36|           ret->n_bitmaps = b->n_bitmaps;
#   37|->         return ret;
#   38|   }
#   39|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1352]
systemd-258/src/shared/blockdev-util.c:163:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devnum’
systemd-258/src/shared/blockdev-util.c:151:5: enter_function: entry to ‘block_device_new_from_fd’
systemd-258/src/shared/blockdev-util.c:156:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:157:9: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:157:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:159:13: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:159:13: call_function: calling ‘fd_get_devnum’ from ‘block_device_new_from_fd’
systemd-258/src/shared/blockdev-util.c:159:13: return_function: returning to ‘block_device_new_from_fd’ from ‘fd_get_devnum’
systemd-258/src/shared/blockdev-util.c:160:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:163:13: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:163:13: danger: use of uninitialized value ‘devnum’ here
#  161|                   return r;
#  162|   
#  163|->         r = sd_device_new_from_devnum(&dev, 'b', devnum);
#  164|           if (r < 0)
#  165|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1353]
systemd-258/src/shared/blockdev-util.c:323:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*ret’
systemd-258/src/shared/blockdev-util.c:852:5: enter_function: entry to ‘blockdev_get_root’
systemd-258/src/shared/blockdev-util.c:864:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/blockdev-util.c:865:21: branch_true: ...to here
systemd-258/src/shared/blockdev-util.c:865:21: call_function: calling ‘get_block_device_harder’ from ‘blockdev_get_root’
#  321|                   return r;
#  322|   
#  323|->         r = block_get_originating(*ret, ret);
#  324|           if (r < 0)
#  325|                   log_debug_errno(r, "Failed to chase block device, ignoring: %m");

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1354]
systemd-258/src/shared/blockdev-util.c:354:23: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘whole_devt’
systemd-258/src/shared/blockdev-util.c:343:5: enter_function: entry to ‘lock_whole_block_device’
systemd-258/src/shared/blockdev-util.c:350:13: call_function: calling ‘block_get_whole_disk’ from ‘lock_whole_block_device’
systemd-258/src/shared/blockdev-util.c:350:13: return_function: returning to ‘lock_whole_block_device’ from ‘block_get_whole_disk’
systemd-258/src/shared/blockdev-util.c:351:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:354:23: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:354:23: danger: use of uninitialized value ‘whole_devt’ here
#  352|                   return r;
#  353|   
#  354|->         lock_fd = r = device_open_from_devnum(S_IFBLK, whole_devt, O_RDONLY|O_CLOEXEC|O_NONBLOCK, NULL);
#  355|           if (r < 0)
#  356|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1355]
systemd-258/src/shared/blockdev-util.c:557:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devt’
systemd-258/src/shared/blockdev-util.c:546:5: enter_function: entry to ‘fd_is_encrypted’
systemd-258/src/shared/blockdev-util.c:551:13: call_function: calling ‘get_block_device_fd’ from ‘fd_is_encrypted’
systemd-258/src/shared/blockdev-util.c:551:13: return_function: returning to ‘fd_is_encrypted’ from ‘get_block_device_fd’
systemd-258/src/shared/blockdev-util.c:552:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:554:12: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:554:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:557:9: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:557:9: danger: use of uninitialized value ‘devt’ here
#  555|                   return false;
#  556|   
#  557|->         xsprintf_sys_block_path(p, NULL, devt);
#  558|   
#  559|           return blockdev_is_encrypted(p, 10 /* safety net: maximum recursion depth */);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1356]
systemd-258/src/shared/blockdev-util.c:589:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘devt’
systemd-258/src/shared/blockdev-util.c:578:5: enter_function: entry to ‘fd_get_whole_disk’
systemd-258/src/shared/blockdev-util.c:582:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:583:9: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:583:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:585:13: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:585:13: call_function: calling ‘fd_get_devnum’ from ‘fd_get_whole_disk’
systemd-258/src/shared/blockdev-util.c:585:13: return_function: returning to ‘fd_get_whole_disk’ from ‘fd_get_devnum’
systemd-258/src/shared/blockdev-util.c:586:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/blockdev-util.c:589:16: branch_false: ...to here
systemd-258/src/shared/blockdev-util.c:589:16: danger: use of uninitialized value ‘devt’ here
#  587|                   return r;
#  588|   
#  589|->         return block_get_whole_disk(devt, ret);
#  590|   }
#  591|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1357]
systemd-258/src/shared/bootspec.c:1623:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("/sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f")’
systemd-258/src/shared/bootspec.c:1568:5: enter_function: entry to ‘boot_config_augment_from_loader’
systemd-258/src/shared/bootspec.c:1586:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/bootspec.c:1591:9: branch_true: following ‘true’ branch...
systemd-258/src/shared/bootspec.c:1595:28: call_function: calling ‘boot_config_find_entry’ from ‘boot_config_augment_from_loader’
systemd-258/src/shared/bootspec.c:1595:28: return_function: returning to ‘boot_config_augment_from_loader’ from ‘boot_config_find_entry’
systemd-258/src/shared/bootspec.c:1596:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1601:20: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1605:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/bootspec.c:1608:17: branch_true: following ‘true’ branch...
systemd-258/src/shared/bootspec.c:1609:28: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/shared/bootspec.c:1610:37: branch_true: ...to here
systemd-258/src/shared/bootspec.c:1611:36: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1616:21: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1616:21: acquire_memory: allocated here
systemd-258/src/shared/bootspec.c:1617:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1620:22: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1620:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1623:17: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1623:17: danger: ‘strdup("/sys/firmware/efi/efivars/LoaderEntries-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f")’ leaks here; was allocated at [(23)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/22)
# 1621|                           return log_oom();
# 1622|   
# 1623|->                 config->entries[config->n_entries++] = (BootEntry) {
# 1624|                           .type = startswith(*i, "auto-") ? BOOT_ENTRY_AUTO : BOOT_ENTRY_LOADER,
# 1625|                           .id = TAKE_PTR(c),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1358]
systemd-258/src/shared/bootspec.c:1623:17: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(*__unique_prefix_i34)’
systemd-258/src/shared/bootspec.c:1568:5: enter_function: entry to ‘boot_config_augment_from_loader’
systemd-258/src/shared/bootspec.c:1586:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/bootspec.c:1591:9: branch_true: following ‘true’ branch...
systemd-258/src/shared/bootspec.c:1595:28: call_function: calling ‘boot_config_find_entry’ from ‘boot_config_augment_from_loader’
systemd-258/src/shared/bootspec.c:1595:28: return_function: returning to ‘boot_config_augment_from_loader’ from ‘boot_config_find_entry’
systemd-258/src/shared/bootspec.c:1596:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1601:20: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1604:21: acquire_memory: allocated here
systemd-258/src/shared/bootspec.c:1605:20: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/bootspec.c:1608:17: branch_true: following ‘true’ branch...
systemd-258/src/shared/bootspec.c:1609:28: branch_true: following ‘true’ branch (when the strings are equal)...
systemd-258/src/shared/bootspec.c:1610:37: branch_true: ...to here
systemd-258/src/shared/bootspec.c:1611:36: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1616:21: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1617:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1620:22: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1620:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1623:17: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1623:17: danger: ‘strdup(*__unique_prefix_i34)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/14)
# 1621|                           return log_oom();
# 1622|   
# 1623|->                 config->entries[config->n_entries++] = (BootEntry) {
# 1624|                           .type = startswith(*i, "auto-") ? BOOT_ENTRY_AUTO : BOOT_ENTRY_LOADER,
# 1625|                           .id = TAKE_PTR(c),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1359]
systemd-258/src/shared/bootspec.c:1749:1: warning[-Wanalyzer-malloc-leak]: leak of ‘t2’
systemd-258/src/shared/bootspec.c:1703:12: enter_function: entry to ‘print_cmdline’
systemd-258/src/shared/bootspec.c:1707:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1709:27: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1713:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1716:21: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1716:21: call_function: calling ‘indent_embedded_newlines’ from ‘print_cmdline’
systemd-258/src/shared/bootspec.c:1716:21: return_function: returning to ‘print_cmdline’ from ‘indent_embedded_newlines’
systemd-258/src/shared/bootspec.c:1716:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1719:17: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1720:22: acquire_memory: allocated here
systemd-258/src/shared/bootspec.c:1721:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1710:38: call_function: inlined call to ‘freep’ from ‘print_cmdline’
systemd-258/src/shared/bootspec.c:1725:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1731:9: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1731:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bootspec.c:1739:13: branch_false: ...to here
systemd-258/src/shared/bootspec.c:1739:13: call_function: inlined call to ‘streq_ptr’ from ‘print_cmdline’
systemd-258/src/shared/bootspec.c:1739:13: call_function: inlined call to ‘streq_ptr’ from ‘print_cmdline’
systemd-258/src/shared/bootspec.c:1739:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/bootspec.c:1749:1: danger: ‘t2’ leaks here; was allocated at [(26)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/25)
# 1747|   
# 1748|           return 0;
# 1749|-> }
# 1750|   
# 1751|   static int json_addon(

Error: COMPILER_WARNING: [#def1360] [important]
systemd-258/src/shared/bpf-program.c:5:10: error[fatal error]: linux/bpf_insn.h: No such file or directory
#    3|   #include <fcntl.h>
#    4|   #include <linux/bpf.h>
#    5|-> #include <linux/bpf_insn.h>
#    6|   #include <sys/bpf.h>
#    7|   #include <unistd.h>

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1361]
systemd-258/src/shared/btrfs-util.c:233:34: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sh.objectid’
systemd-258/src/shared/btrfs-util.c:1911:12: enter_function: entry to ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1931:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1932:9: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1932:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1934:16: call_function: calling ‘btrfs_ioctl_search_args_compare’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1934:16: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_ioctl_search_args_compare’
systemd-258/src/shared/btrfs-util.c:1934:16: branch_true: following ‘true’ branch...
systemd-258/src/shared/btrfs-util.c:1935:50: branch_true: ...to here
systemd-258/src/shared/btrfs-util.c:1940:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1943:21: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1943:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1946:17: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1946:17: call_function: calling ‘btrfs_iterate’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1946:17: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_iterate’
systemd-258/src/shared/btrfs-util.c:1988:22: call_function: calling ‘btrfs_ioctl_search_args_inc’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1988:22: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_ioctl_search_args_inc’
systemd-258/src/shared/btrfs-util.c:1988:20: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/btrfs-util.c:1934:16: call_function: calling ‘btrfs_ioctl_search_args_compare’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1934:16: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_ioctl_search_args_compare’
systemd-258/src/shared/btrfs-util.c:1934:16: branch_true: following ‘true’ branch...
systemd-258/src/shared/btrfs-util.c:1935:50: branch_true: ...to here
systemd-258/src/shared/btrfs-util.c:1940:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1943:21: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1943:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:1946:17: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:1946:17: call_function: calling ‘btrfs_iterate’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:1946:17: return_function: returning to ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_iterate’
systemd-258/src/shared/btrfs-util.c:1949:25: call_function: inlined call to ‘btrfs_ioctl_search_args_set’ from ‘btrfs_read_chunk_tree_fd’
#  231|           assert(h);
#  232|   
#  233|->         args->key.min_objectid = h->objectid;
#  234|           args->key.min_type = h->type;
#  235|           args->key.min_offset = h->offset;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1362]
systemd-258/src/shared/btrfs-util.c:2088:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘subvol_id’
systemd-258/src/shared/btrfs-util.c:2045:5: enter_function: entry to ‘btrfs_get_file_physical_offset_fd’
systemd-258/src/shared/btrfs-util.c:2063:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:2064:9: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:2064:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:2066:13: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:2066:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:2069:13: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:2070:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:2073:13: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:2073:13: call_function: calling ‘btrfs_is_nocow_fd’ from ‘btrfs_get_file_physical_offset_fd’
systemd-258/src/shared/btrfs-util.c:2073:13: return_function: returning to ‘btrfs_get_file_physical_offset_fd’ from ‘btrfs_is_nocow_fd’
systemd-258/src/shared/btrfs-util.c:2074:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:2076:12: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:2076:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:2080:13: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:2080:13: call_function: calling ‘btrfs_subvol_get_id_fd’ from ‘btrfs_get_file_physical_offset_fd’
systemd-258/src/shared/btrfs-util.c:2080:13: return_function: returning to ‘btrfs_get_file_physical_offset_fd’ from ‘btrfs_subvol_get_id_fd’
systemd-258/src/shared/btrfs-util.c:2081:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:2084:13: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:2084:13: call_function: calling ‘btrfs_read_chunk_tree_fd’ from ‘btrfs_get_file_physical_offset_fd’
systemd-258/src/shared/btrfs-util.c:2084:13: return_function: returning to ‘btrfs_get_file_physical_offset_fd’ from ‘btrfs_read_chunk_tree_fd’
systemd-258/src/shared/btrfs-util.c:2085:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/btrfs-util.c:2088:9: branch_false: ...to here
systemd-258/src/shared/btrfs-util.c:2088:9: danger: use of uninitialized value ‘subvol_id’ here
# 2086|                   return r;
# 2087|   
# 2088|->         search_args.key.tree_id = subvol_id;
# 2089|           search_args.key.min_objectid = search_args.key.max_objectid = st.st_ino;
# 2090|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1363]
systemd-258/src/shared/bus-locator.c:108:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/bus-locator.c:105:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-locator.c:107:9: branch_false: ...to here
systemd-258/src/shared/bus-locator.c:107:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/bus-locator.c:108:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  106|   
#  107|           va_start(ap, types);
#  108|->         r = sd_bus_call_method_asyncv(bus, ret_slot, locator->destination, locator->path, locator->interface, member, callback, userdata, types, ap);
#  109|           va_end(ap);
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1364]
systemd-258/src/shared/bus-locator.c:128:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/bus-locator.c:125:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-locator.c:127:9: branch_false: ...to here
systemd-258/src/shared/bus-locator.c:127:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/bus-locator.c:128:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  126|   
#  127|           va_start(ap, types);
#  128|->         r = sd_bus_call_methodv(bus, locator->destination, locator->path, locator->interface, member, reterr_error, ret_reply, types, ap);
#  129|           va_end(ap);
#  130|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1365]
systemd-258/src/shared/bus-locator.c:197:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/bus-locator.c:194:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-locator.c:196:9: branch_false: ...to here
systemd-258/src/shared/bus-locator.c:196:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/bus-locator.c:197:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  195|   
#  196|           va_start(ap, type);
#  197|->         r = sd_bus_set_propertyv(bus, locator->destination, locator->path, locator->interface, member, reterr_error, type, ap);
#  198|           va_end(ap);
#  199|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1366]
systemd-258/src/shared/bus-message-util.c:99:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘family’
systemd-258/src/shared/bus-message-util.c:84:5: enter_function: entry to ‘bus_message_read_in_addr_auto’
systemd-258/src/shared/bus-message-util.c:89:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:91:13: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:91:13: call_function: calling ‘bus_message_read_family’ from ‘bus_message_read_in_addr_auto’
systemd-258/src/shared/bus-message-util.c:91:13: return_function: returning to ‘bus_message_read_in_addr_auto’ from ‘bus_message_read_family’
systemd-258/src/shared/bus-message-util.c:92:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:95:13: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:96:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:99:19: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:99:19: danger: use of uninitialized value ‘family’ here
#   97|                   return r;
#   98|   
#   99|->         if (sz != FAMILY_ADDRESS_SIZE(family))
#  100|                   return sd_bus_error_set(reterr_error, SD_BUS_ERROR_INVALID_ARGS, "Invalid address size");
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1367]
systemd-258/src/shared/bus-message-util.c:136:14: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘family’
systemd-258/src/shared/bus-message-util.c:109:12: enter_function: entry to ‘bus_message_read_dns_one’
systemd-258/src/shared/bus-message-util.c:122:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:123:9: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:123:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:124:9: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:124:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:125:9: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:125:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:126:9: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:126:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:128:13: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:129:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:132:13: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:132:13: call_function: calling ‘bus_message_read_in_addr_auto’ from ‘bus_message_read_dns_one’
systemd-258/src/shared/bus-message-util.c:132:13: return_function: returning to ‘bus_message_read_dns_one’ from ‘bus_message_read_in_addr_auto’
systemd-258/src/shared/bus-message-util.c:133:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-message-util.c:136:14: branch_false: ...to here
systemd-258/src/shared/bus-message-util.c:136:14: danger: use of uninitialized value ‘family’ here
#  134|                   return r;
#  135|   
#  136|->         if (!dns_server_address_valid(family, &a)) {
#  137|                   r = sd_bus_error_set(reterr_error, SD_BUS_ERROR_INVALID_ARGS, "Invalid DNS server address");
#  138|                   assert(r < 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1368]
systemd-258/src/shared/bus-unit-procs.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/shared/bus-unit-procs.c:328:5: enter_function: entry to ‘unit_show_processes’
systemd-258/src/shared/bus-unit-procs.c:342:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:343:9: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:343:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:345:13: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:360:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:363:19: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:364:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:367:13: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:368:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:376:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:378:20: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:378:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:381:21: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:381:21: call_function: calling ‘add_process’ from ‘unit_show_processes’
#   77|           cg->parent = parent;
#   78|   
#   79|->         r = hashmap_put(cgroups, cg->cgroup_path, cg);
#   80|           if (r < 0) {
#   81|                   if (!is_const)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1369]
systemd-258/src/shared/bus-unit-procs.c:79:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cg’
systemd-258/src/shared/bus-unit-procs.c:328:5: enter_function: entry to ‘unit_show_processes’
systemd-258/src/shared/bus-unit-procs.c:342:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:343:9: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:343:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:345:13: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:360:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:363:19: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:364:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:367:13: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:368:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:376:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:378:20: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:378:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:381:21: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:381:21: call_function: calling ‘add_process’ from ‘unit_show_processes’
#   77|           cg->parent = parent;
#   78|   
#   79|->         r = hashmap_put(cgroups, cg->cgroup_path, cg);
#   80|           if (r < 0) {
#   81|                   if (!is_const)

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1370]
systemd-258/src/shared/bus-unit-procs.c:120:16: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cg’
systemd-258/src/shared/bus-unit-procs.c:328:5: enter_function: entry to ‘unit_show_processes’
systemd-258/src/shared/bus-unit-procs.c:342:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:343:9: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:343:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:345:13: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:360:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:363:19: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:364:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:367:13: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:406:16: branch_true: following ‘true’ branch...
systemd-258/src/shared/bus-unit-procs.c:407:16: branch_true: ...to here
systemd-258/src/shared/bus-unit-procs.c:407:16: call_function: calling ‘remove_cgroup’ from ‘unit_show_processes’
#  118|           assert(cg);
#  119|   
#  120|->         while (cg->children)
#  121|                   remove_cgroup(cgroups, cg->children);
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def1371]
systemd-258/src/shared/bus-unit-procs.c:126:17: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*cg.cgroup_path’
systemd-258/src/shared/bus-unit-procs.c:328:5: enter_function: entry to ‘unit_show_processes’
systemd-258/src/shared/bus-unit-procs.c:342:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:343:9: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:343:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:345:13: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:360:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:363:19: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:364:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-unit-procs.c:367:13: branch_false: ...to here
systemd-258/src/shared/bus-unit-procs.c:406:16: branch_true: following ‘true’ branch...
systemd-258/src/shared/bus-unit-procs.c:407:16: branch_true: ...to here
systemd-258/src/shared/bus-unit-procs.c:407:16: call_function: calling ‘remove_cgroup’ from ‘unit_show_processes’
#  124|   
#  125|           if (!cg->is_const)
#  126|->                 free(cg->cgroup_path);
#  127|   
#  128|           hashmap_free(cg->pids);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1372]
systemd-258/src/shared/bus-wait-for-units.c:68:9: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
systemd-258/src/shared/bus-wait-for-units.c:279:5: enter_function: entry to ‘bus_wait_for_units_add_unit’
systemd-258/src/shared/bus-wait-for-units.c:290:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:291:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:291:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:292:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:292:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:294:20: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:295:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:298:13: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:298:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:301:16: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_add_unit’
systemd-258/src/shared/bus-wait-for-units.c:302:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:305:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:313:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/bus-wait-for-units.c:314:21: branch_true: ...to here
systemd-258/src/shared/bus-wait-for-units.c:286:53: call_function: inlined call to ‘wait_for_item_freep’ from ‘bus_wait_for_units_add_unit’
#   66|           }
#   67|   
#   68|->         sd_bus_slot_unref(item->slot_properties_changed);
#   69|           sd_bus_slot_unref(item->slot_get_all);
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1373]
systemd-258/src/shared/bus-wait-for-units.c:69:9: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
systemd-258/src/shared/bus-wait-for-units.c:279:5: enter_function: entry to ‘bus_wait_for_units_add_unit’
systemd-258/src/shared/bus-wait-for-units.c:290:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:291:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:291:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:292:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:292:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:294:20: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:295:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:298:13: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:298:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:301:16: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_add_unit’
systemd-258/src/shared/bus-wait-for-units.c:302:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:305:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:313:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/bus-wait-for-units.c:314:21: branch_true: ...to here
systemd-258/src/shared/bus-wait-for-units.c:286:53: call_function: inlined call to ‘wait_for_item_freep’ from ‘bus_wait_for_units_add_unit’
#   67|   
#   68|           sd_bus_slot_unref(item->slot_properties_changed);
#   69|->         sd_bus_slot_unref(item->slot_get_all);
#   70|   
#   71|           free(item->bus_path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1374]
systemd-258/src/shared/bus-wait-for-units.c:83:17: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#   81|   static void call_unit_callback_and_wait(BusWaitForUnits *d, WaitForItem *item, bool good) {
#   82|           if (item->unit_callback)
#   83|->                 item->unit_callback(d, item->bus_path, good, item->userdata);
#   84|   
#   85|           wait_for_item_free(item);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1375]
systemd-258/src/shared/bus-wait-for-units.c:93:32: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#   91|           assert(d);
#   92|   
#   93|->         d->slot_disconnected = sd_bus_slot_unref(d->slot_disconnected);
#   94|           d->bus = sd_bus_unref(d->bus);
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1376]
systemd-258/src/shared/bus-wait-for-units.c:93:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*d.slot_disconnected’
systemd-258/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#   91|           assert(d);
#   92|   
#   93|->         d->slot_disconnected = sd_bus_slot_unref(d->slot_disconnected);
#   94|           d->bus = sd_bus_unref(d->bus);
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1377]
systemd-258/src/shared/bus-wait-for-units.c:94:18: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/shared/bus-wait-for-units.c:115:5: enter_function: entry to ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:119:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:120:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:122:13: call_function: inlined call to ‘malloc_multiply’ from ‘bus_wait_for_units_new’
systemd-258/src/shared/bus-wait-for-units.c:123:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/bus-wait-for-units.c:128:24: branch_false: ...to here
systemd-258/src/shared/bus-wait-for-units.c:116:62: call_function: calling ‘bus_wait_for_units_freep’ from ‘bus_wait_for_units_new’
#   92|   
#   93|           d->slot_disconnected = sd_bus_slot_unref(d->slot_disconnected);
#   94|->         d->bus = sd_bus_unref(d->bus);
#   95|   
#   96|           while ((item = hashmap_first(d->items)))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1378]
systemd-258/src/shared/conf-parser.c:355:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘section’
systemd-258/src/shared/conf-parser.c:482:12: enter_function: entry to ‘config_parse_many_files’
systemd-258/src/shared/conf-parser.c:499:12: branch_true: following ‘true’ branch (when ‘ret_stats_by_path’ is non-NULL)...
systemd-258/src/shared/conf-parser.c:500:33: branch_true: ...to here
systemd-258/src/shared/conf-parser.c:501:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:505:9: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:541:9: branch_true: following ‘true’ branch...
systemd-258/src/shared/conf-parser.c:545:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:547:20: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:547:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:550:21: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:550:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:560:21: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:560:21: call_function: calling ‘config_parse’ from ‘config_parse_many_files’
#  353|   
#  354|                   l = skip_leading_chars(buf, WHITESPACE);
#  355|->                 if (*l != '\0' && strchr(COMMENTS, *l))
#  356|                           continue;
#  357|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1379]
systemd-258/src/shared/conf-parser.c:476:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(path)’
systemd-258/src/shared/conf-parser.c:671:12: enter_function: entry to ‘dropins_get_stats_by_path’
systemd-258/src/shared/conf-parser.c:680:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:681:9: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:681:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:682:9: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:682:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:684:13: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:685:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:687:12: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:687:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:690:14: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:690:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:693:13: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:694:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:697:9: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:697:9: branch_true: following ‘true’ branch...
systemd-258/src/shared/conf-parser.c:700:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/conf-parser.c:707:21: branch_false: ...to here
systemd-258/src/shared/conf-parser.c:707:21: call_function: calling ‘hashmap_put_stats_by_path’ from ‘dropins_get_stats_by_path’
#  474|                   return r;
#  475|   
#  476|->         assert(r > 0);
#  477|           TAKE_PTR(path_copy);
#  478|           TAKE_PTR(st_copy);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1380]
systemd-258/src/shared/conf-parser.h:145:1: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/network/netdev/macsec.c:142:12: enter_function: entry to ‘macsec_receive_channel_new_static’
systemd-258/src/network/netdev/macsec.c:147:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:148:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:149:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:149:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:150:9: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:150:9: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:152:13: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:153:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:156:13: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:157:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:162:13: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:162:13: call_function: calling ‘macsec_receive_channel_new’ from ‘macsec_receive_channel_new_static’
systemd-258/src/network/netdev/macsec.c:162:13: return_function: returning to ‘macsec_receive_channel_new_static’ from ‘macsec_receive_channel_new’
systemd-258/src/network/netdev/macsec.c:163:12: branch_false: following ‘false’ branch...
systemd-258/src/network/netdev/macsec.c:166:22: branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:144:65: call_function: inlined call to ‘macsec_receive_channel_freep’ from ‘macsec_receive_channel_new_static’
systemd-258/src/network/netdev/macsec.c:143:56: call_function: inlined call to ‘config_section_freep’ from ‘macsec_receive_channel_new_static’
 branch_false: ...to here
systemd-258/src/network/netdev/macsec.c:143:56: call_function: inlined call to ‘config_section_freep’ from ‘macsec_receive_channel_new_static’
#  143|           return mfree(cs);
#  144|   }
#  145|-> DEFINE_TRIVIAL_CLEANUP_FUNC(ConfigSection*, config_section_free);
#  146|   
#  147|   int config_section_new(const char *filename, unsigned line, ConfigSection **ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1381]
systemd-258/src/shared/conf-parser.h:145:1: warning[-Wanalyzer-malloc-leak]: leak of ‘neighbor’
systemd-258/src/network/networkd-neighbor.c:99:12: enter_function: entry to ‘neighbor_new_static’
systemd-258/src/network/networkd-neighbor.c:104:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-neighbor.c:105:9: branch_false: ...to here
systemd-258/src/network/networkd-neighbor.c:105:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-neighbor.c:106:9: branch_false: ...to here
systemd-258/src/network/networkd-neighbor.c:106:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-neighbor.c:107:9: branch_false: ...to here
systemd-258/src/network/networkd-neighbor.c:107:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-neighbor.c:109:13: branch_false: ...to here
systemd-258/src/network/networkd-neighbor.c:110:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-neighbor.c:113:20: branch_false: ...to here
systemd-258/src/network/networkd-neighbor.c:114:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-neighbor.c:119:13: branch_false: ...to here
systemd-258/src/network/networkd-neighbor.c:119:13: call_function: calling ‘neighbor_new’ from ‘neighbor_new_static’
systemd-258/src/network/networkd-neighbor.c:119:13: return_function: returning to ‘neighbor_new_static’ from ‘neighbor_new’
systemd-258/src/network/networkd-neighbor.c:120:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-neighbor.c:123:17: branch_false: ...to here
systemd-258/src/network/networkd-neighbor.c:101:46: call_function: inlined call to ‘neighbor_unrefp’ from ‘neighbor_new_static’
systemd-258/src/network/networkd-neighbor.c:100:56: call_function: inlined call to ‘config_section_freep’ from ‘neighbor_new_static’
 branch_false: ...to here
systemd-258/src/network/networkd-neighbor.c:100:56: call_function: inlined call to ‘config_section_freep’ from ‘neighbor_new_static’
#  143|           return mfree(cs);
#  144|   }
#  145|-> DEFINE_TRIVIAL_CLEANUP_FUNC(ConfigSection*, config_section_free);
#  146|   
#  147|   int config_section_new(const char *filename, unsigned line, ConfigSection **ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1382]
systemd-258/src/shared/conf-parser.h:145:1: warning[-Wanalyzer-malloc-leak]: leak of ‘static_lease’
systemd-258/src/network/networkd-dhcp-server-static-lease.c:43:12: enter_function: entry to ‘lease_new_static’
systemd-258/src/network/networkd-dhcp-server-static-lease.c:48:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-server-static-lease.c:49:9: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-server-static-lease.c:49:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-server-static-lease.c:50:9: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-server-static-lease.c:50:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-server-static-lease.c:51:9: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-server-static-lease.c:51:9: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-server-static-lease.c:53:13: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-server-static-lease.c:54:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-server-static-lease.c:57:24: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-server-static-lease.c:58:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-server-static-lease.c:63:13: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-server-static-lease.c:63:13: call_function: calling ‘dhcp_static_lease_new’ from ‘lease_new_static’
systemd-258/src/network/networkd-dhcp-server-static-lease.c:63:13: return_function: returning to ‘lease_new_static’ from ‘dhcp_static_lease_new’
systemd-258/src/network/networkd-dhcp-server-static-lease.c:64:12: branch_false: following ‘false’ branch...
systemd-258/src/network/networkd-dhcp-server-static-lease.c:67:21: branch_false: ...to here
systemd-258/src/network/networkd-dhcp-server-static-lease.c:45:61: call_function: inlined call to ‘dhcp_static_lease_freep’ from ‘lease_new_static’
systemd-258/src/network/networkd-dhcp-server-static-lease.c:44:56: call_function: inlined call to ‘config_section_freep’ from ‘lease_new_static’
 branch_false: ...to here
systemd-258/src/network/networkd-dhcp-server-static-lease.c:44:56: call_function: inlined call to ‘config_section_freep’ from ‘lease_new_static’
#  143|           return mfree(cs);
#  144|   }
#  145|-> DEFINE_TRIVIAL_CLEANUP_FUNC(ConfigSection*, config_section_free);
#  146|   
#  147|   int config_section_new(const char *filename, unsigned line, ConfigSection **ret);

Error: CPPCHECK_WARNING (CWE-457): [#def1383]
systemd-258/src/shared/cpu-set-util.c:69: warning[uninitvar]: Uninitialized variable: end
#   67|           }
#   68|   
#   69|->         if (in_range && add_range(&str, start, end) < 0)
#   70|                   return NULL;
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1384]
systemd-258/src/shared/creds-util.c:601:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(l + 1)’
systemd-258/src/shared/creds-util.c:451:5: enter_function: entry to ‘get_credential_host_secret’
systemd-258/src/shared/creds-util.c:459:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:462:25: branch_false: ...to here
systemd-258/src/shared/creds-util.c:463:12: branch_false: following ‘false’ branch (when ‘e’ is NULL)...
systemd-258/src/shared/creds-util.c:485:9: branch_false: ...to here
systemd-258/src/shared/creds-util.c:485:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:487:9: call_function: inlined call to ‘mkdir_parents’ from ‘get_credential_host_secret’
systemd-258/src/shared/creds-util.c:489:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:492:13: branch_false: ...to here
systemd-258/src/shared/creds-util.c:508:20: branch_false: following ‘false’ branch (when ‘attempt != 3’)...
systemd-258/src/shared/creds-util.c:512:22: branch_false: ...to here
systemd-258/src/shared/creds-util.c:513:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:530:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:530:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:533:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:534:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:536:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:538:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:543:22: branch_false: ...to here
systemd-258/src/shared/creds-util.c:543:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:548:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:549:20: branch_false: following ‘false’ branch (when ‘l > 16’)...
systemd-258/src/shared/creds-util.c:552:20: branch_false: ...to here
systemd-258/src/shared/creds-util.c:552:20: branch_false: following ‘false’ branch (when ‘l <= 16777216’)...
systemd-258/src/shared/creds-util.c:556:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:556:21: acquire_memory: allocated here
systemd-258/src/shared/creds-util.c:557:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:560:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:561:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:564:20: branch_false: ...to here
systemd-258/src/shared/creds-util.c:564:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:568:21: call_function: inlined call to ‘sd_id128_equal’ from ‘get_credential_host_secret’
systemd-258/src/shared/creds-util.c:594:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:599:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:599:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:601:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:601:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:603:20: branch_false: ...to here
systemd-258/src/shared/creds-util.c:603:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:607:21: branch_false: ...to here
systemd-258/src/shared/creds-util.c:607:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:503:37: call_function: inlined call to ‘closep’ from ‘get_credential_host_secret’
systemd-258/src/shared/creds-util.c:502:82: call_function: inlined call to ‘erase_and_freep’ from ‘get_credential_host_secret’
systemd-258/src/shared/creds-util.c:601:21: danger: ‘malloc(l + 1)’ leaks here; was allocated at [(27)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/26)
#  599|                   if (fstat(fd, &st) < 0)
#  600|                           return log_debug_errno(errno, "Failed to stat %s/%s: %m", dirname, filename);
#  601|->                 if (st.st_nlink == 0) /* Already deleted by now? */
#  602|                           continue;
#  603|                   if (st.st_nlink != 1) /* Safety check, someone is playing games with us */

Error: CPPCHECK_WARNING (CWE-768): [#def1385]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,

Error: CPPCHECK_WARNING (CWE-768): [#def1386]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,

Error: CPPCHECK_WARNING (CWE-768): [#def1387]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}})' depends on order of evaluation [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1388]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1389]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1390]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1391]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1392]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1393]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1394]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1395]
systemd-258/src/shared/creds-util.c:826: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes= [...]
#  824|           assert(ret);
#  825|   
#  826|->         if (!sd_id128_in_set(with_key,
#  827|                                _CRED_AUTO,
#  828|                                _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:826: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1396]
systemd-258/src/shared/creds-util.c:858: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}})' depends on order of evaluation of side effects
#  856|           }
#  857|   
#  858|->         if (sd_id128_in_set(with_key,
#  859|                               _CRED_AUTO_SCOPED,
#  860|                               CRED_AES256_GCM_BY_HOST_SCOPED,

Error: CPPCHECK_WARNING (CWE-768): [#def1397]
systemd-258/src/shared/creds-util.c:858: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of side effects
#  856|           }
#  857|   
#  858|->         if (sd_id128_in_set(with_key,
#  859|                               _CRED_AUTO_SCOPED,
#  860|                               CRED_AES256_GCM_BY_HOST_SCOPED,

Error: CPPCHECK_WARNING (CWE-768): [#def1398]
systemd-258/src/shared/creds-util.c:858: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes={0xad,0xbc,0x4c,0xa3,0xef,0xb6,0x42,0x01,0xba,0x88,0x1b,0x6f,0x2e,0x40,0x95,0xea}})' depends on order of evaluation [...]
#  856|           }
#  857|   
#  858|->         if (sd_id128_in_set(with_key,
#  859|                               _CRED_AUTO_SCOPED,
#  860|                               CRED_AES256_GCM_BY_HOST_SCOPED,
systemd-258/src/shared/creds-util.c:858: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1399]
systemd-258/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,

Error: CPPCHECK_WARNING (CWE-768): [#def1400]
systemd-258/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}})' depends on order of evaluation of side effects
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,

Error: CPPCHECK_WARNING (CWE-768): [#def1401]
systemd-258/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}})' depends on order of evaluation [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1402]
systemd-258/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes= [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1403]
systemd-258/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes= [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1404]
systemd-258/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes= [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1405]
systemd-258/src/shared/creds-util.c:869: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes= [...]
#  867|                   uid = UID_INVALID;
#  868|   
#  869|->         if (sd_id128_in_set(with_key,
#  870|                               _CRED_AUTO,
#  871|                               _CRED_AUTO_SCOPED,
systemd-258/src/shared/creds-util.c:869: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1406]
systemd-258/src/shared/creds-util.c:882: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  880|                                   CREDENTIAL_SECRET_GENERATE|
#  881|                                   CREDENTIAL_SECRET_WARN_NOT_ENCRYPTED|
#  882|->                                 (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED) ? CREDENTIAL_SECRET_FAIL_ON_TEMPORARY_FS : 0),
#  883|                                   &host_key);
#  884|                   if (r == -ENOMEDIUM && sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED))

Error: CPPCHECK_WARNING (CWE-768): [#def1407]
systemd-258/src/shared/creds-util.c:884: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  882|                                   (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED) ? CREDENTIAL_SECRET_FAIL_ON_TEMPORARY_FS : 0),
#  883|                                   &host_key);
#  884|->                 if (r == -ENOMEDIUM && sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED))
#  885|                           log_debug_errno(r, "Credential host secret location on temporary file system, not using.");
#  886|                   else if (r < 0)

Error: CPPCHECK_WARNING (CWE-768): [#def1408]
systemd-258/src/shared/creds-util.c:892: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
#  890|   #if HAVE_TPM2
#  891|           bool try_tpm2;
#  892|->         if (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED)) {
#  893|                   /* If automatic mode is selected lets see if a TPM2 it is present. If we are running in a
#  894|                    * container tpm2_support will detect this, and will return a different flag combination of

Error: CPPCHECK_WARNING (CWE-768): [#def1409]
systemd-258/src/shared/creds-util.c:892: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  890|   #if HAVE_TPM2
#  891|           bool try_tpm2;
#  892|->         if (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED)) {
#  893|                   /* If automatic mode is selected lets see if a TPM2 it is present. If we are running in a
#  894|                    * container tpm2_support will detect this, and will return a different flag combination of

Error: CPPCHECK_WARNING (CWE-768): [#def1410]
systemd-258/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}})' depends on order of evaluation of side effects
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,

Error: CPPCHECK_WARNING (CWE-768): [#def1411]
systemd-258/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}})' depends on order of evaluation of side effects
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,

Error: CPPCHECK_WARNING (CWE-768): [#def1412]
systemd-258/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation [...]
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,
systemd-258/src/shared/creds-util.c:901: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1413]
systemd-258/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes= [...]
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,
systemd-258/src/shared/creds-util.c:901: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1414]
systemd-258/src/shared/creds-util.c:901: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes= [...]
#  899|                           log_debug("System lacks TPM2 support or running in a container, not attempting to use TPM2.");
#  900|           } else
#  901|->                 try_tpm2 = sd_id128_in_set(with_key,
#  902|                                              CRED_AES256_GCM_BY_TPM2_HMAC,
#  903|                                              CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK,
systemd-258/src/shared/creds-util.c:901: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1415]
systemd-258/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,

Error: CPPCHECK_WARNING (CWE-768): [#def1416]
systemd-258/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,

Error: CPPCHECK_WARNING (CWE-768): [#def1417]
systemd-258/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}})' depends on order of evaluation [...]
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:910: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1418]
systemd-258/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes= [...]
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:910: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1419]
systemd-258/src/shared/creds-util.c:910: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}}),((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes= [...]
#  908|   
#  909|           if (try_tpm2) {
#  910|->                 if (sd_id128_in_set(with_key,
#  911|                                       _CRED_AUTO,
#  912|                                       _CRED_AUTO_INITRD,
systemd-258/src/shared/creds-util.c:910: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1420]
systemd-258/src/shared/creds-util.c:922: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
#  920|                           r = tpm2_load_pcr_public_key(tpm2_pubkey_path, &pubkey.iov_base, &pubkey.iov_len);
#  921|                           if (r < 0) {
#  922|->                                 if (tpm2_pubkey_path || r != -ENOENT || !sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED))
#  923|                                           return log_error_errno(r, "Failed to read TPM PCR public key: %m");
#  924|   

Error: CPPCHECK_WARNING (CWE-768): [#def1421]
systemd-258/src/shared/creds-util.c:922: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  920|                           r = tpm2_load_pcr_public_key(tpm2_pubkey_path, &pubkey.iov_base, &pubkey.iov_len);
#  921|                           if (r < 0) {
#  922|->                                 if (tpm2_pubkey_path || r != -ENOENT || !sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED))
#  923|                                           return log_error_errno(r, "Failed to read TPM PCR public key: %m");
#  924|   

Error: CPPCHECK_WARNING (CWE-768): [#def1422]
systemd-258/src/shared/creds-util.c:985: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
#  983|                           if (sd_id128_equal(with_key, _CRED_AUTO_INITRD))
#  984|                                   log_warning("TPM2 present and used, but we didn't manage to talk to it. Credential will be refused if SecureBoot is enabled.");
#  985|->                         else if (!sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_SCOPED))
#  986|                                   return log_error_errno(r, "Failed to seal to TPM2: %m");
#  987|   

Error: CPPCHECK_WARNING (CWE-768): [#def1423]
systemd-258/src/shared/creds-util.c:1002: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}})' depends on order of evaluation of side effects
# 1000|   #endif
# 1001|   
# 1002|->         if (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED)) {
# 1003|                   /* Let's settle the key type in auto mode now. */
# 1004|   

Error: CPPCHECK_WARNING (CWE-768): [#def1424]
systemd-258/src/shared/creds-util.c:1002: error[unknownEvaluationOrder]: Expression 'with_key,((const union sd_id128){.bytes={0xa2,0x19,0xcb,0x07,0x85,0xb2,0x4c,0x04,0xb1,0x6d,0x18,0xca,0xb9,0xd2,0xee,0x01}}),((const union sd_id128){.bytes={0x02,0xdc,0x8e,0xde,0x3a,0x02,0x43,0xab,0xa9,0xec,0x54,0x9c,0x05,0xe6,0xa0,0x71}}),((const union sd_id128){.bytes={0x23,0x88,0x96,0x85,0x6f,0x74,0x48,0x8a,0x9c,0x78,0x6f,0x6a,0xb0,0xe7,0x3b,0x6a}})' depends on order of evaluation of side effects
# 1000|   #endif
# 1001|   
# 1002|->         if (sd_id128_in_set(with_key, _CRED_AUTO, _CRED_AUTO_INITRD, _CRED_AUTO_SCOPED)) {
# 1003|                   /* Let's settle the key type in auto mode now. */
# 1004|   

Error: CPPCHECK_WARNING (CWE-768): [#def1425]
systemd-258/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}})' depends on order of evaluation of side effects
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;

Error: CPPCHECK_WARNING (CWE-768): [#def1426]
systemd-258/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}})' depends on order of evaluation of side effects
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;

Error: CPPCHECK_WARNING (CWE-768): [#def1427]
systemd-258/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of [...]
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
systemd-258/src/shared/creds-util.c:1221: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1428]
systemd-258/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes={0x [...]
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
systemd-258/src/shared/creds-util.c:1221: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1429]
systemd-258/src/shared/creds-util.c:1221: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x5a,0x1c,0x6a,0x86,0xdf,0x9d,0x40,0x96,0xb1,0xd5,0xa6,0x5e,0x08,0x62,0xf1,0x9a}}),((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes={0x [...]
# 1219|                   return log_error_errno(SYNTHETIC_ERRNO(EBADMSG), "Encrypted file too short.");
# 1220|   
# 1221|->         with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
systemd-258/src/shared/creds-util.c:1221: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1430]
systemd-258/src/shared/creds-util.c:1222: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0xaf,0x49,0x50,0xa8,0x49,0x13,0x4e,0xb1,0xa7,0x38,0x46,0x30,0x4f,0xf3,0x0c,0x05}})' depends on order of evaluation of side effects
# 1220|   
# 1221|           with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|->         with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);

Error: CPPCHECK_WARNING (CWE-768): [#def1431]
systemd-258/src/shared/creds-util.c:1222: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0xfa,0xf7,0xeb,0x93,0x41,0xe3,0x41,0x2c,0xa1,0xa4,0x36,0xf9,0x5a,0x29,0x36,0x2f}}),((const union sd_id128){.bytes={0xaf,0x49,0x50,0xa8,0x49,0x13,0x4e,0xb1,0xa7,0x38,0x46,0x30,0x4f,0xf3,0x0c,0x05}}),((const union sd_id128){.bytes={0xad,0xbc,0x4c,0xa3,0xef,0xb6,0x42,0x01,0xba,0x88,0x1b,0x6f,0x2e,0x40,0x95,0xea}})' depends on order of evaluation of side effects
# 1220|   
# 1221|           with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|->         with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);

Error: CPPCHECK_WARNING (CWE-768): [#def1432]
systemd-258/src/shared/creds-util.c:1223: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}})' depends on order of evaluation of side effects
# 1221|           with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|->         with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);
# 1225|           with_scope = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);

Error: CPPCHECK_WARNING (CWE-768): [#def1433]
systemd-258/src/shared/creds-util.c:1223: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x0c,0x7c,0xc0,0x7b,0x11,0x76,0x45,0x91,0x9c,0x4b,0x0b,0xea,0x08,0xbc,0x20,0xfe}}),((const union sd_id128){.bytes={0x93,0xa8,0x94,0x09,0x48,0x74,0x44,0x90,0x90,0xca,0xf2,0xfc,0x93,0xca,0xb5,0x53}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of side effects
# 1221|           with_host_key = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1222|           with_tpm2_pk = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1223|->         with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);
# 1225|           with_scope = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);

Error: CPPCHECK_WARNING (CWE-768): [#def1434]
systemd-258/src/shared/creds-util.c:1225: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}})' depends on order of evaluation of side effects
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);
# 1225|->         with_scope = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1226|   
# 1227|           if (!with_host_key && !with_tpm2 && !with_null)

Error: CPPCHECK_WARNING (CWE-768): [#def1435]
systemd-258/src/shared/creds-util.c:1225: error[unknownEvaluationOrder]: Expression 'h->id,((const union sd_id128){.bytes={0x55,0xb9,0xed,0x1d,0x38,0x59,0x4d,0x43,0xa8,0x31,0x9d,0x2e,0xbb,0x33,0x2a,0xc6}}),((const union sd_id128){.bytes={0xef,0x4a,0xc1,0x36,0x79,0xa9,0x48,0x0e,0xa7,0xdb,0x68,0x89,0x7f,0x9f,0x16,0x5d}}),((const union sd_id128){.bytes={0xad,0xbc,0x4c,0xa3,0xef,0xb6,0x42,0x01,0xba,0x88,0x1b,0x6f,0x2e,0x40,0x95,0xea}})' depends on order of evaluation of side effects
# 1223|           with_tpm2 = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED) || with_tpm2_pk;
# 1224|           with_null = sd_id128_equal(h->id, CRED_AES256_GCM_BY_NULL);
# 1225|->         with_scope = sd_id128_in_set(h->id, CRED_AES256_GCM_BY_HOST_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_SCOPED, CRED_AES256_GCM_BY_HOST_AND_TPM2_HMAC_WITH_PK_SCOPED);
# 1226|   
# 1227|           if (!with_host_key && !with_tpm2 && !with_null)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1436]
systemd-258/src/shared/creds-util.c:1812:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open_credentials_dir()’
systemd-258/src/shared/creds-util.c:1775:5: enter_function: entry to ‘pick_up_credentials’
systemd-258/src/shared/creds-util.c:1779:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:1780:9: branch_false: ...to here
systemd-258/src/shared/creds-util.c:1780:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/creds-util.c:1782:29: branch_false: ...to here
systemd-258/src/shared/creds-util.c:1782:29: call_function: calling ‘open_credentials_dir’ from ‘pick_up_credentials’
systemd-258/src/shared/creds-util.c:1782:29: return_function: returning to ‘pick_up_credentials’ from ‘open_credentials_dir’
systemd-258/src/shared/creds-util.c:1812:1: danger: ‘open_credentials_dir()’ leaks here; was opened at [(23)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/22)
# 1810|   
# 1811|           return ret;
# 1812|-> }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1437]
systemd-258/src/shared/discover-image.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258/src/shared/discover-image.c:847:5: enter_function: entry to ‘image_from_path’
systemd-258/src/shared/discover-image.c:854:24: call_function: calling ‘image_make’ from ‘image_from_path’
#  127|   
#  128|           free(i->hostname);
#  129|->         strv_free(i->machine_info);
#  130|           strv_free(i->os_release);
#  131|           strv_free(i->sysext_release);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1438]
systemd-258/src/shared/discover-image.c:130:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258/src/shared/discover-image.c:847:5: enter_function: entry to ‘image_from_path’
systemd-258/src/shared/discover-image.c:854:24: call_function: calling ‘image_make’ from ‘image_from_path’
#  128|           free(i->hostname);
#  129|           strv_free(i->machine_info);
#  130|->         strv_free(i->os_release);
#  131|           strv_free(i->sysext_release);
#  132|           strv_free(i->confext_release);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1439]
systemd-258/src/shared/discover-image.c:131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258/src/shared/discover-image.c:847:5: enter_function: entry to ‘image_from_path’
systemd-258/src/shared/discover-image.c:854:24: call_function: calling ‘image_make’ from ‘image_from_path’
#  129|           strv_free(i->machine_info);
#  130|           strv_free(i->os_release);
#  131|->         strv_free(i->sysext_release);
#  132|           strv_free(i->confext_release);
#  133|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1440]
systemd-258/src/shared/discover-image.c:132:9: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
systemd-258/src/shared/discover-image.c:847:5: enter_function: entry to ‘image_from_path’
systemd-258/src/shared/discover-image.c:854:24: call_function: calling ‘image_make’ from ‘image_from_path’
#  130|           strv_free(i->os_release);
#  131|           strv_free(i->sysext_release);
#  132|->         strv_free(i->confext_release);
#  133|   
#  134|           return mfree(i);

Error: CPPCHECK_WARNING (CWE-457): [#def1441]
systemd-258/src/shared/dissect-image.c:4638: error[uninitvar]: Uninitialized variable: i
# 4636|                   };
# 4637|   
# 4638|->                 r = sd_json_dispatch(i, partition_dispatch_table, SD_JSON_ALLOW_EXTENSIONS, &pp);
# 4639|                   if (r < 0)
# 4640|                           return log_error_errno(r, "Failed to parse partition data: %m");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1442]
systemd-258/src/shared/edit-util.c:285:17: warning[-Wanalyzer-null-argument]: use of NULL ‘stdin_data’ where non-null expected
systemd-258/src/shared/edit-util.c:462:5: enter_function: entry to ‘do_edit_files_and_install’
systemd-258/src/shared/edit-util.c:463:30: release_memory: ‘stdin_data’ is NULL
systemd-258/src/shared/edit-util.c:467:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:469:13: branch_false: ...to here
systemd-258/src/shared/edit-util.c:469:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:472:13: branch_false: ...to here
systemd-258/src/shared/edit-util.c:472:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:477:17: branch_false: ...to here
systemd-258/src/shared/edit-util.c:477:17: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:483:21: branch_false: ...to here
systemd-258/src/shared/edit-util.c:483:21: call_function: calling ‘run_editor’ from ‘do_edit_files_and_install’
#  283|                   *mempcpy_typesafe(mempcpy_typesafe(cmdline, editor, editor_n), args, strv_length(args)) = NULL;
#  284|   
#  285|->                 execvp(cmdline[0], cmdline);
#  286|                   log_warning_errno(errno, "Specified editor '%s' not available, trying fallbacks: %m", editor[0]);
#  287|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1443]
systemd-258/src/shared/edit-util.c:286:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/shared/edit-util.c:462:5: enter_function: entry to ‘do_edit_files_and_install’
systemd-258/src/shared/edit-util.c:467:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:469:13: branch_false: ...to here
systemd-258/src/shared/edit-util.c:469:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:472:13: branch_false: ...to here
systemd-258/src/shared/edit-util.c:472:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:477:17: branch_false: ...to here
systemd-258/src/shared/edit-util.c:477:17: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:483:21: branch_false: ...to here
systemd-258/src/shared/edit-util.c:483:21: call_function: calling ‘run_editor’ from ‘do_edit_files_and_install’
#  284|   
#  285|                   execvp(cmdline[0], cmdline);
#  286|->                 log_warning_errno(errno, "Specified editor '%s' not available, trying fallbacks: %m", editor[0]);
#  287|           }
#  288|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1444]
systemd-258/src/shared/edit-util.c:368:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
systemd-258/src/shared/edit-util.c:327:12: enter_function: entry to ‘strip_edit_temp_file’
systemd-258/src/shared/edit-util.c:328:30: release_memory: ‘old_contents’ is NULL
systemd-258/src/shared/edit-util.c:333:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:334:9: branch_false: ...to here
systemd-258/src/shared/edit-util.c:334:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:335:9: branch_false: ...to here
systemd-258/src/shared/edit-util.c:335:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:336:9: branch_false: ...to here
systemd-258/src/shared/edit-util.c:336:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:338:13: branch_false: ...to here
systemd-258/src/shared/edit-util.c:339:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:342:15: branch_false: ...to here
systemd-258/src/shared/edit-util.c:343:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:346:23: branch_false: ...to here
systemd-258/src/shared/edit-util.c:346:23: branch_true: following ‘true’ branch...
systemd-258/src/shared/edit-util.c:346:52: branch_true: ...to here
systemd-258/src/shared/edit-util.c:346:23: branch_false: following ‘false’ branch...
systemd-258/src/shared/edit-util.c:352:34: branch_false: ...to here
systemd-258/src/shared/edit-util.c:352:34: call_function: calling ‘strstrafter’ from ‘strip_edit_temp_file’
systemd-258/src/shared/edit-util.c:352:34: return_function: returning to ‘strip_edit_temp_file’ from ‘strstrafter’
systemd-258/src/shared/edit-util.c:352:34: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/edit-util.c:355:20: branch_false: following ‘false’ branch (when ‘contents_end’ is NULL)...
systemd-258/src/shared/edit-util.c:358:28: branch_false: ...to here
systemd-258/src/shared/edit-util.c:365:20: branch_true: following ‘true’ branch (when ‘with_marker != 0’)...
systemd-258/src/shared/edit-util.c:366:42: branch_true: ...to here
systemd-258/src/shared/edit-util.c:367:37: call_function: inlined call to ‘skip_leading_chars’ from ‘strip_edit_temp_file’
systemd-258/src/shared/edit-util.c:368:37: branch_true: ...to here
systemd-258/src/shared/edit-util.c:368:37: danger: dereference of NULL ‘<unknown>’
#  366|                           for (const char *p = old_contents;;) {
#  367|                                   p = skip_leading_chars(p, WHITESPACE);
#  368|->                                 if (*p == '\0')
#  369|                                           break;
#  370|                                   if (*p != '#') {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1445]
systemd-258/src/shared/efi-api.c:214:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
systemd-258/src/shared/efi-api.c:205:5: enter_function: entry to ‘efi_get_reboot_to_firmware’
systemd-258/src/shared/efi-api.c:210:13: call_function: calling ‘get_os_indications’ from ‘efi_get_reboot_to_firmware’
systemd-258/src/shared/efi-api.c:210:13: return_function: returning to ‘efi_get_reboot_to_firmware’ from ‘get_os_indications’
systemd-258/src/shared/efi-api.c:211:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/efi-api.c:214:16: branch_false: ...to here
systemd-258/src/shared/efi-api.c:214:16: danger: use of uninitialized value ‘b’ here
#  212|                   return r;
#  213|   
#  214|->         return !!(b & EFI_OS_INDICATIONS_BOOT_TO_FW_UI);
#  215|   #else
#  216|           return -EOPNOTSUPP;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1446]
systemd-258/src/shared/efi-api.c:229:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘b’
systemd-258/src/shared/efi-api.c:220:5: enter_function: entry to ‘efi_set_reboot_to_firmware’
systemd-258/src/shared/efi-api.c:225:13: call_function: calling ‘get_os_indications’ from ‘efi_set_reboot_to_firmware’
systemd-258/src/shared/efi-api.c:225:13: return_function: returning to ‘efi_set_reboot_to_firmware’ from ‘get_os_indications’
systemd-258/src/shared/efi-api.c:226:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/efi-api.c:229:17: branch_false: ...to here
systemd-258/src/shared/efi-api.c:229:17: branch_true: following ‘true’ branch (when ‘value != 0’)...
systemd-258/src/shared/efi-api.c:229:17: branch_true: ...to here
systemd-258/src/shared/efi-api.c:229:17: danger: use of uninitialized value ‘b’ here
#  227|                   return r;
#  228|   
#  229|->         b_new = UPDATE_FLAG(b, EFI_OS_INDICATIONS_BOOT_TO_FW_UI, value);
#  230|   
#  231|           /* Avoid writing to efi vars store if we can due to firmware bugs. */

Error: CPPCHECK_WARNING (CWE-476): [#def1447]
systemd-258/src/shared/ethtool-util.c:375: error[nullPointer]: Null pointer dereference
#  373|           UPDATE(ecmd.wolopts, wolopts, need_update);
#  374|           if (password &&
#  375|->             memcmp(ecmd.sopass, password, sizeof(ecmd.sopass)) != 0) {
#  376|                   memcpy(ecmd.sopass, password, sizeof(ecmd.sopass));
#  377|                   need_update = true;

Error: CPPCHECK_WARNING (CWE-476): [#def1448]
systemd-258/src/shared/ethtool-util.c:376: error[nullPointer]: Null pointer dereference
#  374|           if (password &&
#  375|               memcmp(ecmd.sopass, password, sizeof(ecmd.sopass)) != 0) {
#  376|->                 memcpy(ecmd.sopass, password, sizeof(ecmd.sopass));
#  377|                   need_update = true;
#  378|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1449]
systemd-258/src/shared/ethtool-util.c:385:1: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
systemd-258/src/shared/ethtool-util.c:318:5: enter_function: entry to ‘ethtool_set_wol’
systemd-258/src/shared/ethtool-util.c:333:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:334:9: branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:334:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:336:13: branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:336:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:340:13: branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:340:13: call_function: calling ‘ethtool_connect’ from ‘ethtool_set_wol’
systemd-258/src/shared/ethtool-util.c:340:13: return_function: returning to ‘ethtool_set_wol’ from ‘ethtool_connect’
systemd-258/src/shared/ethtool-util.c:341:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:344:9: call_function: inlined call to ‘strscpy’ from ‘ethtool_set_wol’
systemd-258/src/shared/ethtool-util.c:348:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:351:12: branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:359:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/ethtool-util.c:360:38: branch_true: ...to here
systemd-258/src/shared/ethtool-util.c:362:24: call_function: calling ‘wol_options_to_string_alloc’ from ‘ethtool_set_wol’
systemd-258/src/shared/ethtool-util.c:362:24: return_function: returning to ‘ethtool_set_wol’ from ‘wol_options_to_string_alloc’
systemd-258/src/shared/ethtool-util.c:363:17: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:366:28: branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:385:1: danger: ‘str’ leaks here; was allocated at [(28)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/27)
#  383|           ecmd.cmd = ETHTOOL_SWOL;
#  384|           return RET_NERRNO(ioctl(*ethtool_fd, SIOCETHTOOL, &ifr));
#  385|-> }
#  386|   
#  387|   int ethtool_set_nic_buffer_size(int *ethtool_fd, const char *ifname, const netdev_ring_param *ring) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1450]
systemd-258/src/shared/ethtool-util.c:620:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘strings’
systemd-258/src/shared/ethtool-util.c:591:5: enter_function: entry to ‘ethtool_set_features’
systemd-258/src/shared/ethtool-util.c:592:49: release_memory: ‘strings’ is NULL
systemd-258/src/shared/ethtool-util.c:599:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:600:9: branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:600:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:603:28: branch_true: following ‘true’ branch (when ‘i != 63’)...
systemd-258/src/shared/ethtool-util.c:604:29: branch_true: ...to here
systemd-258/src/shared/ethtool-util.c:609:12: branch_true: following ‘true’ branch (when ‘have != 0’)...
systemd-258/src/shared/ethtool-util.c:612:13: branch_true: ...to here
systemd-258/src/shared/ethtool-util.c:612:13: call_function: calling ‘ethtool_connect’ from ‘ethtool_set_features’
systemd-258/src/shared/ethtool-util.c:612:13: return_function: returning to ‘ethtool_set_features’ from ‘ethtool_connect’
systemd-258/src/shared/ethtool-util.c:613:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:616:13: branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:616:13: call_function: calling ‘get_stringset’ from ‘ethtool_set_features’
systemd-258/src/shared/ethtool-util.c:616:13: return_function: returning to ‘ethtool_set_features’ from ‘get_stringset’
systemd-258/src/shared/ethtool-util.c:617:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ethtool-util.c:620:54: branch_false: ...to here
systemd-258/src/shared/ethtool-util.c:620:54: release_memory: ‘strings’ is NULL
systemd-258/src/shared/ethtool-util.c:620:47: danger: dereference of NULL ‘strings’
#  618|                   return log_debug_errno(r, "ethtool: could not get ethtool feature strings: %m");
#  619|   
#  620|->         r = get_features(*ethtool_fd, ifname, strings->len, &gfeatures);
#  621|           if (r < 0)
#  622|                   return log_debug_errno(r, "ethtool: could not get ethtool features for %s: %m", ifname);

Error: CPPCHECK_WARNING (CWE-562): [#def1451]
systemd-258/src/shared/ethtool-util.c:672: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  670|           */
#  671|   
#  672|->         ifr->ifr_data = (void*) &ecmd;
#  673|   
#  674|           if (ioctl(fd, SIOCETHTOOL, ifr) < 0)

Error: CPPCHECK_WARNING (CWE-562): [#def1452]
systemd-258/src/shared/ethtool-util.c:682: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  680|           ecmd.base.link_mode_masks_nwords = -ecmd.base.link_mode_masks_nwords;
#  681|   
#  682|->         ifr->ifr_data = (void *) &ecmd;
#  683|   
#  684|           if (ioctl(fd, SIOCETHTOOL, ifr) < 0)

Error: CPPCHECK_WARNING (CWE-562): [#def1453]
systemd-258/src/shared/ethtool-util.c:716: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  714|           assert(ret);
#  715|   
#  716|->         ifr->ifr_data = (void *) &ecmd;
#  717|   
#  718|           if (ioctl(fd, SIOCETHTOOL, ifr) < 0)

Error: CPPCHECK_WARNING (CWE-562): [#def1454]
systemd-258/src/shared/ethtool-util.c:762: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  760|           memcpy(p, u->link_modes.lp_advertising, sizeof(uint32_t) * ecmd.base.link_mode_masks_nwords);
#  761|   
#  762|->         ifr->ifr_data = (void *) &ecmd;
#  763|   
#  764|           return RET_NERRNO(ioctl(fd, SIOCETHTOOL, ifr));

Error: CPPCHECK_WARNING (CWE-562): [#def1455]
systemd-258/src/shared/ethtool-util.c:793: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  791|           ecmd.eth_tp_mdix_ctrl = u->base.eth_tp_mdix_ctrl;
#  792|   
#  793|->         ifr->ifr_data = (void *) &ecmd;
#  794|   
#  795|           return RET_NERRNO(ioctl(fd, SIOCETHTOOL, ifr));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1456]
systemd-258/src/shared/exec-util.c:176:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pid’
systemd-258/src/shared/exec-util.c:295:5: enter_function: entry to ‘execute_directories’
systemd-258/src/shared/exec-util.c:316:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:319:13: branch_false: ...to here
systemd-258/src/shared/exec-util.c:324:12: branch_true: following ‘true’ branch (when ‘callbacks’ is non-NULL)...
systemd-258/src/shared/exec-util.c:325:21: branch_true: ...to here
systemd-258/src/shared/exec-util.c:326:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:330:16: branch_false: ...to here
systemd-258/src/shared/exec-util.c:330:16: call_function: calling ‘execute_strv’ from ‘execute_directories’
#  174|                           bool skip_remaining = false;
#  175|   
#  176|->                         r = wait_for_terminate_and_check(t, pid, WAIT_LOG_ABNORMAL);
#  177|                           if (r < 0)
#  178|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1457]
systemd-258/src/shared/exec-util.c:602:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open_terminal("/dev/tty", <unknown>), 0)’
systemd-258/src/shared/exec-util.c:565:5: enter_function: entry to ‘_fork_agent’
systemd-258/src/shared/exec-util.c:578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:580:12: branch_false: ...to here
systemd-258/src/shared/exec-util.c:580:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:585:29: branch_false: ...to here
systemd-258/src/shared/exec-util.c:597:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:602:20: branch_false: ...to here
systemd-258/src/shared/exec-util.c:602:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:602:38: branch_false: ...to here
systemd-258/src/shared/exec-util.c:602:38: acquire_resource: opened here
systemd-258/src/shared/exec-util.c:602:21: danger: ‘dup2(open_terminal("/dev/tty", <unknown>), 0)’ leaks here; was opened at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  600|                   }
#  601|   
#  602|->                 if (!stdin_is_tty && dup2(fd, STDIN_FILENO) < 0) {
#  603|                           log_error_errno(errno, "Failed to dup2 /dev/tty to STDIN: %m");
#  604|                           _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1458]
systemd-258/src/shared/exec-util.c:607:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open_terminal("/dev/tty", <unknown>), 1)’
systemd-258/src/shared/exec-util.c:565:5: enter_function: entry to ‘_fork_agent’
systemd-258/src/shared/exec-util.c:578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:580:12: branch_false: ...to here
systemd-258/src/shared/exec-util.c:580:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:585:29: branch_false: ...to here
systemd-258/src/shared/exec-util.c:597:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:602:20: branch_false: ...to here
systemd-258/src/shared/exec-util.c:607:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:607:39: branch_false: ...to here
systemd-258/src/shared/exec-util.c:607:39: acquire_resource: opened here
systemd-258/src/shared/exec-util.c:607:21: danger: ‘dup2(open_terminal("/dev/tty", <unknown>), 1)’ leaks here; was opened at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  605|                   }
#  606|   
#  607|->                 if (!stdout_is_tty && dup2(fd, STDOUT_FILENO) < 0) {
#  608|                           log_error_errno(errno, "Failed to dup2 /dev/tty to STDOUT: %m");
#  609|                           _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1459]
systemd-258/src/shared/exec-util.c:612:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open_terminal("/dev/tty", <unknown>), 2)’
systemd-258/src/shared/exec-util.c:565:5: enter_function: entry to ‘_fork_agent’
systemd-258/src/shared/exec-util.c:578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:580:12: branch_false: ...to here
systemd-258/src/shared/exec-util.c:580:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:585:29: branch_false: ...to here
systemd-258/src/shared/exec-util.c:597:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:602:20: branch_false: ...to here
systemd-258/src/shared/exec-util.c:612:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/exec-util.c:612:39: branch_false: ...to here
systemd-258/src/shared/exec-util.c:612:39: acquire_resource: opened here
systemd-258/src/shared/exec-util.c:612:21: danger: ‘dup2(open_terminal("/dev/tty", <unknown>), 2)’ leaks here; was opened at [(13)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/12)
#  610|                   }
#  611|   
#  612|->                 if (!stderr_is_tty && dup2(fd, STDERR_FILENO) < 0) {
#  613|                           log_error_errno(errno, "Failed to dup2 /dev/tty to STDERR: %m");
#  614|                           _exit(EXIT_FAILURE);

Error: CPPCHECK_WARNING (CWE-401): [#def1460]
systemd-258/src/shared/format-table.c:447: error[memleak]: Memory leak: d
#  445|                   d->strv = strv_copy(data);
#  446|                   if (!d->strv)
#  447|->                         return NULL;
#  448|           } else
#  449|                   memcpy_safe(d->data, data, data_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1461]
systemd-258/src/shared/format-table.c:1921:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(33)’
systemd-258/src/shared/format-table.c:3132:5: enter_function: entry to ‘table_print_with_pager’
systemd-258/src/shared/format-table.c:3141:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/format-table.c:3146:13: branch_false: ...to here
systemd-258/src/shared/format-table.c:3151:13: call_function: calling ‘table_print_json’ from ‘table_print_with_pager’
# 1919|                           return NULL;
# 1920|   
# 1921|->                 d->formatted = sd_id128_to_string(d->id128, p);
# 1922|                   break;
# 1923|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1462]
systemd-258/src/shared/format-table.c:1932:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(37)’
systemd-258/src/shared/format-table.c:3132:5: enter_function: entry to ‘table_print_with_pager’
systemd-258/src/shared/format-table.c:3141:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/format-table.c:3146:13: branch_false: ...to here
systemd-258/src/shared/format-table.c:3151:13: call_function: calling ‘table_print_json’ from ‘table_print_with_pager’
# 1930|                           return NULL;
# 1931|   
# 1932|->                 d->formatted = sd_id128_to_uuid_string(d->id128, p);
# 1933|                   break;
# 1934|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1463]
systemd-258/src/shared/generator.c:241:9: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
systemd-258/src/shared/generator.c:206:12: enter_function: entry to ‘write_fsck_sysroot_service’
systemd-258/src/shared/generator.c:213:32: release_memory: ‘f’ is NULL
systemd-258/src/shared/generator.c:216:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:217:9: branch_false: ...to here
systemd-258/src/shared/generator.c:217:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:218:9: branch_false: ...to here
systemd-258/src/shared/generator.c:218:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:225:19: branch_false: ...to here
systemd-258/src/shared/generator.c:226:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:229:20: call_function: inlined call to ‘cescape’ from ‘write_fsck_sysroot_service’
systemd-258/src/shared/generator.c:230:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:233:13: branch_false: ...to here
systemd-258/src/shared/generator.c:234:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:237:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘write_fsck_sysroot_service’
systemd-258/src/shared/generator.c:237:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘write_fsck_sysroot_service’
systemd-258/src/shared/generator.c:238:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:262:17: call_function: inlined call to ‘isempty’ from ‘write_fsck_sysroot_service’
systemd-258/src/shared/generator.c:241:9: release_memory: ‘f’ is NULL
systemd-258/src/shared/generator.c:241:9: danger: argument 1 (‘f’) NULL where non-null expected
#  239|                   return r;
#  240|   
#  241|->         fprintf(f,
#  242|                   "[Unit]\n"
#  243|                   "Description=File System Check on %1$s\n"

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1464]
systemd-258/src/shared/generator.c:586:9: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
systemd-258/src/shared/generator.c:547:5: enter_function: entry to ‘generator_hook_up_mkswap’
systemd-258/src/shared/generator.c:552:32: release_memory: ‘f’ is NULL
systemd-258/src/shared/generator.c:555:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:556:9: branch_false: ...to here
systemd-258/src/shared/generator.c:556:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:558:16: branch_false: ...to here
systemd-258/src/shared/generator.c:559:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:563:14: branch_false: ...to here
systemd-258/src/shared/generator.c:563:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/generator.c:568:13: branch_true: ...to here
systemd-258/src/shared/generator.c:569:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:573:19: call_function: inlined call to ‘cescape’ from ‘generator_hook_up_mkswap’
systemd-258/src/shared/generator.c:574:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:577:13: branch_false: ...to here
systemd-258/src/shared/generator.c:578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:582:13: branch_false: ...to here
systemd-258/src/shared/generator.c:582:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘generator_hook_up_mkswap’
systemd-258/src/shared/generator.c:582:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘generator_hook_up_mkswap’
systemd-258/src/shared/generator.c:583:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:586:9: branch_false: ...to here
systemd-258/src/shared/generator.c:586:9: release_memory: ‘f’ is NULL
systemd-258/src/shared/generator.c:586:9: danger: argument 1 (‘f’) NULL where non-null expected
#  584|                   return r;
#  585|   
#  586|->         fprintf(f,
#  587|                   "[Unit]\n"
#  588|                   "Description=Make Swap on %%f\n"

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1465]
systemd-258/src/shared/generator.c:668:9: warning[-Wanalyzer-null-argument]: use of NULL ‘f’ where non-null expected
systemd-258/src/shared/generator.c:613:5: enter_function: entry to ‘generator_hook_up_mkfs’
systemd-258/src/shared/generator.c:620:32: release_memory: ‘f’ is NULL
systemd-258/src/shared/generator.c:624:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:625:9: branch_false: ...to here
systemd-258/src/shared/generator.c:625:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:626:9: branch_false: ...to here
systemd-258/src/shared/generator.c:626:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:628:16: branch_false: ...to here
systemd-258/src/shared/generator.c:629:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:633:14: branch_false: ...to here
systemd-258/src/shared/generator.c:633:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/generator.c:638:12: branch_true: ...to here
systemd-258/src/shared/generator.c:638:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:644:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:648:13: branch_false: ...to here
systemd-258/src/shared/generator.c:656:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:659:13: branch_false: ...to here
systemd-258/src/shared/generator.c:660:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:664:13: branch_false: ...to here
systemd-258/src/shared/generator.c:664:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘generator_hook_up_mkfs’
systemd-258/src/shared/generator.c:664:13: call_function: inlined call to ‘generator_open_unit_file’ from ‘generator_hook_up_mkfs’
systemd-258/src/shared/generator.c:665:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/generator.c:668:9: branch_false: ...to here
systemd-258/src/shared/generator.c:668:9: release_memory: ‘f’ is NULL
systemd-258/src/shared/generator.c:668:9: danger: argument 1 (‘f’) NULL where non-null expected
#  666|                   return r;
#  667|   
#  668|->         fprintf(f,
#  669|                   "[Unit]\n"
#  670|                   "Description=Make File System on %%f\n"

Error: CPPCHECK_WARNING (CWE-457): [#def1466]
systemd-258/src/shared/group-record.c:110: error[uninitvar]: Uninitialized variable: e
#  108|   
#  109|           JSON_VARIANT_ARRAY_FOREACH(e, variant) {
#  110|->                 if (!sd_json_variant_is_object(e))
#  111|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an array of objects.", strna(name));
#  112|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1467]
systemd-258/src/shared/hwdb-util.c:124:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 40)’
systemd-258/src/shared/hwdb-util.c:577:5: enter_function: entry to ‘hwdb_update’
systemd-258/src/shared/hwdb-util.c:589:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/hwdb-util.c:592:16: branch_false: ...to here
systemd-258/src/shared/hwdb-util.c:592:16: acquire_memory: allocated here
systemd-258/src/shared/hwdb-util.c:593:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/hwdb-util.c:597:25: branch_false: ...to here
systemd-258/src/shared/hwdb-util.c:579:44: call_function: inlined call to ‘trie_freep’ from ‘hwdb_update’
#  122|                   return NULL;
#  123|   
#  124|->         trie_node_cleanup(trie->root);
#  125|           strbuf_free(trie->strings);
#  126|           return mfree(trie);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1468]
systemd-258/src/shared/hwdb-util.c:606:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 40)’
systemd-258/src/shared/hwdb-util.c:577:5: enter_function: entry to ‘hwdb_update’
systemd-258/src/shared/hwdb-util.c:589:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/hwdb-util.c:592:16: branch_false: ...to here
systemd-258/src/shared/hwdb-util.c:592:16: acquire_memory: allocated here
systemd-258/src/shared/hwdb-util.c:593:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/hwdb-util.c:597:25: branch_false: ...to here
systemd-258/src/shared/hwdb-util.c:598:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/hwdb-util.c:602:22: branch_false: ...to here
systemd-258/src/shared/hwdb-util.c:603:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/hwdb-util.c:606:9: branch_false: ...to here
systemd-258/src/shared/hwdb-util.c:614:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/hwdb-util.c:615:24: branch_true: ...to here
systemd-258/src/shared/hwdb-util.c:615:24: branch_true: following ‘true’ branch...
systemd-258/src/shared/hwdb-util.c:615:24: branch_true: ...to here
systemd-258/src/shared/hwdb-util.c:611:9: call_function: calling ‘array_cleanup’ from ‘hwdb_update’
systemd-258/src/shared/hwdb-util.c:579:44: call_function: inlined call to ‘trie_freep’ from ‘hwdb_update’
#  604|                   return -ENOMEM;
#  605|   
#  606|->         trie->nodes_count++;
#  607|   
#  608|           ConfFile **files = NULL;

Error: COMPILER_WARNING: [#def1469] [important]
systemd-258/src/shared/ioprio-util.h:4:10: error[fatal error]: sys/ioprio.h: No such file or directory
#    2|   #pragma once
#    3|   
#    4|-> #include <sys/ioprio.h>         /* IWYU pragma: export */
#    5|   
#    6|   #include "forward.h"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1470]
systemd-258/src/shared/journal-importer.c:480:25: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
systemd-258/src/shared/journal-importer.c:469:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/journal-importer.c:473:28: branch_true: ...to here
systemd-258/src/shared/journal-importer.c:476:20: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
systemd-258/src/shared/journal-importer.c:480:25: branch_false: ...to here
systemd-258/src/shared/journal-importer.c:480:25: branch_true: following ‘true’ branch...
systemd-258/src/shared/journal-importer.c:480:25: branch_true: ...to here
systemd-258/src/shared/journal-importer.c:480:25: danger: ‘tmp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  478|                                       target);
#  479|                   else {
#  480|->                         log_debug("Reallocated buffer from %zu to %zu bytes",
#  481|                                     old_size, target);
#  482|                           imp->buf = tmp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1471]
systemd-258/src/shared/kbd-util.c:71:13: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(&*de.d_name, (long unsigned int)(e - &de_23(D)->d_name))’
systemd-258/src/shared/kbd-util.c:39:12: enter_function: entry to ‘keymap_recurse_dir_callback’
systemd-258/src/shared/kbd-util.c:52:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/kbd-util.c:57:12: branch_false: ...to here
systemd-258/src/shared/kbd-util.c:57:12: branch_false: following ‘false’ branch (when ‘event == 2’)...
systemd-258/src/shared/kbd-util.c:60:14: branch_false: ...to here
systemd-258/src/shared/kbd-util.c:67:13: acquire_memory: allocated here
systemd-258/src/shared/kbd-util.c:68:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/kbd-util.c:71:13: branch_false: ...to here
systemd-258/src/shared/kbd-util.c:71:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/kbd-util.c:74:9: branch_false: ...to here
systemd-258/src/shared/kbd-util.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/kbd-util.c:76:14: branch_false: ...to here
systemd-258/src/shared/kbd-util.c:76:14: call_function: calling ‘keymap_is_valid’ from ‘keymap_recurse_dir_callback’
systemd-258/src/shared/kbd-util.c:76:14: return_function: returning to ‘keymap_recurse_dir_callback’ from ‘keymap_is_valid’
systemd-258/src/shared/kbd-util.c:76:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/kbd-util.c:79:13: branch_true: ...to here
systemd-258/src/shared/kbd-util.c:71:13: danger: ‘strndup(&*de.d_name, (long unsigned int)(e - &de_23(D)->d_name))’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#   69|                   return -ENOMEM;
#   70|   
#   71|->         if (data->keymap_name)
#   72|                   return streq(p, data->keymap_name) ? 1 : RECURSE_DIR_CONTINUE;
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1472]
systemd-258/src/shared/killall.c:48:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(__builtin_alloca(27), "re")’
systemd-258/src/shared/killall.c:23:12: enter_function: entry to ‘argv_has_at’
systemd-258/src/shared/killall.c:29:25: branch_false: ...to here
systemd-258/src/shared/killall.c:30:36: acquire_resource: opened here
systemd-258/src/shared/killall.c:31:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/killall.c:37:14: branch_false: ...to here
systemd-258/src/shared/killall.c:41:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/killall.c:47:16: branch_false: ...to here
systemd-258/src/shared/killall.c:48:1: danger: ‘fopen(__builtin_alloca(27), "re")’ leaks here; was opened at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
#   46|            * https://systemd.io/ROOT_STORAGE_DAEMONS */
#   47|           return c == '@';
#   48|-> }
#   49|   
#   50|   static bool is_in_survivor_cgroup(const PidRef *pid) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1473]
systemd-258/src/shared/killall.c:48:1: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(__builtin_alloca(27), "re")’
systemd-258/src/shared/killall.c:23:12: enter_function: entry to ‘argv_has_at’
systemd-258/src/shared/killall.c:29:25: branch_false: ...to here
systemd-258/src/shared/killall.c:30:36: acquire_memory: allocated here
systemd-258/src/shared/killall.c:31:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/killall.c:37:14: branch_false: ...to here
systemd-258/src/shared/killall.c:41:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/killall.c:47:16: branch_false: ...to here
systemd-258/src/shared/killall.c:48:1: danger: ‘fopen(__builtin_alloca(27), "re")’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#   46|            * https://systemd.io/ROOT_STORAGE_DAEMONS */
#   47|           return c == '@';
#   48|-> }
#   49|   
#   50|   static bool is_in_survivor_cgroup(const PidRef *pid) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1474]
systemd-258/src/shared/logs-show.c:1144:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
systemd-258/src/shared/logs-show.c:1106:12: enter_function: entry to ‘update_json_data’
systemd-258/src/shared/logs-show.c:1117:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/logs-show.c:1118:9: branch_false: ...to here
systemd-258/src/shared/logs-show.c:1118:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/logs-show.c:1120:12: branch_false: ...to here
systemd-258/src/shared/logs-show.c:1129:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
systemd-258/src/shared/logs-show.c:1132:13: call_function: inlined call to ‘hashmap_get’ from ‘update_json_data’
systemd-258/src/shared/logs-show.c:1133:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/logs-show.c:1140:21: branch_false: ...to here
systemd-258/src/shared/logs-show.c:1140:21: acquire_memory: allocated here
systemd-258/src/shared/logs-show.c:1141:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/logs-show.c:1144:21: branch_false: ...to here
systemd-258/src/shared/logs-show.c:1138:54: call_function: inlined call to ‘json_data_freep’ from ‘update_json_data’
 branch_true: ...to here
systemd-258/src/shared/logs-show.c:1138:54: call_function: inlined call to ‘json_data_freep’ from ‘update_json_data’
# 1142|                           return log_oom();
# 1143|   
# 1144|->                 r = sd_json_variant_new_string(&e->name, name);
# 1145|                   if (r < 0)
# 1146|                           return log_error_errno(r, "Failed to allocate JSON name variant: %m");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1475]
systemd-258/src/shared/loop-util.c:917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(96)’
systemd-258/src/shared/loop-util.c:836:5: enter_function: entry to ‘loop_device_open’
systemd-258/src/shared/loop-util.c:852:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:853:9: branch_false: ...to here
systemd-258/src/shared/loop-util.c:854:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:860:14: branch_false: ...to here
systemd-258/src/shared/loop-util.c:861:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:864:13: branch_false: ...to here
systemd-258/src/shared/loop-util.c:870:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:887:13: branch_false: ...to here
systemd-258/src/shared/loop-util.c:888:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:891:18: branch_false: ...to here
systemd-258/src/shared/loop-util.c:893:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:896:18: branch_false: ...to here
systemd-258/src/shared/loop-util.c:898:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:901:13: branch_false: ...to here
systemd-258/src/shared/loop-util.c:902:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:905:13: branch_false: ...to here
systemd-258/src/shared/loop-util.c:906:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:909:16: branch_false: ...to here
systemd-258/src/shared/loop-util.c:910:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:913:13: call_function: inlined call to ‘malloc_multiply’ from ‘loop_device_open’
systemd-258/src/shared/loop-util.c:914:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:917:9: branch_false: ...to here
systemd-258/src/shared/loop-util.c:917:9: danger: ‘malloc(96)’ leaks here; was allocated at [(25)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/24)
#  915|                   return -ENOMEM;
#  916|   
#  917|->         *d = (LoopDevice) {
#  918|                   .n_ref = 1,
#  919|                   .fd = TAKE_FD(fd),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1476]
systemd-258/src/shared/loop-util.c:917:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(s)’
systemd-258/src/shared/loop-util.c:836:5: enter_function: entry to ‘loop_device_open’
systemd-258/src/shared/loop-util.c:852:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:853:9: branch_false: ...to here
systemd-258/src/shared/loop-util.c:854:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:860:14: branch_false: ...to here
systemd-258/src/shared/loop-util.c:861:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:864:13: branch_false: ...to here
systemd-258/src/shared/loop-util.c:870:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:887:13: branch_false: ...to here
systemd-258/src/shared/loop-util.c:888:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:891:18: branch_false: ...to here
systemd-258/src/shared/loop-util.c:893:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:896:18: branch_false: ...to here
systemd-258/src/shared/loop-util.c:898:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:901:13: branch_false: ...to here
systemd-258/src/shared/loop-util.c:902:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:905:13: branch_false: ...to here
systemd-258/src/shared/loop-util.c:906:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:909:16: branch_false: ...to here
systemd-258/src/shared/loop-util.c:909:16: acquire_memory: allocated here
systemd-258/src/shared/loop-util.c:910:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:913:13: call_function: inlined call to ‘malloc_multiply’ from ‘loop_device_open’
systemd-258/src/shared/loop-util.c:914:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/loop-util.c:917:9: branch_false: ...to here
systemd-258/src/shared/loop-util.c:917:9: danger: ‘strdup(s)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/21)
#  915|                   return -ENOMEM;
#  916|   
#  917|->         *d = (LoopDevice) {
#  918|                   .n_ref = 1,
#  919|                   .fd = TAKE_FD(fd),

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1477]
systemd-258/src/shared/machine-id-setup.c:218:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘writable’
systemd-258/src/shared/machine-id-setup.c:132:5: enter_function: entry to ‘machine_id_setup’
systemd-258/src/shared/machine-id-setup.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/machine-id-setup.c:139:9: call_function: inlined call to ‘umaskp’ from ‘machine_id_setup’
systemd-258/src/shared/machine-id-setup.c:200:13: branch_false: following ‘false’ branch...
systemd-258/src/shared/machine-id-setup.c:218:12: branch_false: ...to here
systemd-258/src/shared/machine-id-setup.c:218:12: danger: use of uninitialized value ‘writable’ here
#  216|           }
#  217|   
#  218|->         if (writable) {
#  219|                   if (lseek(fd, 0, SEEK_SET) < 0)
#  220|                           return log_error_errno(errno, "Failed to seek %s: %m", etc_machine_id);

Error: COMPILER_WARNING: [#def1478] [important]
systemd-258/src/shared/mount-util.c:466:13: error[-Wimplicit-function-declaration]: implicit declaration of function ‘pivot_root’
#  464|   
#  465|           /* Let the kernel tuck the new root under the old one. */
#  466|->         if (pivot_root(".", ".") < 0)
#  467|                   return log_debug_errno(errno, "Failed to pivot root to new rootfs '%s': %m", path);
#  468|   

Error: COMPILER_WARNING: [#def1479] [important]
systemd-258/src/shared/mount-util.c:1454:14: error[-Wimplicit-function-declaration]: implicit declaration of function ‘open_tree_attr’; did you mean ‘open_tree’?
# 1452|           }
# 1453|   
# 1454|->         fd = open_tree_attr(dir_fd, path, flags, attr, sizeof(struct mount_attr));
# 1455|           if (fd >= 0)
# 1456|                   return TAKE_FD(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1480]
systemd-258/src/shared/netif-util.c:56:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258/src/shared/netif-util.c:49:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/netif-util.c:52:13: branch_false: ...to here
systemd-258/src/shared/netif-util.c:52:13: acquire_memory: allocated here
systemd-258/src/shared/netif-util.c:53:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
systemd-258/src/shared/netif-util.c:56:16: branch_false: ...to here
systemd-258/src/shared/netif-util.c:56:16: danger: ‘p’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   54|                   return -ENOMEM;
#   55|   
#   56|->         *ret = ascii_strlower(p);
#   57|           return 0;
#   58|   }

Error: COMPILER_WARNING: [#def1481] [important]
systemd-258/src/shared/nsresource.c:19:19: error[error]: ‘TASK_COMM_LEN’ undeclared (first use in this function)
#   17|   
#   18|   static int make_pid_name(char **ret) {
#   19|->         char comm[TASK_COMM_LEN];
#   20|   
#   21|           assert(ret);

Error: COMPILER_WARNING: [#def1482] [important]
systemd-258/src/shared/nsresource.c:30:9: error[error]: expression in static assertion is not an integer
#   28|            * some bits). But it also should be unique if we are called multiple times in a row. Hence we take
#   29|            * the "comm" name (which is 15 chars), and suffix it with the PID, possibly overriding the end. */
#   30|->         assert_cc(TASK_COMM_LEN == 15 + 1);
#   31|   
#   32|           char spid[DECIMAL_STR_MAX(pid_t)];

Error: COMPILER_WARNING: [#def1483] [important]
systemd-258/src/shared/numa-util.h:4:10: error[fatal error]: sys/mempolicy.h: No such file or directory
#    2|   #pragma once
#    3|   
#    4|-> #include <sys/mempolicy.h>
#    5|   
#    6|   #include "cpu-set-util.h"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1484]
systemd-258/src/shared/openssl-util.c:1563:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258/src/shared/openssl-util.c:1543:12: enter_function: entry to ‘openssl_ask_password_ui_new’
systemd-258/src/shared/openssl-util.c:1544:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/openssl-util.c:1547:59: branch_false: ...to here
systemd-258/src/shared/openssl-util.c:1548:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/openssl-util.c:1551:13: branch_false: ...to here
systemd-258/src/shared/openssl-util.c:1551:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/openssl-util.c:1554:36: call_function: inlined call to ‘malloc_multiply’ from ‘openssl_ask_password_ui_new’
systemd-258/src/shared/openssl-util.c:1555:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/openssl-util.c:1560:28: branch_false: ...to here
systemd-258/src/shared/openssl-util.c:1563:9: danger: ‘malloc(72)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
# 1561|           };
# 1562|   
# 1563|->         UI_set_default_method(ui->method);
# 1564|   
# 1565|           if (UI_method_set_ex_data(ui->method, 0, &ui->request) == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1485]
systemd-258/src/shared/openssl-util.c:1565:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(72)’
systemd-258/src/shared/openssl-util.c:1543:12: enter_function: entry to ‘openssl_ask_password_ui_new’
systemd-258/src/shared/openssl-util.c:1544:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/openssl-util.c:1547:59: branch_false: ...to here
systemd-258/src/shared/openssl-util.c:1548:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/openssl-util.c:1551:13: branch_false: ...to here
systemd-258/src/shared/openssl-util.c:1551:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/openssl-util.c:1554:36: call_function: inlined call to ‘malloc_multiply’ from ‘openssl_ask_password_ui_new’
systemd-258/src/shared/openssl-util.c:1555:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/openssl-util.c:1560:28: branch_false: ...to here
systemd-258/src/shared/openssl-util.c:1565:13: danger: ‘malloc(72)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
# 1563|           UI_set_default_method(ui->method);
# 1564|   
# 1565|->         if (UI_method_set_ex_data(ui->method, 0, &ui->request) == 0)
# 1566|                   return log_openssl_errors("Failed to set extra data for UI method");
# 1567|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1486]
systemd-258/src/shared/openssl-util.h:210:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
systemd-258/src/home/homed-manager.c:1512:12: enter_function: entry to ‘manager_load_public_keys’
systemd-258/src/home/homed-manager.c:1516:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager.c:1518:26: branch_false: ...to here
systemd-258/src/home/homed-manager.c:1526:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager.c:1529:9: branch_false: ...to here
systemd-258/src/home/homed-manager.c:1529:9: branch_true: following ‘true’ branch...
systemd-258/src/home/homed-manager.c:1530:24: call_function: calling ‘manager_load_public_key_one’ from ‘manager_load_public_keys’
#  208|   
#  209|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(X509*, X509_free, NULL);
#  210|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(EVP_PKEY*, EVP_PKEY_free, NULL);
#  211|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_TYPE*, ASN1_TYPE_free, NULL);
#  212|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_STRING*, ASN1_STRING_free, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1487]
systemd-258/src/shared/openssl-util.h:210:1: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/home/homed-manager.c:1512:12: enter_function: entry to ‘manager_load_public_keys’
systemd-258/src/home/homed-manager.c:1516:9: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager.c:1518:26: branch_false: ...to here
systemd-258/src/home/homed-manager.c:1526:12: branch_false: following ‘false’ branch...
systemd-258/src/home/homed-manager.c:1529:9: branch_false: ...to here
systemd-258/src/home/homed-manager.c:1529:9: branch_true: following ‘true’ branch...
systemd-258/src/home/homed-manager.c:1530:24: call_function: calling ‘manager_load_public_key_one’ from ‘manager_load_public_keys’
#  208|   
#  209|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(X509*, X509_free, NULL);
#  210|-> DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(EVP_PKEY*, EVP_PKEY_free, NULL);
#  211|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_TYPE*, ASN1_TYPE_free, NULL);
#  212|   DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(ASN1_STRING*, ASN1_STRING_free, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1488]
systemd-258/src/shared/pager.c:160:20: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[0], 0)’
systemd-258/src/shared/pager.c:95:6: enter_function: entry to ‘pager_open’
systemd-258/src/shared/pager.c:102:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:105:13: branch_false: ...to here
systemd-258/src/shared/pager.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:108:13: branch_false: ...to here
systemd-258/src/shared/pager.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:111:14: branch_false: ...to here
systemd-258/src/shared/pager.c:111:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:114:17: branch_true: ...to here
systemd-258/src/shared/pager.c:115:12: branch_true: following ‘true’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:116:25: branch_true: ...to here
systemd-258/src/shared/pager.c:118:12: branch_false: following ‘false’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:130:16: branch_false: ...to here
systemd-258/src/shared/pager.c:133:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:137:13: branch_false: ...to here
systemd-258/src/shared/pager.c:137:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:141:21: branch_false: ...to here
systemd-258/src/shared/pager.c:144:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:152:13: call_function: inlined call to ‘safe_fork’ from ‘pager_open’
systemd-258/src/shared/pager.c:153:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:155:12: branch_false: ...to here
systemd-258/src/shared/pager.c:155:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:160:21: branch_true: ...to here
systemd-258/src/shared/pager.c:160:21: acquire_resource: opened here
systemd-258/src/shared/pager.c:160:20: danger: ‘dup2(fd[0], 0)’ leaks here; was opened at [(27)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/26)
#  158|                   /* In the child start the pager */
#  159|   
#  160|->                 if (dup2(fd[0], STDIN_FILENO) < 0) {
#  161|                           log_error_errno(errno, "Failed to duplicate file descriptor to STDIN: %m");
#  162|                           _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1489]
systemd-258/src/shared/pager.c:252:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 1)’
systemd-258/src/shared/pager.c:95:6: enter_function: entry to ‘pager_open’
systemd-258/src/shared/pager.c:102:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:105:13: branch_false: ...to here
systemd-258/src/shared/pager.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:108:13: branch_false: ...to here
systemd-258/src/shared/pager.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:111:14: branch_false: ...to here
systemd-258/src/shared/pager.c:111:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:114:17: branch_true: ...to here
systemd-258/src/shared/pager.c:115:12: branch_true: following ‘true’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:116:25: branch_true: ...to here
systemd-258/src/shared/pager.c:118:12: branch_false: following ‘false’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:130:16: branch_false: ...to here
systemd-258/src/shared/pager.c:133:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:137:13: branch_false: ...to here
systemd-258/src/shared/pager.c:137:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:141:21: branch_false: ...to here
systemd-258/src/shared/pager.c:144:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:152:13: call_function: inlined call to ‘safe_fork’ from ‘pager_open’
systemd-258/src/shared/pager.c:153:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:155:12: branch_false: ...to here
systemd-258/src/shared/pager.c:155:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:251:25: branch_false: ...to here
systemd-258/src/shared/pager.c:252:13: acquire_resource: opened here
systemd-258/src/shared/pager.c:252:12: danger: ‘dup2(fd[1], 1)’ leaks here; was opened at [(27)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/26)
#  250|           /* Return in the parent */
#  251|           stored_stdout = fcntl(STDOUT_FILENO, F_DUPFD_CLOEXEC, 3);
#  252|->         if (dup2(fd[1], STDOUT_FILENO) < 0) {
#  253|                   stored_stdout = safe_close(stored_stdout);
#  254|                   return (void) log_error_errno(errno, "Failed to duplicate pager pipe: %m");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1490]
systemd-258/src/shared/pager.c:259:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd[1], 2)’
systemd-258/src/shared/pager.c:95:6: enter_function: entry to ‘pager_open’
systemd-258/src/shared/pager.c:102:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:105:13: branch_false: ...to here
systemd-258/src/shared/pager.c:105:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:108:13: branch_false: ...to here
systemd-258/src/shared/pager.c:108:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:111:14: branch_false: ...to here
systemd-258/src/shared/pager.c:111:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:114:17: branch_true: ...to here
systemd-258/src/shared/pager.c:115:12: branch_true: following ‘true’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:116:25: branch_true: ...to here
systemd-258/src/shared/pager.c:118:12: branch_false: following ‘false’ branch (when ‘pager’ is NULL)...
systemd-258/src/shared/pager.c:130:16: branch_false: ...to here
systemd-258/src/shared/pager.c:133:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:137:13: branch_false: ...to here
systemd-258/src/shared/pager.c:137:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:141:21: branch_false: ...to here
systemd-258/src/shared/pager.c:144:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:152:13: call_function: inlined call to ‘safe_fork’ from ‘pager_open’
systemd-258/src/shared/pager.c:153:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:155:12: branch_false: ...to here
systemd-258/src/shared/pager.c:155:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:251:25: branch_false: ...to here
systemd-258/src/shared/pager.c:252:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:256:9: branch_false: ...to here
systemd-258/src/shared/pager.c:259:13: acquire_resource: opened here
systemd-258/src/shared/pager.c:259:12: danger: ‘dup2(fd[1], 2)’ leaks here; was opened at [(29)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/28)
#  257|   
#  258|           stored_stderr = fcntl(STDERR_FILENO, F_DUPFD_CLOEXEC, 3);
#  259|->         if (dup2(fd[1], STDERR_FILENO) < 0) {
#  260|                   stored_stderr = safe_close(stored_stderr);
#  261|                   return (void) log_error_errno(errno, "Failed to duplicate pager pipe: %m");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1491]
systemd-258/src/shared/pager.c:280:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stored_stdout, 1)’
systemd-258/src/shared/pager.c:274:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:278:9: branch_false: ...to here
systemd-258/src/shared/pager.c:279:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:280:21: branch_true: ...to here
systemd-258/src/shared/pager.c:280:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:280:42: branch_false: ...to here
systemd-258/src/shared/pager.c:280:42: acquire_resource: opened here
systemd-258/src/shared/pager.c:280:21: danger: ‘dup2(stored_stdout, 1)’ leaks here; was opened at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  278|           (void) fflush(stdout);
#  279|           if (stdout_redirected)
#  280|->                 if (stored_stdout < 0 || dup2(stored_stdout, STDOUT_FILENO) < 0)
#  281|                           (void) close(STDOUT_FILENO);
#  282|           stored_stdout = safe_close(stored_stdout);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1492]
systemd-258/src/shared/pager.c:285:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(stored_stderr, 2)’
systemd-258/src/shared/pager.c:274:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:278:9: branch_false: ...to here
systemd-258/src/shared/pager.c:284:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pager.c:285:21: branch_true: ...to here
systemd-258/src/shared/pager.c:285:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/pager.c:285:42: branch_false: ...to here
systemd-258/src/shared/pager.c:285:42: acquire_resource: opened here
systemd-258/src/shared/pager.c:285:21: danger: ‘dup2(stored_stderr, 2)’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  283|           (void) fflush(stderr);
#  284|           if (stderr_redirected)
#  285|->                 if (stored_stderr < 0 || dup2(stored_stderr, STDERR_FILENO) < 0)
#  286|                           (void) close(STDERR_FILENO);
#  287|           stored_stderr = safe_close(stored_stderr);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1493]
systemd-258/src/shared/pam-util.c:48:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:44:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:47:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pam-util.c:47:16: branch_true: ...to here
systemd-258/src/shared/pam-util.c:48:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   46|           const char *p = endswith(format, "@PAMERR@");
#   47|           if (p) {
#   48|->                 const char *pamerr = pam_strerror(handle, error);
#   49|                   if (strchr(pamerr, '%'))
#   50|                           pamerr = "n/a";  /* We cannot have any formatting chars */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1494]
systemd-258/src/shared/pam-util.c:53:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:44:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:47:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pam-util.c:47:16: branch_true: ...to here
systemd-258/src/shared/pam-util.c:49:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:52:26: branch_false: ...to here
systemd-258/src/shared/pam-util.c:53:17: branch_true: following ‘true’ branch...
systemd-258/src/shared/pam-util.c:53:17: branch_true: ...to here
systemd-258/src/shared/pam-util.c:53:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   51|   
#   52|                   char buf[p - format + strlen(pamerr) + 1];
#   53|->                 xsprintf(buf, "%.*s%s", (int)(p - format), format, pamerr);
#   54|   
#   55|                   DISABLE_WARNING_FORMAT_NONLITERAL;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1495]
systemd-258/src/shared/pam-util.c:56:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:44:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:47:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pam-util.c:47:16: branch_true: ...to here
systemd-258/src/shared/pam-util.c:49:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:52:26: branch_false: ...to here
systemd-258/src/shared/pam-util.c:53:17: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:56:17: branch_false: ...to here
systemd-258/src/shared/pam-util.c:56:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   54|   
#   55|                   DISABLE_WARNING_FORMAT_NONLITERAL;
#   56|->                 pam_vsyslog(handle, level, buf, ap);
#   57|                   REENABLE_WARNING;
#   58|           } else

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1496]
systemd-258/src/shared/pam-util.c:59:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:44:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:47:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:59:17: branch_false: ...to here
systemd-258/src/shared/pam-util.c:59:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   57|                   REENABLE_WARNING;
#   58|           } else
#   59|->                 pam_vsyslog(handle, level, format, ap);
#   60|   
#   61|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1497]
systemd-258/src/shared/pam-util.c:265:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:257:9: branch_false: ...to here
systemd-258/src/shared/pam-util.c:257:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:260:20: branch_false: following ‘false’ branch (when ‘item_type > 0’)...
systemd-258/src/shared/pam-util.c:265:38: branch_false: ...to here
systemd-258/src/shared/pam-util.c:265:38: branch_true: following ‘true’ branch...
systemd-258/src/shared/pam-util.c:265:38: branch_true: ...to here
systemd-258/src/shared/pam-util.c:265:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  263|                   }
#  264|   
#  265|->                 const void **value = ASSERT_PTR(va_arg(ap, const void **));
#  266|                   r = pam_get_item(handle, item_type, value);
#  267|                   if (!IN_SET(r, PAM_BAD_ITEM, PAM_SUCCESS))

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1498]
systemd-258/src/shared/pam-util.c:266:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:257:9: branch_false: ...to here
systemd-258/src/shared/pam-util.c:257:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:260:20: branch_false: following ‘false’ branch (when ‘item_type > 0’)...
systemd-258/src/shared/pam-util.c:265:38: branch_false: ...to here
systemd-258/src/shared/pam-util.c:265:38: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:266:21: branch_false: ...to here
systemd-258/src/shared/pam-util.c:266:21: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  264|   
#  265|                   const void **value = ASSERT_PTR(va_arg(ap, const void **));
#  266|->                 r = pam_get_item(handle, item_type, value);
#  267|                   if (!IN_SET(r, PAM_BAD_ITEM, PAM_SUCCESS))
#  268|                           break;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1499]
systemd-258/src/shared/pam-util.c:289:38: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:281:9: branch_false: ...to here
systemd-258/src/shared/pam-util.c:281:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:284:20: branch_false: following ‘false’ branch (when ‘data_name’ is non-NULL)...
systemd-258/src/shared/pam-util.c:289:38: branch_false: ...to here
systemd-258/src/shared/pam-util.c:289:38: branch_true: following ‘true’ branch...
systemd-258/src/shared/pam-util.c:289:38: branch_true: ...to here
systemd-258/src/shared/pam-util.c:289:38: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  287|                   }
#  288|   
#  289|->                 const void **value = ASSERT_PTR(va_arg(ap, const void **));
#  290|                   r = pam_get_data(handle, data_name, value);
#  291|                   if (!IN_SET(r, PAM_NO_MODULE_DATA, PAM_SUCCESS))

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1500]
systemd-258/src/shared/pam-util.c:290:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/pam-util.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:281:9: branch_false: ...to here
systemd-258/src/shared/pam-util.c:281:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/pam-util.c:284:20: branch_false: following ‘false’ branch (when ‘data_name’ is non-NULL)...
systemd-258/src/shared/pam-util.c:289:38: branch_false: ...to here
systemd-258/src/shared/pam-util.c:289:38: branch_false: following ‘false’ branch...
systemd-258/src/shared/pam-util.c:290:21: branch_false: ...to here
systemd-258/src/shared/pam-util.c:290:21: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  288|   
#  289|                   const void **value = ASSERT_PTR(va_arg(ap, const void **));
#  290|->                 r = pam_get_data(handle, data_name, value);
#  291|                   if (!IN_SET(r, PAM_NO_MODULE_DATA, PAM_SUCCESS))
#  292|                           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1501]
systemd-258/src/shared/pkcs11-util.c:157:22: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc_multiply(n_slotids, 8)’
systemd-258/src/shared/pkcs11-util.c:1408:12: enter_function: entry to ‘module_process’
systemd-258/src/shared/pkcs11-util.c:1424:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1426:13: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1427:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1434:16: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1435:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1438:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1441:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1446:22: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1446:22: call_function: calling ‘uri_from_module_info’ from ‘module_process’
systemd-258/src/shared/pkcs11-util.c:1446:22: return_function: returning to ‘module_process’ from ‘uri_from_module_info’
systemd-258/src/shared/pkcs11-util.c:1447:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1450:22: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1451:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1456:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1458:14: call_function: calling ‘pkcs11_get_slot_list_malloc’ from ‘module_process’
#  155|                           return CKR_HOST_MEMORY;
#  156|   
#  157|->                 rv = m->C_GetSlotList(0, slotids, &n_slotids);
#  158|                   if (rv == CKR_OK) {
#  159|                           *ret_slotids = TAKE_PTR(slotids);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1502]
systemd-258/src/shared/pkcs11-util.c:182:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258/src/shared/pkcs11-util.c:1288:12: enter_function: entry to ‘token_process’
systemd-258/src/shared/pkcs11-util.c:1302:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1303:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1303:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1304:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1304:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1306:23: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1306:23: call_function: calling ‘pkcs11_token_label’ from ‘token_process’
#  180|                   return NULL;
#  181|   
#  182|->         strstrip(t);
#  183|           return t;
#  184|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1503]
systemd-258/src/shared/pkcs11-util.c:193:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258/src/shared/pkcs11-util.c:1732:12: enter_function: entry to ‘list_callback’
systemd-258/src/shared/pkcs11-util.c:1746:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1747:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1747:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1749:13: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1750:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1757:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1757:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1760:23: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1760:23: call_function: calling ‘pkcs11_token_label’ from ‘list_callback’
systemd-258/src/shared/pkcs11-util.c:1760:23: return_function: returning to ‘list_callback’ from ‘pkcs11_token_label’
systemd-258/src/shared/pkcs11-util.c:1761:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1764:33: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1764:33: call_function: calling ‘pkcs11_token_manufacturer_id’ from ‘list_callback’
#  191|                   return NULL;
#  192|   
#  193|->         strstrip(t);
#  194|           return t;
#  195|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1504]
systemd-258/src/shared/pkcs11-util.c:204:9: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
systemd-258/src/shared/pkcs11-util.c:1732:12: enter_function: entry to ‘list_callback’
systemd-258/src/shared/pkcs11-util.c:1746:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1747:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1747:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1749:13: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1750:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1757:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1757:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1760:23: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1760:23: call_function: calling ‘pkcs11_token_label’ from ‘list_callback’
systemd-258/src/shared/pkcs11-util.c:1760:23: return_function: returning to ‘list_callback’ from ‘pkcs11_token_label’
systemd-258/src/shared/pkcs11-util.c:1761:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1764:33: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1764:33: call_function: calling ‘pkcs11_token_manufacturer_id’ from ‘list_callback’
systemd-258/src/shared/pkcs11-util.c:1764:33: return_function: returning to ‘list_callback’ from ‘pkcs11_token_manufacturer_id’
systemd-258/src/shared/pkcs11-util.c:1765:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1768:23: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1768:23: call_function: calling ‘pkcs11_token_model’ from ‘list_callback’
#  202|                   return NULL;
#  203|   
#  204|->         strstrip(t);
#  205|           return t;
#  206|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1505]
systemd-258/src/shared/pkcs11-util.c:911:22: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(attributes[0].ulValueLen)’
systemd-258/src/shared/pkcs11-util.c:1061:12: enter_function: entry to ‘pkcs11_token_decrypt_data_ecc’
systemd-258/src/shared/pkcs11-util.c:1100:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1104:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1105:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1109:15: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1109:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pkcs11-util.c:1110:21: branch_true: ...to here
systemd-258/src/shared/pkcs11-util.c:1110:20: branch_true: following ‘true’ branch...
systemd-258/src/shared/pkcs11-util.c:1112:25: branch_true: ...to here
systemd-258/src/shared/pkcs11-util.c:1114:29: call_function: calling ‘ecc_convert_to_compressed’ from ‘pkcs11_token_decrypt_data_ecc’
#  909|   
#  910|                   attributes[0].pValue = buffer;
#  911|->                 rv = m->C_GetAttributeValue(session, prototype, &attributes[0], 1);
#  912|                   if (rv != CKR_OK)
#  913|                           return log_debug_errno(SYNTHETIC_ERRNO(EIO),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1506]
systemd-258/src/shared/pkcs11-util.c:924:22: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(attributes[1].ulValueLen)’
systemd-258/src/shared/pkcs11-util.c:1061:12: enter_function: entry to ‘pkcs11_token_decrypt_data_ecc’
systemd-258/src/shared/pkcs11-util.c:1100:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1104:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1105:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1109:15: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1109:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pkcs11-util.c:1110:21: branch_true: ...to here
systemd-258/src/shared/pkcs11-util.c:1110:20: branch_true: following ‘true’ branch...
systemd-258/src/shared/pkcs11-util.c:1112:25: branch_true: ...to here
systemd-258/src/shared/pkcs11-util.c:1114:29: call_function: calling ‘ecc_convert_to_compressed’ from ‘pkcs11_token_decrypt_data_ecc’
#  922|   
#  923|                   attributes[1].pValue = buffer;
#  924|->                 rv = m->C_GetAttributeValue(session, prototype, &attributes[1], 1);
#  925|                   if (rv != CKR_OK)
#  926|                           return log_debug_errno(SYNTHETIC_ERRNO(EIO),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1507]
systemd-258/src/shared/pkcs11-util.c:987:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ec_params_attr.pValue’
systemd-258/src/shared/pkcs11-util.c:1061:12: enter_function: entry to ‘pkcs11_token_decrypt_data_ecc’
systemd-258/src/shared/pkcs11-util.c:1100:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1104:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1105:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1109:15: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1109:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pkcs11-util.c:1110:21: branch_true: ...to here
systemd-258/src/shared/pkcs11-util.c:1110:20: branch_true: following ‘true’ branch...
systemd-258/src/shared/pkcs11-util.c:1112:25: branch_true: ...to here
systemd-258/src/shared/pkcs11-util.c:1114:29: call_function: calling ‘ecc_convert_to_compressed’ from ‘pkcs11_token_decrypt_data_ecc’
#  985|   
#  986|                   ec_params_attr.pValue = ec_params_buffer;
#  987|->                 rv = m->C_GetAttributeValue(session, object, &ec_params_attr, 1);
#  988|                   if (rv != CKR_OK)
#  989|                           return log_error_errno(SYNTHETIC_ERRNO(EIO),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1508]
systemd-258/src/shared/pkcs11-util.c:1146:14: warning[-Wanalyzer-malloc-leak]: leak of ‘shared_secret_attr.pValue’
systemd-258/src/shared/pkcs11-util.c:1210:5: enter_function: entry to ‘pkcs11_token_decrypt_data’
systemd-258/src/shared/pkcs11-util.c:1223:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1224:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1224:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1225:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1225:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1226:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1226:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1227:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1227:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1229:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1230:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1233:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1239:24: call_function: calling ‘pkcs11_token_decrypt_data_ecc’ from ‘pkcs11_token_decrypt_data’
# 1144|                   return log_oom();
# 1145|   
# 1146|->         rv = m->C_GetAttributeValue(session, shared_secret_handle, &shared_secret_attr, 1);
# 1147|           rv2 = m->C_DestroyObject(session, shared_secret_handle);
# 1148|           if (rv2 != CKR_OK)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1509]
systemd-258/src/shared/pkcs11-util.c:1189:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(encrypted_data_size)’
systemd-258/src/shared/pkcs11-util.c:1180:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1184:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1185:19: acquire_memory: allocated here
systemd-258/src/shared/pkcs11-util.c:1186:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1189:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1189:14: danger: ‘malloc(encrypted_data_size)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 1187|                   return log_oom();
# 1188|   
# 1189|->         rv = m->C_Decrypt(session, (CK_BYTE*) encrypted_data, encrypted_data_size, dbuffer, &dbuffer_size);
# 1190|           if (rv == CKR_BUFFER_TOO_SMALL) {
# 1191|                   erase_and_free(dbuffer);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1510]
systemd-258/src/shared/pkcs11-util.c:1197:22: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(dbuffer_size)’
systemd-258/src/shared/pkcs11-util.c:1180:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1184:9: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1186:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1189:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1190:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/pkcs11-util.c:1191:17: branch_true: ...to here
systemd-258/src/shared/pkcs11-util.c:1193:27: acquire_memory: allocated here
systemd-258/src/shared/pkcs11-util.c:1194:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1197:22: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1197:22: danger: ‘malloc(dbuffer_size)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 1195|                           return log_oom();
# 1196|   
# 1197|->                 rv = m->C_Decrypt(session, (CK_BYTE*) encrypted_data, encrypted_data_size, dbuffer, &dbuffer_size);
# 1198|           }
# 1199|           if (rv != CKR_OK)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1511]
systemd-258/src/shared/pkcs11-util.c:1274:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(random_pool_size())’
systemd-258/src/shared/pkcs11-util.c:1255:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1257:13: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1258:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1268:15: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1270:18: acquire_memory: allocated here
systemd-258/src/shared/pkcs11-util.c:1271:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/pkcs11-util.c:1274:14: branch_false: ...to here
systemd-258/src/shared/pkcs11-util.c:1274:14: danger: ‘malloc(random_pool_size())’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 1272|                   return log_oom();
# 1273|   
# 1274|->         rv = m->C_GenerateRandom(session, buffer, rps);
# 1275|           if (rv != CKR_OK)
# 1276|                   return log_debug_errno(SYNTHETIC_ERRNO(EOPNOTSUPP),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1512]
systemd-258/src/shared/ptyfwd.c:121:33: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  119|                   return;
#  120|   
#  121|->         f->stdin_event_source = sd_event_source_unref(f->stdin_event_source);
#  122|           f->stdout_event_source = sd_event_source_unref(f->stdout_event_source);
#  123|           f->master_event_source = sd_event_source_unref(f->master_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1513]
systemd-258/src/shared/ptyfwd.c:122:34: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  120|   
#  121|           f->stdin_event_source = sd_event_source_unref(f->stdin_event_source);
#  122|->         f->stdout_event_source = sd_event_source_unref(f->stdout_event_source);
#  123|           f->master_event_source = sd_event_source_unref(f->master_event_source);
#  124|           f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1514]
systemd-258/src/shared/ptyfwd.c:123:34: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  121|           f->stdin_event_source = sd_event_source_unref(f->stdin_event_source);
#  122|           f->stdout_event_source = sd_event_source_unref(f->stdout_event_source);
#  123|->         f->master_event_source = sd_event_source_unref(f->master_event_source);
#  124|           f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);
#  125|           f->exit_event_source = sd_event_source_unref(f->exit_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1515]
systemd-258/src/shared/ptyfwd.c:124:36: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  122|           f->stdout_event_source = sd_event_source_unref(f->stdout_event_source);
#  123|           f->master_event_source = sd_event_source_unref(f->master_event_source);
#  124|->         f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);
#  125|           f->exit_event_source = sd_event_source_unref(f->exit_event_source);
#  126|           f->defer_event_source = sd_event_source_unref(f->defer_event_source);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1516]
systemd-258/src/shared/ptyfwd.c:125:32: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  123|           f->master_event_source = sd_event_source_unref(f->master_event_source);
#  124|           f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);
#  125|->         f->exit_event_source = sd_event_source_unref(f->exit_event_source);
#  126|           f->defer_event_source = sd_event_source_unref(f->defer_event_source);
#  127|           f->event = sd_event_unref(f->event);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1517]
systemd-258/src/shared/ptyfwd.c:126:33: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  124|           f->sigwinch_event_source = sd_event_source_unref(f->sigwinch_event_source);
#  125|           f->exit_event_source = sd_event_source_unref(f->exit_event_source);
#  126|->         f->defer_event_source = sd_event_source_unref(f->defer_event_source);
#  127|           f->event = sd_event_unref(f->event);
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1518]
systemd-258/src/shared/ptyfwd.c:127:20: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
systemd-258/src/shared/ptyfwd.c:914:5: enter_function: entry to ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:924:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:925:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:927:13: call_function: inlined call to ‘malloc_multiply’ from ‘pty_forward_new’
systemd-258/src/shared/ptyfwd.c:928:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/ptyfwd.c:931:9: branch_false: ...to here
systemd-258/src/shared/ptyfwd.c:938:12: branch_true: following ‘true’ branch (when ‘event’ is non-NULL)...
systemd-258/src/shared/ptyfwd.c:939:28: branch_true: ...to here
systemd-258/src/shared/ptyfwd.c:920:50: call_function: calling ‘pty_forward_freep’ from ‘pty_forward_new’
#  125|           f->exit_event_source = sd_event_source_unref(f->exit_event_source);
#  126|           f->defer_event_source = sd_event_source_unref(f->defer_event_source);
#  127|->         f->event = sd_event_unref(f->event);
#  128|   
#  129|           if (f->output_fd >= 0) {

Error: CPPCHECK_WARNING (CWE-457): [#def1519]
systemd-258/src/shared/qrcode-util.c:43: warning[uninitvar]: Uninitialized variable: r
#   41|           }
#   42|   
#   43|->         return r;
#   44|   }
#   45|   

Error: COMPILER_WARNING: [#def1520] [important]
systemd-258/src/shared/quota-util.c:18:24: error[-Wimplicit-function-declaration]: implicit declaration of function ‘quotactl_fd’; did you mean ‘quotactl’?
#   16|           /* Emulates quotactl_fd() on older kernels that lack it. (i.e. kernels < 5.14) */
#   17|   
#   18|->         r = RET_NERRNO(quotactl_fd(fd, cmd, id, addr));
#   19|           if (!ERRNO_IS_NEG_NOT_SUPPORTED(r))
#   20|                   return r;

Error: COMPILER_WARNING: [#def1521] [important]
systemd-258/src/shared/resize-fs.c:6:10: error[fatal error]: linux/xfs.h: No such file or directory
#    4|   #include <linux/fs.h>
#    5|   #include <linux/magic.h>
#    6|-> #include <linux/xfs.h>
#    7|   #include <sys/ioctl.h>
#    8|   #include <sys/vfs.h>

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1522]
systemd-258/src/shared/rm-rf.c:172:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘old_mode’
systemd-258/src/shared/rm-rf.c:425:5: enter_function: entry to ‘rm_rf_at’
systemd-258/src/shared/rm-rf.c:429:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/rm-rf.c:430:9: branch_false: ...to here
systemd-258/src/shared/rm-rf.c:430:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/rm-rf.c:434:13: branch_false: ...to here
systemd-258/src/shared/rm-rf.c:434:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/rm-rf.c:439:13: branch_false: ...to here
systemd-258/src/shared/rm-rf.c:439:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/rm-rf.c:443:13: branch_false: ...to here
systemd-258/src/shared/rm-rf.c:458:14: call_function: calling ‘openat_harder’ from ‘rm_rf_at’
#  170|           if (fd < 0) {
#  171|                   if (chmod_done)
#  172|->                         (void) fchmod_opath(pfd, old_mode & 07777);
#  173|                   return fd;
#  174|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1523]
systemd-258/src/shared/rm-rf.c:177:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘old_mode’
systemd-258/src/shared/rm-rf.c:425:5: enter_function: entry to ‘rm_rf_at’
systemd-258/src/shared/rm-rf.c:429:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/rm-rf.c:430:9: branch_false: ...to here
systemd-258/src/shared/rm-rf.c:430:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/rm-rf.c:434:13: branch_false: ...to here
systemd-258/src/shared/rm-rf.c:434:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/rm-rf.c:439:13: branch_false: ...to here
systemd-258/src/shared/rm-rf.c:439:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/rm-rf.c:443:13: branch_false: ...to here
systemd-258/src/shared/rm-rf.c:458:14: call_function: calling ‘openat_harder’ from ‘rm_rf_at’
#  175|   
#  176|           if (ret_old_mode)
#  177|->                 *ret_old_mode = old_mode;
#  178|   
#  179|           return TAKE_FD(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1524]
systemd-258/src/shared/rm-rf.h:39:1: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
systemd-258/src/test/test-unit-file.c:159:1: enter_function: entry to ‘test_unit_file_remove_from_name_map’
systemd-258/src/test/test-unit-file.c:163:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-unit-file.c:164:9: branch_false: ...to here
systemd-258/src/test/test-unit-file.c:164:9: acquire_memory: allocated here
systemd-258/src/test/test-unit-file.c:164:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-unit-file.c:166:28: branch_true: following ‘true’ branch (when ‘i != 10’)...
systemd-258/src/test/test-unit-file.c:167:21: branch_true: ...to here
systemd-258/src/test/test-unit-file.c:167:21: call_function: calling ‘test_unit_file_remove_from_name_map_trail’ from ‘test_unit_file_remove_from_name_map’
systemd-258/src/test/test-unit-file.c:160:51: call_function: calling ‘rm_rf_physical_and_freep’ from ‘test_unit_file_remove_from_name_map’
#   37|   /* Similar as above, but allow to destroy a directory on a physical file system, and also frees the pointer. */
#   38|   char* rm_rf_physical_and_free(char *p);
#   39|-> DEFINE_TRIVIAL_CLEANUP_FUNC(char*, rm_rf_physical_and_free);
#   40|   
#   41|   /* Similar as above, but also has magic btrfs subvolume powers. */

Error: COMPILER_WARNING: [#def1525] [important]
systemd-258/src/shared/shift-uid.c:280:16: error[error]: ‘MQUEUE_MAGIC’ undeclared (first use in this function)
#  278|                  F_TYPE_EQUAL(sfs->f_type, EFIVARFS_MAGIC) ||
#  279|                  F_TYPE_EQUAL(sfs->f_type, HUGETLBFS_MAGIC) ||
#  280|->                F_TYPE_EQUAL(sfs->f_type, MQUEUE_MAGIC) ||
#  281|                  F_TYPE_EQUAL(sfs->f_type, PROC_SUPER_MAGIC) ||
#  282|                  F_TYPE_EQUAL(sfs->f_type, PSTOREFS_MAGIC) ||

Error: CPPCHECK_WARNING (CWE-457): [#def1526]
systemd-258/src/shared/sleep-config.c:315: warning[uninitvar]: Uninitialized variable: support
#  313|           }
#  314|   
#  315|->         assert(support == SLEEP_SUPPORTED);
#  316|           *ret_support = support;
#  317|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1527]
systemd-258/src/shared/sleep-config.c:315:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘support’
systemd-258/src/shared/sleep-config.c:294:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/sleep-config.c:295:9: branch_false: ...to here
systemd-258/src/shared/sleep-config.c:295:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/sleep-config.c:297:14: branch_false: ...to here
systemd-258/src/shared/sleep-config.c:297:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/sleep-config.c:303:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/sleep-config.c:315:9: branch_false: ...to here
systemd-258/src/shared/sleep-config.c:315:9: danger: use of uninitialized value ‘support’ here
#  313|           }
#  314|   
#  315|->         assert(support == SLEEP_SUPPORTED);
#  316|           *ret_support = support;
#  317|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1528]
systemd-258/src/shared/specifier.c:146:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(33)’
systemd-258/src/shared/specifier.c:138:5: enter_function: entry to ‘specifier_id128’
systemd-258/src/shared/specifier.c:139:32: branch_false: following ‘false’ branch...
systemd-258/src/shared/specifier.c:142:13: call_function: inlined call to ‘malloc_multiply’ from ‘specifier_id128’
systemd-258/src/shared/specifier.c:143:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/specifier.c:146:16: branch_false: ...to here
systemd-258/src/shared/specifier.c:146:9: danger: ‘malloc(33)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  144|                   return -ENOMEM;
#  145|   
#  146|->         *ret = sd_id128_to_string(*id, n);
#  147|           return 0;
#  148|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1529]
systemd-258/src/shared/specifier.c:158:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(37)’
systemd-258/src/shared/specifier.c:150:5: enter_function: entry to ‘specifier_uuid’
systemd-258/src/shared/specifier.c:151:32: branch_false: following ‘false’ branch...
systemd-258/src/shared/specifier.c:154:13: call_function: inlined call to ‘malloc_multiply’ from ‘specifier_uuid’
systemd-258/src/shared/specifier.c:155:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/specifier.c:158:16: branch_false: ...to here
systemd-258/src/shared/specifier.c:158:9: danger: ‘malloc(37)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  156|                   return -ENOMEM;
#  157|   
#  158|->         *ret = sd_id128_to_uuid_string(*id, n);
#  159|           return 0;
#  160|   }

Error: COMPILER_WARNING: [#def1530] [important]
systemd-258/src/shared/switch-root.c:155:32: error[-Wimplicit-function-declaration]: implicit declaration of function ‘pivot_root’
#  153|            * that's not possible however, and hence we simply overmount root */
#  154|           if (resolved_old_root_after)
#  155|->                 r = RET_NERRNO(pivot_root(".", resolved_old_root_after));
#  156|           else {
#  157|                   r = RET_NERRNO(pivot_root(".", "."));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1531]
systemd-258/src/shared/tests.c:454:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/shared/tests.c:452:9: acquire_resource: ‘va_start’ called here
systemd-258/src/shared/tests.c:454:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  452|           va_start(ap, format);
#  453|           DISABLE_WARNING_FORMAT_NONLITERAL;
#  454|->         log_internalv(LOG_ERR, 0, file, line, func, format, ap);
#  455|           REENABLE_WARNING;
#  456|           va_end(ap);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1532]
systemd-258/src/shared/tests.h:16:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘<unknown>’
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:16:5: enter_function: entry to ‘main’
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:32:16: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:34:21: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:35:21: branch_true: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:36:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:38:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:41:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:43:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:43:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:44:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:44:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:46:21: call_function: inlined call to ‘safe_fork’ from ‘main’
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:47:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:56:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:56:17: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:58:17: branch_false: ...to here
systemd-258/src/libsystemd/sd-journal/test-journal-init.c:61:17: call_function: inlined call to ‘log_set_assert_return_is_criticalp’ from ‘main’
#   14|   
#   15|   static inline void log_set_assert_return_is_criticalp(bool *p) {
#   16|->         log_set_assert_return_is_critical(*p);
#   17|   }
#   18|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1533]
systemd-258/src/shared/tests.h:16:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘log_get_assert_return_is_critical()’
systemd-258/src/libsystemd-network/test-dhcp-client.c:51:13: enter_function: entry to ‘test_request_basic’
systemd-258/src/libsystemd-network/test-dhcp-client.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/test-dhcp-client.c:63:9: branch_false: ...to here
systemd-258/src/libsystemd-network/test-dhcp-client.c:63:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/test-dhcp-client.c:65:13: branch_false: ...to here
systemd-258/src/libsystemd-network/test-dhcp-client.c:66:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/test-dhcp-client.c:68:9: branch_false: ...to here
systemd-258/src/libsystemd-network/test-dhcp-client.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/test-dhcp-client.c:68:9: call_function: inlined call to ‘log_set_assert_return_is_criticalp’ from ‘test_request_basic’
systemd-258/src/libsystemd-network/test-dhcp-client.c:69:9: call_function: inlined call to ‘log_set_assert_return_is_criticalp’ from ‘test_request_basic’
#   14|   
#   15|   static inline void log_set_assert_return_is_criticalp(bool *p) {
#   16|->         log_set_assert_return_is_critical(*p);
#   17|   }
#   18|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1534]
systemd-258/src/shared/unit-file.c:564:29: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&*de.d_name)’
systemd-258/src/shared/unit-file.c:630:5: enter_function: entry to ‘unit_file_remove_from_name_map’
systemd-258/src/shared/unit-file.c:640:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/unit-file.c:646:13: branch_false: ...to here
systemd-258/src/shared/unit-file.c:646:13: call_function: calling ‘unit_file_build_name_map’ from ‘unit_file_remove_from_name_map’
#  562|                                   return log_oom();
#  563|   
#  564|->                         r = hashmap_ensure_put(&ids, &string_hash_ops_free_free, key, dst);
#  565|                           if (r < 0)
#  566|                                   return log_warning_errno(r, "Failed to add entry to hashmap (%s%s%s): %m",

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1535]
systemd-258/src/shared/user-record-nss.c:299:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*sgrp.sg_namp’
systemd-258/src/shared/user-record-nss.c:424:5: enter_function: entry to ‘nss_group_record_by_gid’
systemd-258/src/shared/user-record-nss.c:436:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record-nss.c:439:12: branch_false: ...to here
systemd-258/src/shared/user-record-nss.c:439:12: branch_true: following ‘true’ branch (when ‘with_shadow != 0’)...
systemd-258/src/shared/user-record-nss.c:440:21: branch_true: ...to here
systemd-258/src/shared/user-record-nss.c:440:21: call_function: calling ‘nss_sgrp_for_group’ from ‘nss_group_record_by_gid’
systemd-258/src/shared/user-record-nss.c:440:21: return_function: returning to ‘nss_group_record_by_gid’ from ‘nss_sgrp_for_group’
systemd-258/src/shared/user-record-nss.c:441:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record-nss.c:449:13: branch_false: ...to here
systemd-258/src/shared/user-record-nss.c:449:13: call_function: calling ‘nss_group_to_group_record’ from ‘nss_group_record_by_gid’
#  297|                   return -EINVAL;
#  298|   
#  299|->         if (sgrp && !streq_ptr(sgrp->sg_namp, grp->gr_name))
#  300|                   return -EINVAL;
#  301|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1536]
systemd-258/src/shared/user-record.c:152:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  150|           free(h->realm);
#  151|           free(h->user_name_and_realm_auto);
#  152|->         strv_free(h->aliases);
#  153|           free(h->real_name);
#  154|           free(h->email_address);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1537]
systemd-258/src/shared/user-record.c:155:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  153|           free(h->real_name);
#  154|           free(h->email_address);
#  155|->         erase_and_free(h->password_hint);
#  156|           free(h->location);
#  157|           free(h->icon_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1538]
systemd-258/src/shared/user-record.c:164:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  162|           free(h->shell);
#  163|   
#  164|->         strv_free(h->environment);
#  165|           free(h->time_zone);
#  166|           free(h->preferred_language);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1539]
systemd-258/src/shared/user-record.c:167:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  165|           free(h->time_zone);
#  166|           free(h->preferred_language);
#  167|->         strv_free(h->additional_languages);
#  168|           rlimit_free_all(h->rlimits);
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1540]
systemd-258/src/shared/user-record.c:168:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
systemd-258/src/shared/user-record.c:2570:5: enter_function: entry to ‘user_record_clone’
systemd-258/src/shared/user-record.c:2574:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2575:9: branch_false: ...to here
systemd-258/src/shared/user-record.c:2575:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2577:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2577:13: call_function: calling ‘user_record_new’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2577:13: return_function: returning to ‘user_record_clone’ from ‘user_record_new’
systemd-258/src/shared/user-record.c:2578:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:2581:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:2581:13: call_function: calling ‘user_record_load’ from ‘user_record_clone’
systemd-258/src/shared/user-record.c:2571:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_clone’
#  166|           free(h->preferred_language);
#  167|           strv_free(h->additional_languages);
#  168|->         rlimit_free_all(h->rlimits);
#  169|   
#  170|           free(h->skeleton_directory);

Error: CPPCHECK_WARNING (CWE-457): [#def1541]
systemd-258/src/shared/user-record.c:353: error[uninitvar]: Uninitialized variable: key
#  351|                   int l;
#  352|   
#  353|->                 p = startswith(key, "RLIMIT_");
#  354|                   if (!p)
#  355|                           l = -SYNTHETIC_ERRNO(EINVAL);

Error: CPPCHECK_WARNING (CWE-457): [#def1542]
systemd-258/src/shared/user-record.c:361: error[uninitvar]: Uninitialized variable: value
#  359|                           return json_log(variant, flags, l, "Resource limit '%s' not known.", key);
#  360|   
#  361|->                 if (!sd_json_variant_is_object(value))
#  362|                           return json_log(value, flags, SYNTHETIC_ERRNO(EINVAL), "Resource limit '%s' has invalid value.", key);
#  363|   

Error: CPPCHECK_WARNING (CWE-457): [#def1543]
systemd-258/src/shared/user-record.c:550: error[uninitvar]: Uninitialized variable: e
#  548|   
#  549|           JSON_VARIANT_ARRAY_FOREACH(e, variant) {
#  550|->                 if (!sd_json_variant_is_string(e))
#  551|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an array of strings.", strna(name));
#  552|   

Error: CPPCHECK_WARNING (CWE-457): [#def1544]
systemd-258/src/shared/user-record.c:621: error[uninitvar]: Uninitialized variable: e
#  619|           sd_json_variant *e;
#  620|           JSON_VARIANT_ARRAY_FOREACH(e, variant) {
#  621|->                 if (!sd_json_variant_is_string(e))
#  622|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not a string.");
#  623|   

Error: CPPCHECK_WARNING (CWE-457): [#def1545]
systemd-258/src/shared/user-record.c:764: error[uninitvar]: Uninitialized variable: e
#  762|                   };
#  763|   
#  764|->                 if (!sd_json_variant_is_object(e))
#  765|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not an object.");
#  766|   

Error: CPPCHECK_WARNING (CWE-457): [#def1546]
systemd-258/src/shared/user-record.c:822: error[uninitvar]: Uninitialized variable: e
#  820|                           return log_oom();
#  821|   
#  822|->                 r = sd_json_variant_unbase64(e, &b, &l);
#  823|                   if (r < 0)
#  824|                           return json_log(variant, flags, r, "Failed to decode FIDO2 credential ID: %m");

Error: CPPCHECK_WARNING (CWE-457): [#def1547]
systemd-258/src/shared/user-record.c:877: error[uninitvar]: Uninitialized variable: e
#  875|                   };
#  876|   
#  877|->                 if (!sd_json_variant_is_object(e))
#  878|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not an object.");
#  879|   

Error: CPPCHECK_WARNING (CWE-457): [#def1548]
systemd-258/src/shared/user-record.c:917: error[uninitvar]: Uninitialized variable: e
#  915|                   };
#  916|   
#  917|->                 if (!sd_json_variant_is_object(e))
#  918|                           return json_log(e, flags, SYNTHETIC_ERRNO(EINVAL), "JSON array element is not an object.");
#  919|   

Error: CPPCHECK_WARNING (CWE-457): [#def1549]
systemd-258/src/shared/user-record.c:1102: error[uninitvar]: Uninitialized variable: value
# 1100|                   _cleanup_free_ uint8_t *hash = NULL;
# 1101|   
# 1102|->                 if (!sd_json_variant_is_string(value))
# 1103|                           return json_log(value, flags, SYNTHETIC_ERRNO(EINVAL), "Blob entry '%s' has invalid hash.", key);
# 1104|   

Error: CPPCHECK_WARNING (CWE-457): [#def1550]
systemd-258/src/shared/user-record.c:1105: error[uninitvar]: Uninitialized variable: key
# 1103|                           return json_log(value, flags, SYNTHETIC_ERRNO(EINVAL), "Blob entry '%s' has invalid hash.", key);
# 1104|   
# 1105|->                 if (!suitable_blob_filename(key))
# 1106|                           return json_log(value, flags, SYNTHETIC_ERRNO(EINVAL), "Blob entry '%s' has invalid filename.", key);
# 1107|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1551]
systemd-258/src/shared/user-record.c:1121:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(sd_json_variant_string(sd_json_variant_by_index(variant,  __unique_prefix_state35.idx)))’
systemd-258/src/shared/user-record.c:1085:12: enter_function: entry to ‘dispatch_blob_manifest’
systemd-258/src/shared/user-record.c:1087:25: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1092:12: branch_false: ...to here
systemd-258/src/shared/user-record.c:1092:12: branch_false: following ‘false’ branch (when ‘variant’ is non-NULL)...
systemd-258/src/shared/user-record.c:1095:14: branch_false: ...to here
systemd-258/src/shared/user-record.c:1095:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/shared/user-record.c:1098:9: branch_true: following ‘true’ branch...
systemd-258/src/shared/user-record.c:1102:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1105:22: branch_false: ...to here
systemd-258/src/shared/user-record.c:1105:22: call_function: calling ‘suitable_blob_filename’ from ‘dispatch_blob_manifest’
systemd-258/src/shared/user-record.c:1105:22: return_function: returning to ‘dispatch_blob_manifest’ from ‘suitable_blob_filename’
systemd-258/src/shared/user-record.c:1105:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1108:28: branch_false: ...to here
systemd-258/src/shared/user-record.c:1108:28: acquire_memory: allocated here
systemd-258/src/shared/user-record.c:1109:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1112:24: branch_false: ...to here
systemd-258/src/shared/user-record.c:1113:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1116:21: branch_false: ...to here
systemd-258/src/shared/user-record.c:1117:20: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1120:21: branch_false: ...to here
systemd-258/src/shared/user-record.c:1121:20: danger: ‘strdup(sd_json_variant_string(sd_json_variant_by_index(variant,  __unique_prefix_state35.idx)))’ leaks here; was allocated at [(24)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/23)
# 1119|   
# 1120|                   r = hashmap_ensure_put(&manifest, &path_hash_ops_free_free, filename, hash);
# 1121|->                 if (r < 0)
# 1122|                           return json_log(value, flags, r, "Failed to insert blob manifest entry '%s': %m", filename);
# 1123|                   TAKE_PTR(filename); /* Ownership transfers to hashmap */

Error: CPPCHECK_WARNING (CWE-457): [#def1552]
systemd-258/src/shared/user-record.c:1159: error[uninitvar]: Uninitialized variable: e
# 1157|                           sd_id128_t k;
# 1158|   
# 1159|->                         if (!sd_json_variant_is_string(e)) {
# 1160|                                   json_log(e, flags, 0, "Machine ID is not a string, ignoring: %m");
# 1161|                                   continue;

Error: CPPCHECK_WARNING (CWE-457): [#def1553]
systemd-258/src/shared/user-record.c:1203: error[uninitvar]: Uninitialized variable: e
# 1201|                   JSON_VARIANT_ARRAY_FOREACH(e, hns) {
# 1202|   
# 1203|->                         if (!sd_json_variant_is_string(e)) {
# 1204|                                   json_log(e, flags, 0, "Hostname is not a string, ignoring: %m");
# 1205|                                   continue;

Error: CPPCHECK_WARNING (CWE-457): [#def1554]
systemd-258/src/shared/user-record.c:1365: error[uninitvar]: Uninitialized variable: e
# 1363|   
# 1364|           JSON_VARIANT_ARRAY_FOREACH(e, variant) {
# 1365|->                 if (!sd_json_variant_is_object(e))
# 1366|                           return json_log(variant, flags, SYNTHETIC_ERRNO(EINVAL), "JSON field '%s' is not an array of objects.", strna(name));
# 1367|   

Error: CPPCHECK_WARNING (CWE-457): [#def1555]
systemd-258/src/shared/user-record.c:2415: error[uninitvar]: Uninitialized variable: e
# 2413|                           _cleanup_(sd_json_variant_unrefp) sd_json_variant *z = NULL;
# 2414|   
# 2415|->                         if (!sd_json_variant_is_object(e))
# 2416|                                   return -EINVAL;
# 2417|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1556]
systemd-258/src/shared/userdb.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1741:39: acquire_memory: allocated here
systemd-258/src/shared/userdb.c:1742:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1745:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1745:14: call_function: calling ‘userdb_start_query’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1725:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   73|                   return NULL;
#   74|   
#   75|->         sd_json_variant_unref(iterator->query);
#   76|   
#   77|           set_free(iterator->links);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1557]
systemd-258/src/shared/userdb.c:75:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   73|                   return NULL;
#   74|   
#   75|->         sd_json_variant_unref(iterator->query);
#   76|   
#   77|           set_free(iterator->links);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1558]
systemd-258/src/shared/userdb.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1741:39: acquire_memory: allocated here
systemd-258/src/shared/userdb.c:1742:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1745:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1745:14: call_function: calling ‘userdb_start_query’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1725:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   76|   
#   77|           set_free(iterator->links);
#   78|->         strv_free(iterator->dropins);
#   79|   
#   80|           switch (iterator->what) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1559]
systemd-258/src/shared/userdb.c:78:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   76|   
#   77|           set_free(iterator->links);
#   78|->         strv_free(iterator->dropins);
#   79|   
#   80|           switch (iterator->what) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1560]
systemd-258/src/shared/userdb.c:101:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1741:39: acquire_memory: allocated here
systemd-258/src/shared/userdb.c:1742:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1745:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1745:14: call_function: calling ‘userdb_start_query’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1725:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   99|                   free(iterator->found_user_name);
#  100|                   free(iterator->found_group_name);
#  101|->                 strv_free(iterator->members_of_group);
#  102|                   free(iterator->filter_user_name);
#  103|                   free(iterator->filter_group_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1561]
systemd-258/src/shared/userdb.c:101:17: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#   99|                   free(iterator->found_user_name);
#  100|                   free(iterator->found_group_name);
#  101|->                 strv_free(iterator->members_of_group);
#  102|                   free(iterator->filter_user_name);
#  103|                   free(iterator->filter_group_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1562]
systemd-258/src/shared/userdb.c:106:25: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#  104|   
#  105|                   if (iterator->nss_iterating)
#  106|->                         endgrent();
#  107|   
#  108|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1563]
systemd-258/src/shared/userdb.c:114:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
#  112|           }
#  113|   
#  114|->         sd_event_unref(iterator->event);
#  115|   
#  116|           if (iterator->nss_systemd_blocked)

Error: CPPCHECK_WARNING (CWE-457): [#def1564]
systemd-258/src/shared/userdb.c:1126: warning[uninitvar]: Uninitialized variable: &spwd
# 1124|                           }
# 1125|   
# 1126|->                         r = nss_passwd_to_user_record(pw, r >= 0 ? &spwd : NULL, ret);
# 1127|                           if (r < 0)
# 1128|                                   return r;

Error: CPPCHECK_WARNING (CWE-457): [#def1565]
systemd-258/src/shared/userdb.c:1572: warning[uninitvar]: Uninitialized variable: &sgrp
# 1570|                           }
# 1571|   
# 1572|->                         r = nss_group_to_group_record(gr, r >= 0 ? &sgrp : NULL, ret);
# 1573|                           if (r < 0)
# 1574|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1566]
systemd-258/src/shared/userdb.c:1999:16: warning[-Wanalyzer-malloc-leak]: leak of ‘iterator’
systemd-258/src/shared/userdb.c:1723:5: enter_function: entry to ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1728:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1730:14: branch_false: ...to here
systemd-258/src/shared/userdb.c:1730:12: branch_true: following ‘true’ branch...
systemd-258/src/shared/userdb.c:1733:13: branch_true: ...to here
systemd-258/src/shared/userdb.c:1734:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1737:20: branch_false: ...to here
systemd-258/src/shared/userdb.c:1737:20: call_function: calling ‘userdb_iterator_new’ from ‘membershipdb_by_group’
systemd-258/src/shared/userdb.c:1737:20: return_function: returning to ‘membershipdb_by_group’ from ‘userdb_iterator_new’
systemd-258/src/shared/userdb.c:1738:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/userdb.c:1741:39: branch_false: ...to here
systemd-258/src/shared/userdb.c:1742:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/shared/userdb.c:1724:58: call_function: calling ‘userdb_iterator_freep’ from ‘membershipdb_by_group’
# 1997|                                          "Unable to find symbol _nss_systemd_block in libnss_systemd.so.2: %s", dlerror());
# 1998|   
# 1999|->         return call(b);
# 2000|   }

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1567]
systemd-258/src/shared/xml.c:57:21: warning[-Wanalyzer-infinite-loop]: infinite loop
systemd-258/src/shared/xml.c:57:21: danger: infinite loop here
systemd-258/src/shared/xml.c:57:20: branch_false: if it ever follows ‘false’ branch, it will always do so...
systemd-258/src/shared/xml.c:60:17: branch_false: ...to here
#   55|   
#   56|           for (;;) {
#   57|->                 if (*c == 0)
#   58|                           return XML_END;
#   59|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1568]
systemd-258/src/shutdown/detach-dm.c:40:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258/src/shutdown/detach-dm.c:158:5: enter_function: entry to ‘dm_detach_all’
systemd-258/src/shutdown/detach-dm.c:162:9: branch_true: following ‘true’ branch...
systemd-258/src/shutdown/detach-dm.c:162:9: branch_true: ...to here
systemd-258/src/shutdown/detach-dm.c:159:44: call_function: calling ‘device_mapper_list_free’ from ‘dm_detach_all’
#   38|           assert(head);
#   39|   
#   40|->         while (*head)
#   41|                   device_mapper_free(head, *head);
#   42|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1569]
systemd-258/src/shutdown/detach-loopback.c:43:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258/src/shutdown/detach-loopback.c:217:5: enter_function: entry to ‘loopback_detach_all’
systemd-258/src/shutdown/detach-loopback.c:221:9: branch_true: following ‘true’ branch...
systemd-258/src/shutdown/detach-loopback.c:221:9: branch_true: ...to here
systemd-258/src/shutdown/detach-loopback.c:218:46: call_function: calling ‘loopback_device_list_free’ from ‘loopback_detach_all’
#   41|           assert(head);
#   42|   
#   43|->         while (*head)
#   44|                   loopback_device_free(head, *head);
#   45|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1570]
systemd-258/src/shutdown/detach-md.c:42:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258/src/shutdown/detach-md.c:185:5: enter_function: entry to ‘md_detach_all’
systemd-258/src/shutdown/detach-md.c:189:9: branch_true: following ‘true’ branch...
systemd-258/src/shutdown/detach-md.c:189:9: branch_true: ...to here
systemd-258/src/shutdown/detach-md.c:186:42: call_function: calling ‘raid_device_list_free’ from ‘md_detach_all’
#   40|           assert(head);
#   41|   
#   42|->         while (*head)
#   43|                   raid_device_free(head, *head);
#   44|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1571]
systemd-258/src/shutdown/detach-swap.c:28:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258/src/shutdown/detach-swap.c:103:5: enter_function: entry to ‘swapoff_all’
systemd-258/src/shutdown/detach-swap.c:107:9: branch_true: following ‘true’ branch...
systemd-258/src/shutdown/detach-swap.c:107:9: branch_true: ...to here
systemd-258/src/shutdown/detach-swap.c:104:43: call_function: calling ‘swap_devices_list_free’ from ‘swapoff_all’
#   26|           assert(head);
#   27|   
#   28|->         while (*head)
#   29|                   swap_device_free(head, *head);
#   30|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1572]
systemd-258/src/shutdown/umount.c:49:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*head’
systemd-258/src/shutdown/umount.c:468:12: enter_function: entry to ‘umount_all_once’
systemd-258/src/shutdown/umount.c:472:9: branch_true: following ‘true’ branch...
systemd-258/src/shutdown/umount.c:472:9: branch_true: ...to here
systemd-258/src/shutdown/umount.c:469:43: call_function: calling ‘mount_points_list_free’ from ‘umount_all_once’
#   47|           assert(head);
#   48|   
#   49|->         while (*head)
#   50|                   mount_point_free(head, *head);
#   51|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1573]
systemd-258/src/sleep/battery-capacity.c:22:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(battery_name)’
systemd-258/src/sleep/battery-capacity.c:184:5: enter_function: entry to ‘fetch_batteries_capacity_by_name’
systemd-258/src/sleep/battery-capacity.c:189:9: branch_false: following ‘false’ branch...
systemd-258/src/sleep/battery-capacity.c:191:38: branch_false: ...to here
systemd-258/src/sleep/battery-capacity.c:192:12: branch_false: following ‘false’ branch...
systemd-258/src/sleep/battery-capacity.c:195:13: branch_false: ...to here
systemd-258/src/sleep/battery-capacity.c:196:12: branch_false: following ‘false’ branch...
systemd-258/src/sleep/battery-capacity.c:199:9: branch_false: ...to here
systemd-258/src/sleep/battery-capacity.c:199:9: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
systemd-258/src/sleep/battery-capacity.c:201:29: branch_true: ...to here
systemd-258/src/sleep/battery-capacity.c:205:20: branch_false: following ‘false’ branch...
systemd-258/src/sleep/battery-capacity.c:208:21: branch_false: ...to here
systemd-258/src/sleep/battery-capacity.c:209:20: branch_false: following ‘false’ branch...
systemd-258/src/sleep/battery-capacity.c:214:37: branch_false: ...to here
systemd-258/src/sleep/battery-capacity.c:214:37: acquire_memory: allocated here
systemd-258/src/sleep/battery-capacity.c:215:20: branch_false: following ‘false’ branch...
systemd-258/src/sleep/battery-capacity.c:218:21: branch_false: ...to here
systemd-258/src/sleep/battery-capacity.c:218:21: call_function: calling ‘CAPACITY_TO_PTR’ from ‘fetch_batteries_capacity_by_name’
systemd-258/src/sleep/battery-capacity.c:218:21: return_function: returning to ‘fetch_batteries_capacity_by_name’ from ‘CAPACITY_TO_PTR’
systemd-258/src/sleep/battery-capacity.c:22:9: danger: ‘strdup(battery_name)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#   20|   
#   21|   static void *CAPACITY_TO_PTR(int capacity) {
#   22|->         assert(capacity >= 0);
#   23|           assert(capacity <= 100);
#   24|           return INT_TO_PTR(capacity + 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1574]
systemd-258/src/socket-activate/socket-activate.c:175:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(start_fd, 3)’
systemd-258/src/socket-activate/socket-activate.c:144:12: enter_function: entry to ‘exec_process’
systemd-258/src/socket-activate/socket-activate.c:149:9: branch_false: following ‘false’ branch...
systemd-258/src/socket-activate/socket-activate.c:150:9: branch_false: ...to here
systemd-258/src/socket-activate/socket-activate.c:150:9: branch_false: following ‘false’ branch...
systemd-258/src/socket-activate/socket-activate.c:152:9: branch_false: ...to here
systemd-258/src/socket-activate/socket-activate.c:152:9: branch_true: following ‘true’ branch (when ‘var’ is non-NULL)...
systemd-258/src/socket-activate/socket-activate.c:155:21: branch_true: ...to here
systemd-258/src/socket-activate/socket-activate.c:156:20: branch_true: following ‘true’ branch...
systemd-258/src/socket-activate/socket-activate.c:164:12: branch_false: following ‘false’ branch...
systemd-258/src/socket-activate/socket-activate.c:172:20: branch_false: ...to here
systemd-258/src/socket-activate/socket-activate.c:172:20: branch_true: following ‘true’ branch (when ‘start_fd != 3’)...
systemd-258/src/socket-activate/socket-activate.c:173:25: branch_true: ...to here
systemd-258/src/socket-activate/socket-activate.c:173:25: branch_false: following ‘false’ branch...
systemd-258/src/socket-activate/socket-activate.c:175:29: branch_false: ...to here
systemd-258/src/socket-activate/socket-activate.c:175:29: acquire_resource: opened here
systemd-258/src/socket-activate/socket-activate.c:175:28: danger: ‘dup2(start_fd, 3)’ leaks here; was opened at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
#  173|                           assert(n_fds == 1);
#  174|   
#  175|->                         if (dup2(start_fd, SD_LISTEN_FDS_START) < 0)
#  176|                                   return log_error_errno(errno, "Failed to dup connection: %m");
#  177|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1575]
systemd-258/src/socket-proxy/socket-proxyd.c:63:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(88)’
systemd-258/src/socket-proxy/socket-proxyd.c:442:12: enter_function: entry to ‘context_add_connection’
systemd-258/src/socket-proxy/socket-proxyd.c:445:9: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:447:35: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:448:12: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:455:13: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:461:12: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:464:13: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:468:53: call_function: inlined call to ‘malloc_multiply’ from ‘context_add_connection’
systemd-258/src/socket-proxy/socket-proxyd.c:469:12: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:472:9: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:468:49: call_function: inlined call to ‘connection_freep’ from ‘context_add_connection’
#   61|                   return NULL;
#   62|   
#   63|->         if (c->context)
#   64|                   set_remove(c->context->connections, c);
#   65|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1576]
systemd-258/src/socket-proxy/socket-proxyd.c:412:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(88)’
systemd-258/src/socket-proxy/socket-proxyd.c:442:12: enter_function: entry to ‘context_add_connection’
systemd-258/src/socket-proxy/socket-proxyd.c:445:9: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:447:35: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:448:12: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:455:13: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:461:12: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:464:13: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:468:53: call_function: inlined call to ‘malloc_multiply’ from ‘context_add_connection’
systemd-258/src/socket-proxy/socket-proxyd.c:469:12: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:472:9: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:480:12: branch_false: following ‘false’ branch...
systemd-258/src/socket-proxy/socket-proxyd.c:483:9: branch_false: ...to here
systemd-258/src/socket-proxy/socket-proxyd.c:485:13: call_function: calling ‘resolve_remote’ from ‘context_add_connection’
systemd-258/src/socket-proxy/socket-proxyd.c:468:49: call_function: inlined call to ‘connection_freep’ from ‘context_add_connection’
#  410|           int r;
#  411|   
#  412|->         if (IN_SET(arg_remote_host[0], '/', '@')) {
#  413|                   union sockaddr_union sa;
#  414|                   int sa_len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1577]
systemd-258/src/sysext/sysext.c:752:1: warning[-Wanalyzer-malloc-leak]: leak of ‘options’
systemd-258/src/sysext/sysext.c:711:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:712:9: branch_false: ...to here
systemd-258/src/sysext/sysext.c:712:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:714:19: branch_false: ...to here
systemd-258/src/sysext/sysext.c:714:19: acquire_memory: allocated here
systemd-258/src/sysext/sysext.c:715:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/sysext/sysext.c:730:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:747:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:752:1: danger: ‘options’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  750|   
#  751|           return 0;
#  752|-> }
#  753|   
#  754|   static char *hierarchy_as_single_path_component(const char *hierarchy) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1578]
systemd-258/src/sysext/sysext.c:1343:71: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*op.work_dir, 589824)’
systemd-258/src/sysext/sysext.c:1305:12: enter_function: entry to ‘mount_overlayfs_with_op’
systemd-258/src/sysext/sysext.c:1315:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:1316:9: branch_false: ...to here
systemd-258/src/sysext/sysext.c:1316:9: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:1318:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:1319:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:1322:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:1323:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:1326:36: branch_false: ...to here
systemd-258/src/sysext/sysext.c:1327:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:1330:64: branch_false: ...to here
systemd-258/src/sysext/sysext.c:1331:12: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:1334:13: branch_false: ...to here
systemd-258/src/sysext/sysext.c:1334:12: branch_true: following ‘true’ branch...
systemd-258/src/sysext/sysext.c:1336:20: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:1339:48: branch_false: ...to here
systemd-258/src/sysext/sysext.c:1339:43: acquire_resource: opened here
systemd-258/src/sysext/sysext.c:1340:20: branch_false: following ‘false’ branch...
systemd-258/src/sysext/sysext.c:1343:71: branch_false: ...to here
systemd-258/src/sysext/sysext.c:1339:37: call_function: inlined call to ‘closep’ from ‘mount_overlayfs_with_op’
systemd-258/src/sysext/sysext.c:1343:71: danger: ‘open(*op.work_dir, 589824)’ leaks here; was opened at [(18)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/17)
# 1341|                           return log_error_errno(errno, "Failed to open directory '%s': %m", op->work_dir);
# 1342|   
# 1343|->                 r = mac_selinux_fix_full(dfd, /* inode_path= */ NULL, op->hierarchy, /* flags= */ 0);
# 1344|                   if (r < 0)
# 1345|                           return log_error_errno(r, "Failed to fix SELinux label for '%s': %m", op->work_dir);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1579]
systemd-258/src/systemctl/systemctl-edit.c:189:53: warning[-Wanalyzer-null-argument]: use of NULL ‘new_path’ where non-null expected
systemd-258/src/systemctl/systemctl-edit.c:171:12: enter_function: entry to ‘unit_file_create_copy’
systemd-258/src/systemctl/systemctl-edit.c:177:30: release_memory: ‘new_path’ is NULL
systemd-258/src/systemctl/systemctl-edit.c:180:9: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-edit.c:181:9: branch_false: ...to here
systemd-258/src/systemctl/systemctl-edit.c:181:9: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-edit.c:182:9: branch_false: ...to here
systemd-258/src/systemctl/systemctl-edit.c:182:9: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-edit.c:183:9: branch_false: ...to here
systemd-258/src/systemctl/systemctl-edit.c:183:9: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-edit.c:185:13: branch_false: ...to here
systemd-258/src/systemctl/systemctl-edit.c:185:13: call_function: calling ‘get_file_to_edit’ from ‘unit_file_create_copy’
systemd-258/src/systemctl/systemctl-edit.c:185:13: return_function: returning to ‘unit_file_create_copy’ from ‘get_file_to_edit’
systemd-258/src/systemctl/systemctl-edit.c:186:12: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-edit.c:189:14: branch_false: ...to here
systemd-258/src/systemctl/systemctl-edit.c:189:14: release_memory: ‘new_path’ is NULL
systemd-258/src/systemctl/systemctl-edit.c:189:12: branch_true: following ‘true’ branch...
systemd-258/src/systemctl/systemctl-edit.c:189:53: branch_true: ...to here
systemd-258/src/systemctl/systemctl-edit.c:189:53: danger: argument 1 (‘new_path’) NULL where non-null expected
#  187|                   return r;
#  188|   
#  189|->         if (!path_equal(fragment_path, new_path) && access(new_path, F_OK) >= 0) {
#  190|                   char response;
#  191|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1580]
systemd-258/src/systemctl/systemctl-start-unit.c:367:45: warning[-Wanalyzer-null-argument]: use of NULL ‘job_type’ where non-null expected
systemd-258/src/systemctl/systemctl-start-unit.c:292:5: enter_function: entry to ‘verb_start’
systemd-258/src/systemctl/systemctl-start-unit.c:308:12: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:311:9: branch_false: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:314:12: branch_true: following ‘true’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:317:26: branch_true: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:317:26: call_function: calling ‘verb_to_action’ from ‘verb_start’
systemd-258/src/systemctl/systemctl-start-unit.c:317:26: return_function: returning to ‘verb_start’ from ‘verb_to_action’
systemd-258/src/systemctl/systemctl-start-unit.c:319:17: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:321:20: branch_false: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:321:20: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:328:29: branch_false: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:328:28: branch_false: following ‘false’ branch (when the strings are non-equal)...
systemd-258/src/systemctl/systemctl-start-unit.c:334:36: branch_false: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:334:35: branch_true: following ‘true’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:360:20: branch_true: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:360:19: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:361:22: branch_false: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:364:20: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:367:21: branch_false: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:367:20: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:367:30: branch_false: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:367:21: branch_true: following ‘true’ branch...
systemd-258/src/systemctl/systemctl-start-unit.c:367:45: branch_true: ...to here
systemd-258/src/systemctl/systemctl-start-unit.c:367:45: danger: argument 1 (‘job_type’) NULL where non-null expected
#  365|                           return log_error_errno(r, "Failed to expand names: %m");
#  366|   
#  367|->                 if (!arg_all && expanded && streq(job_type, "start") && !arg_quiet) {
#  368|                           log_warning("Warning: %ssystemctl start called with a glob pattern.%s",
#  369|                                       ansi_highlight_red(),

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1581]
systemd-258/src/systemctl/systemctl-util.c:734:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bus’
systemd-258/src/systemctl/systemctl-util.c:704:5: enter_function: entry to ‘unit_exists’
systemd-258/src/systemctl/systemctl-util.c:723:12: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-util.c:726:16: branch_false: ...to here
systemd-258/src/systemctl/systemctl-util.c:727:12: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-util.c:730:13: call_function: inlined call to ‘acquire_bus’ from ‘unit_exists’
systemd-258/src/systemctl/systemctl-util.c:730:13: call_function: inlined call to ‘acquire_bus’ from ‘unit_exists’
systemd-258/src/systemctl/systemctl-util.c:731:12: branch_false: following ‘false’ branch...
systemd-258/src/systemctl/systemctl-util.c:734:13: branch_false: ...to here
systemd-258/src/systemctl/systemctl-util.c:734:13: danger: use of uninitialized value ‘bus’ here
#  732|                   return r;
#  733|   
#  734|->         r = bus_map_all_properties(bus, "org.freedesktop.systemd1", path, property_map, 0, &error, &m, &info);
#  735|           if (r < 0)
#  736|                   return log_error_errno(r, "Failed to get properties: %s", bus_error_message(&error, r));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1582]
systemd-258/src/systemd/sd-bus.h:450:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/resolve/resolved-bus.c:1225:13: enter_function: entry to ‘bus_method_resolve_service_complete’
systemd-258/src/resolve/resolved-bus.c:1233:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-bus.c:1235:13: branch_false: ...to here
systemd-258/src/resolve/resolved-bus.c:1235:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-bus.c:1240:13: branch_false: ...to here
systemd-258/src/resolve/resolved-bus.c:1241:12: branch_true: following ‘true’ branch...
systemd-258/src/resolve/resolved-bus.c:1242:21: branch_true: ...to here
systemd-258/src/resolve/resolved-bus.c:1242:21: call_function: calling ‘reply_method_errorf’ from ‘bus_method_resolve_service_complete’
#  448|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus, sd_bus_flush_close_unref);
#  449|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_slot, sd_bus_slot_unref);
#  450|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_message, sd_bus_message_unref);
#  451|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_creds, sd_bus_creds_unref);
#  452|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_track, sd_bus_track_unref);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1583]
systemd-258/src/systemd/sd-bus.h:451:1: warning[-Wanalyzer-malloc-leak]: leak of ‘service’
systemd-258/src/resolve/resolved-bus.c:1861:12: enter_function: entry to ‘bus_method_register_service’
systemd-258/src/resolve/resolved-bus.c:1868:22: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-bus.c:1869:15: branch_false: ...to here
systemd-258/src/resolve/resolved-bus.c:1872:9: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-bus.c:1874:13: branch_false: ...to here
systemd-258/src/resolve/resolved-bus.c:1874:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-bus.c:1877:19: branch_false: ...to here
systemd-258/src/resolve/resolved-bus.c:1877:19: acquire_memory: allocated here
systemd-258/src/resolve/resolved-bus.c:1878:12: branch_false: following ‘false’ branch...
systemd-258/src/resolve/resolved-bus.c:1881:13: branch_false: ...to here
systemd-258/src/resolve/resolved-bus.c:1864:54: call_function: inlined call to ‘sd_bus_track_unrefp’ from ‘bus_method_register_service’
systemd-258/src/resolve/resolved-bus.c:1863:75: branch_false: ...to here
systemd-258/src/resolve/resolved-bus.c:1863:75: call_function: calling ‘dnssd_registered_service_freep’ from ‘bus_method_register_service’
systemd-258/src/resolve/resolved-bus.c:1862:54: call_function: inlined call to ‘sd_bus_creds_unrefp’ from ‘bus_method_register_service’
#  449|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_slot, sd_bus_slot_unref);
#  450|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_message, sd_bus_message_unref);
#  451|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_creds, sd_bus_creds_unref);
#  452|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_bus_track, sd_bus_track_unref);
#  453|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1584]
systemd-258/src/systemd/sd-device.h:167:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
systemd-258/src/udev/fido_id/fido_id.c:59:12: enter_function: entry to ‘run’
systemd-258/src/udev/fido_id/fido_id.c:73:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/fido_id/fido_id.c:76:13: branch_false: ...to here
systemd-258/src/udev/fido_id/fido_id.c:78:20: branch_false: following ‘false’ branch...
systemd-258/src/udev/fido_id/fido_id.c:86:13: branch_false: ...to here
systemd-258/src/udev/fido_id/fido_id.c:87:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/fido_id/fido_id.c:90:13: branch_false: ...to here
systemd-258/src/udev/fido_id/fido_id.c:91:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/fido_id/fido_id.c:94:21: branch_false: ...to here
systemd-258/src/udev/fido_id/fido_id.c:95:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/fido_id/fido_id.c:98:14: branch_false: ...to here
systemd-258/src/udev/fido_id/fido_id.c:98:14: acquire_resource: opened here
systemd-258/src/udev/fido_id/fido_id.c:99:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/fido_id/fido_id.c:103:20: branch_false: ...to here
systemd-258/src/udev/fido_id/fido_id.c:105:24: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/fido_id/fido_id.c:62:29: call_function: inlined call to ‘closep’ from ‘run’
systemd-258/src/udev/fido_id/fido_id.c:60:55: call_function: inlined call to ‘sd_device_unrefp’ from ‘run’
#  165|   int sd_device_monitor_filter_remove(sd_device_monitor *m);
#  166|   
#  167|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1585]
systemd-258/src/systemd/sd-device.h:167:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/cryptsetup/cryptsetup.c:2174:12: enter_function: entry to ‘attach_luks_or_plain_or_bitlk’
systemd-258/src/cryptsetup/cryptsetup.c:2187:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup.c:2188:9: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup.c:2188:9: branch_false: following ‘false’ branch...
systemd-258/src/cryptsetup/cryptsetup.c:2190:14: branch_false: ...to here
systemd-258/src/cryptsetup/cryptsetup.c:2243:12: branch_true: following ‘true’ branch (when ‘token_type == 0’)...
systemd-258/src/cryptsetup/cryptsetup.c:2244:24: branch_true: ...to here
systemd-258/src/cryptsetup/cryptsetup.c:2244:24: call_function: calling ‘attach_luks_or_plain_or_bitlk_by_tpm2’ from ‘attach_luks_or_plain_or_bitlk’
#  165|   int sd_device_monitor_filter_remove(sd_device_monitor *m);
#  166|   
#  167|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1586]
systemd-258/src/systemd/sd-device.h:167:1: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(56)’
systemd-258/src/login/logind-session-device.c:360:5: enter_function: entry to ‘session_device_new’
systemd-258/src/login/logind-session-device.c:364:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-session-device.c:366:14: branch_false: ...to here
systemd-258/src/login/logind-session-device.c:366:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-session-device.c:369:14: call_function: inlined call to ‘malloc_multiply’ from ‘session_device_new’
systemd-258/src/login/logind-session-device.c:370:12: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-session-device.c:373:9: branch_false: ...to here
systemd-258/src/login/logind-session-device.c:380:13: call_function: calling ‘session_device_verify’ from ‘session_device_new’
#  165|   int sd_device_monitor_filter_remove(sd_device_monitor *m);
#  166|   
#  167|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1587]
systemd-258/src/systemd/sd-device.h:167:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘d_originating’
systemd-258/src/storagetm/storagetm.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/storagetm/storagetm.c:845:9: branch_false: ...to here
systemd-258/src/storagetm/storagetm.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/storagetm/storagetm.c:847:21: branch_false: ...to here
systemd-258/src/storagetm/storagetm.c:850:48: call_function: inlined call to ‘sd_device_unrefp’ from ‘device_track_back’
#  165|   int sd_device_monitor_filter_remove(sd_device_monitor *m);
#  166|   
#  167|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1588]
systemd-258/src/systemd/sd-device.h:168:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘e’
systemd-258/src/login/logind-seat.c:267:12: enter_function: entry to ‘seat_trigger_devices’
systemd-258/src/login/logind-seat.c:270:9: branch_false: following ‘false’ branch...
systemd-258/src/login/logind-seat.c:272:9: branch_false: ...to here
systemd-258/src/login/logind-seat.c:272:9: call_function: inlined call to ‘set_clear’ from ‘seat_trigger_devices’
systemd-258/src/login/logind-seat.c:274:70: call_function: inlined call to ‘sd_device_enumerator_unrefp’ from ‘seat_trigger_devices’
#  166|   
#  167|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);
#  170|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1589]
systemd-258/src/systemd/sd-device.h:169:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
systemd-258/src/libsystemd/sd-device/device-monitor.c:150:5: enter_function: entry to ‘device_monitor_new_full’
systemd-258/src/libsystemd/sd-device/device-monitor.c:155:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-monitor.c:156:9: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-monitor.c:156:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-monitor.c:158:12: branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-monitor.c:179:12: branch_true: following ‘true’ branch (when ‘fd < 0’)...
systemd-258/src/libsystemd/sd-device/device-monitor.c:180:24: branch_true: ...to here
systemd-258/src/libsystemd/sd-device/device-monitor.c:180:24: acquire_resource: socket created here
systemd-258/src/libsystemd/sd-device/device-monitor.c:181:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-device/device-monitor.c:185:13: call_function: inlined call to ‘malloc_multiply’ from ‘device_monitor_new_full’
systemd-258/src/libsystemd/sd-device/device-monitor.c:186:12: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd/sd-device/device-monitor.c:152:29: call_function: inlined call to ‘closep’ from ‘device_monitor_new_full’
systemd-258/src/libsystemd/sd-device/device-monitor.c:151:64: call_function: inlined call to ‘sd_device_monitor_unrefp’ from ‘device_monitor_new_full’
 branch_false: ...to here
systemd-258/src/libsystemd/sd-device/device-monitor.c:151:64: call_function: inlined call to ‘sd_device_monitor_unrefp’ from ‘device_monitor_new_full’
#  167|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device, sd_device_unref);
#  168|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_enumerator, sd_device_enumerator_unref);
#  169|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_device_monitor, sd_device_monitor_unref);
#  170|   
#  171|   _SD_END_DECLARATIONS;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1590]
systemd-258/src/systemd/sd-dhcp6-option.h:31:1: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(32)’
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:820:12: enter_function: entry to ‘dhcp6_lease_parse_message’
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:829:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:830:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:830:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:831:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:831:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:832:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:832:9: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:834:9: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:835:33: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:836:26: branch_true: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:840:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:845:40: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:846:20: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:851:17: branch_false: ...to here
systemd-258/src/libsystemd-network/sd-dhcp6-lease.c:1027:29: call_function: calling ‘dhcp6_lease_add_vendor_option’ from ‘dhcp6_lease_parse_message’
#   29|   sd_dhcp6_option *sd_dhcp6_option_unref(sd_dhcp6_option *ra);
#   30|   
#   31|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_dhcp6_option, sd_dhcp6_option_unref);
#   32|   
#   33|   _SD_END_DECLARATIONS;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1591]
systemd-258/src/systemd/sd-event.h:180:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘e’
systemd-258/src/libsystemd-network/test-dhcp-client.c:741:9: branch_true: following ‘true’ branch...
systemd-258/src/libsystemd-network/test-dhcp-client.c:741:9: branch_true: ...to here
systemd-258/src/libsystemd-network/test-dhcp-client.c:739:46: call_function: inlined call to ‘sd_event_unrefp’ from ‘main’
#  178|   
#  179|   /* Define helpers so that __attribute__((cleanup(sd_event_unrefp))) and similar may be used. */
#  180|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event, sd_event_unref);
#  181|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event_source, sd_event_source_unref);
#  182|   _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_event_source, sd_event_source_disable_unref);

Error: GCC_ANALYZER_WARNING (CWE-685): [#def1592]
systemd-258/src/systemd/sd-id128.h:137:28: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (0 consumed)
systemd-258/src/udev/udev-builtin-blkid.c:125:12: enter_function: entry to ‘find_gpt_root’
systemd-258/src/udev/udev-builtin-blkid.c:128:26: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:132:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:143:21: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:145:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:148:13: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:149:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:151:12: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:151:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:156:13: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:157:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:159:12: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:159:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:164:20: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:226:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:229:20: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:232:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:251:38: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:253:33: branch_true: following ‘true’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:256:36: branch_true: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:259:28: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:262:29: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:263:28: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:268:29: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:269:28: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-blkid.c:274:33: branch_false: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:276:28: branch_true: following ‘true’ branch (when ‘need_esp_or_xbootldr != 0’)...
systemd-258/src/udev/udev-builtin-blkid.c:276:53: branch_true: ...to here
systemd-258/src/udev/udev-builtin-blkid.c:276:53: call_function: calling ‘sd_id128_in_set_sentinel’ from ‘find_gpt_root’ with 3 variadic arguments
#  135|   _sd_const_ static __inline__ int sd_id128_in_setv(sd_id128_t a, va_list ap) {
#  136|           for (;;) {
#  137|->                 sd_id128_t b = va_arg(ap, sd_id128_t);
#  138|   
#  139|                   if (sd_id128_is_null(b))

Error: GCC_ANALYZER_WARNING (CWE-685): [#def1593]
systemd-258/src/systemd/sd-id128.h:137:28: warning[-Wanalyzer-va-list-exhausted]: ‘ap’ has no more arguments (1 consumed)
systemd-258/src/test/test-id128.c:24:1: enter_function: entry to ‘test_id128’
systemd-258/src/test/test-id128.c:30:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-id128.c:31:9: branch_false: ...to here
systemd-258/src/test/test-id128.c:33:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-id128.c:34:9: branch_false: ...to here
systemd-258/src/test/test-id128.c:35:9: call_function: calling ‘sd_id128_in_set_sentinel’ from ‘test_id128’ with 2 variadic arguments
#  135|   _sd_const_ static __inline__ int sd_id128_in_setv(sd_id128_t a, va_list ap) {
#  136|           for (;;) {
#  137|->                 sd_id128_t b = va_arg(ap, sd_id128_t);
#  138|   
#  139|                   if (sd_id128_is_null(b))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1594]
systemd-258/src/systemd/sd-json.h:94:1: warning[-Wanalyzer-malloc-leak]: leak of ‘u’
systemd-258/src/shared/user-record.c:1770:5: enter_function: entry to ‘user_record_build’
systemd-258/src/shared/user-record.c:1776:9: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1778:9: branch_false: ...to here
systemd-258/src/shared/user-record.c:1782:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1785:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:1785:13: call_function: calling ‘user_record_new’ from ‘user_record_build’
systemd-258/src/shared/user-record.c:1785:13: return_function: returning to ‘user_record_build’ from ‘user_record_new’
systemd-258/src/shared/user-record.c:1786:12: branch_false: following ‘false’ branch...
systemd-258/src/shared/user-record.c:1789:13: branch_false: ...to here
systemd-258/src/shared/user-record.c:1789:13: call_function: calling ‘user_record_load’ from ‘user_record_build’
systemd-258/src/shared/user-record.c:1772:51: call_function: calling ‘user_record_unrefp’ from ‘user_record_build’
systemd-258/src/shared/user-record.c:1771:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘user_record_build’
 branch_false: ...to here
systemd-258/src/shared/user-record.c:1771:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘user_record_build’
#   92|   void sd_json_variant_unref_many(sd_json_variant **array, size_t n);
#   93|   
#   94|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_json_variant, sd_json_variant_unref);
#   95|   
#   96|   const char* sd_json_variant_string(sd_json_variant *v);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1595]
systemd-258/src/systemd/sd-json.h:94:1: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
systemd-258/src/libsystemd/sd-varlink/varlink-util.c:111:5: enter_function: entry to ‘varlink_many_notifyb’
systemd-258/src/libsystemd/sd-varlink/varlink-util.c:116:12: branch_false: following ‘false’ branch...
systemd-258/src/libsystemd/sd-varlink/varlink-util.c:119:60: branch_false: ...to here
systemd-258/src/libsystemd/sd-varlink/varlink-util.c:121:9: acquire_resource: ‘va_start’ called here
systemd-258/src/libsystemd/sd-varlink/varlink-util.c:119:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘varlink_many_notifyb’
 branch_false: ...to here
systemd-258/src/libsystemd/sd-varlink/varlink-util.c:119:60: call_function: inlined call to ‘sd_json_variant_unrefp’ from ‘varlink_many_notifyb’
#   92|   void sd_json_variant_unref_many(sd_json_variant **array, size_t n);
#   93|   
#   94|-> _SD_DEFINE_POINTER_CLEANUP_FUNC(sd_json_variant, sd_json_variant_unref);
#   95|   
#   96|   const char* sd_json_variant_string(sd_json_variant *v);

Error: GCC_ANALYZER_WARNING (CWE-122): [#def1596]
systemd-258/src/sysupdate/sysupdate-pattern.c:196:17: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
systemd-258/src/sysupdate/sysupdate-pattern.c:485:5: enter_function: entry to ‘pattern_format’
systemd-258/src/sysupdate/sysupdate-pattern.c:494:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-pattern.c:495:9: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-pattern.c:495:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-pattern.c:496:9: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-pattern.c:496:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-pattern.c:498:13: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-pattern.c:498:13: call_function: calling ‘pattern_split’ from ‘pattern_format’
#  194|                   assert(last->type == PATTERN_LITERAL);
#  195|   
#  196|->                 last->literal[k++] = *e;
#  197|           }
#  198|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1597]
systemd-258/src/sysupdate/sysupdate-resource.c:163:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘instance’
systemd-258/src/sysupdate/sysupdate-resource.c:497:5: enter_function: entry to ‘resource_load_instances’
systemd-258/src/sysupdate/sysupdate-resource.c:500:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:502:17: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:506:21: call_function: calling ‘resource_load_from_directory’ from ‘resource_load_instances’
#  161|   
#  162|                   /* Inherit these from the source, if not explicitly overwritten */
#  163|->                 if (instance->metadata.mtime == USEC_INFINITY)
#  164|                           instance->metadata.mtime = timespec_load(&st.st_mtim) ?: USEC_INFINITY;
#  165|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1598]
systemd-258/src/sysupdate/sysupdate-resource.c:246:25: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘instance’
systemd-258/src/sysupdate/sysupdate-resource.c:497:5: enter_function: entry to ‘resource_load_instances’
systemd-258/src/sysupdate/sysupdate-resource.c:500:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:502:17: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:515:21: call_function: calling ‘resource_load_from_blockdev’ from ‘resource_load_instances’
#  244|                           return r;
#  245|   
#  246|->                 instance->partition_info = pinfo;
#  247|                   pinfo = (PartitionInfo) PARTITION_INFO_NULL;
#  248|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1599]
systemd-258/src/sysupdate/sysupdate-resource.c:450:37: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘instance’
systemd-258/src/sysupdate/sysupdate-resource.c:352:12: enter_function: entry to ‘resource_load_from_web’
systemd-258/src/sysupdate/sysupdate-resource.c:364:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:366:14: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:366:14: branch_true: following ‘true’ branch (when ‘web_cache’ is non-NULL)...
systemd-258/src/sysupdate/sysupdate-resource.c:366:57: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:367:12: branch_true: following ‘true’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:368:17: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:382:12: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:384:14: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:384:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:390:16: branch_true: following ‘true’ branch (when ‘left != 0’)...
systemd-258/src/sysupdate/sysupdate-resource.c:391:71: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:399:20: branch_false: following ‘false’ branch (when ‘left > 66’)...
systemd-258/src/sysupdate/sysupdate-resource.c:402:21: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:402:20: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:405:21: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:406:20: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:411:21: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:411:20: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:415:22: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:420:20: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
systemd-258/src/sysupdate/sysupdate-resource.c:422:20: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:422:20: branch_false: following ‘false’ branch (when ‘p != e’)...
systemd-258/src/sysupdate/sysupdate-resource.c:425:33: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:426:20: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:429:22: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:429:20: branch_true: following ‘true’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:431:21: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:431:20: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:434:21: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:435:20: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:437:20: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:437:20: branch_true: following ‘true’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:438:46: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:441:28: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:444:29: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:444:29: call_function: calling ‘resource_add_instance’ from ‘resource_load_from_web’
systemd-258/src/sysupdate/sysupdate-resource.c:444:29: return_function: returning to ‘resource_load_from_web’ from ‘resource_add_instance’
systemd-258/src/sysupdate/sysupdate-resource.c:445:28: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:448:25: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:448:25: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:450:37: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:450:37: danger: use of uninitialized value ‘instance’ here
#  448|                           assert(hlen == sizeof(instance->metadata.sha256sum));
#  449|   
#  450|->                         if (instance->metadata.sha256sum_set) {
#  451|                                   if (memcmp(instance->metadata.sha256sum, h, hlen) != 0)
#  452|                                           return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "SHA256 sum parsed from filename and manifest don't match at line %zu, refusing.", line_nr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1600]
systemd-258/src/sysupdate/sysupdate-resource.c:753:1: warning[-Wanalyzer-malloc-leak]: leak of ‘relative_to’
systemd-258/src/sysupdate/sysupdate-resource.c:599:5: enter_function: entry to ‘resource_resolve_path’
systemd-258/src/sysupdate/sysupdate-resource.c:609:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:611:13: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:617:12: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:658:20: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:658:19: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:698:20: call_function: inlined call to ‘RESOURCE_IS_FILESYSTEM’ from ‘resource_resolve_path’
systemd-258/src/sysupdate/sysupdate-resource.c:703:25: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:705:39: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:705:39: acquire_memory: allocated here
systemd-258/src/sysupdate/sysupdate-resource.c:706:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:727:20: branch_true: following ‘true’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:728:32: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:728:32: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate-resource.c:728:32: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:728:32: branch_true: following ‘true’ branch (when ‘_e < 0’)...
systemd-258/src/sysupdate/sysupdate-resource.c:728:32: branch_true: ...to here
systemd-258/src/sysupdate/sysupdate-resource.c:753:1: danger: ‘relative_to’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  751|           free_and_replace(rr->path, p);
#  752|           return 1;
#  753|-> }
#  754|   
#  755|   static const char *resource_type_table[_RESOURCE_TYPE_MAX] = {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1601]
systemd-258/src/sysupdate/sysupdate.c:184:13: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 80)’
systemd-258/src/sysupdate/sysupdate.c:905:12: enter_function: entry to ‘context_make_offline’
systemd-258/src/sysupdate/sysupdate.c:909:9: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate.c:914:19: call_function: inlined call to ‘context_new’ from ‘context_make_offline’
systemd-258/src/sysupdate/sysupdate.c:915:12: branch_false: following ‘false’ branch...
systemd-258/src/sysupdate/sysupdate.c:918:13: branch_false: ...to here
systemd-258/src/sysupdate/sysupdate.c:918:13: call_function: calling ‘context_read_definitions’ from ‘context_make_offline’
systemd-258/src/sysupdate/sysupdate.c:906:43: call_function: inlined call to ‘context_freep’ from ‘context_make_offline’
#  182|           assert(c);
#  183|   
#  184|->         if (arg_definitions)
#  185|                   dirs = strv_new(arg_definitions);
#  186|           else if (arg_component) {

Error: COMPILER_WARNING: [#def1602] [important]
systemd-258/src/test/test-argv-util.c:39:9: error[error]: ‘TASK_COMM_LEN’ undeclared (first use in this function)
#   37|           assert_se(pid_get_comm(0, &comm) >= 0);
#   38|           log_debug("comm = <%s>", comm);
#   39|->         assert_se(strneq(comm, p, TASK_COMM_LEN-1));
#   40|           /* We expect comm to be at most 16 bytes (TASK_COMM_LEN). The kernel may raise this limit in the
#   41|            * future. We'd only check the initial part, at least until we recompile, but this will still pass. */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1603]
systemd-258/src/test/test-async.c:55:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524288)’
systemd-258/src/test/test-async.c:36:1: enter_function: entry to ‘test_asynchronous_close’
systemd-258/src/test/test-async.c:41:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-async.c:42:9: branch_false: ...to here
systemd-258/src/test/test-async.c:43:9: call_function: calling ‘wait_fd_closed’ from ‘test_asynchronous_close’
systemd-258/src/test/test-async.c:43:9: return_function: returning to ‘test_asynchronous_close’ from ‘wait_fd_closed’
systemd-258/src/test/test-async.c:46:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-async.c:48:12: branch_false: ...to here
systemd-258/src/test/test-async.c:48:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-async.c:51:17: branch_true: ...to here
systemd-258/src/test/test-async.c:51:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-async.c:53:22: branch_false: ...to here
systemd-258/src/test/test-async.c:53:22: acquire_resource: opened here
systemd-258/src/test/test-async.c:54:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-async.c:55:17: branch_false: ...to here
systemd-258/src/test/test-async.c:55:17: danger: ‘open("/dev/null", 524288)’ leaks here; was opened at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
#   53|                   fd = open("/dev/null", O_RDONLY|O_CLOEXEC);
#   54|                   ASSERT_OK(fd);
#   55|->                 asynchronous_close(fd);
#   56|                   wait_fd_closed(fd);
#   57|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1604]
systemd-258/src/test/test-bpf-devices.c:44:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(s, 524544)’
systemd-258/src/test/test-bpf-devices.c:17:13: enter_function: entry to ‘test_policy_closed’
systemd-258/src/test/test-bpf-devices.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:27:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:28:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:30:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:33:9: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:33:9: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
systemd-258/src/test/test-bpf-devices.c:42:22: branch_true: ...to here
systemd-258/src/test/test-bpf-devices.c:42:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:43:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:44:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:44:26: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:48:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:49:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:49:26: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:40:37: call_function: inlined call to ‘closep’ from ‘test_policy_closed’
systemd-258/src/test/test-bpf-devices.c:44:26: danger: ‘open(s, 524544)’ leaks here; was opened at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
#   42|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#   43|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#   44|->                 wrong += fd < 0 && errno == EPERM;
#   45|                   /* We ignore errors other than EPERM, e.g. ENOENT or ENXIO */
#   46|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1605]
systemd-258/src/test/test-bpf-devices.c:49:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(s, 524545)’
systemd-258/src/test/test-bpf-devices.c:17:13: enter_function: entry to ‘test_policy_closed’
systemd-258/src/test/test-bpf-devices.c:25:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:27:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:28:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:30:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:33:9: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:33:9: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
systemd-258/src/test/test-bpf-devices.c:42:22: branch_true: ...to here
systemd-258/src/test/test-bpf-devices.c:43:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:44:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:44:26: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:47:23: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:48:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:49:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:49:26: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:40:50: call_function: inlined call to ‘closep’ from ‘test_policy_closed’
systemd-258/src/test/test-bpf-devices.c:49:26: danger: ‘open(s, 524545)’ leaks here; was opened at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
#   47|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#   48|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#   49|->                 wrong += fd2 < 0 && errno == EPERM;
#   50|           }
#   51|           assert_se(wrong == 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1606]
systemd-258/src/test/test-bpf-devices.c:82:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524544)’
systemd-258/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:80:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:81:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:82:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:77:37: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:82:26: danger: ‘open("/dev/null", 524544)’ leaks here; was opened at [(12)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/11)
#   80|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#   81|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#   82|->                 wrong += fd < 0;
#   83|   
#   84|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1607]
systemd-258/src/test/test-bpf-devices.c:86:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524545)’
systemd-258/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:81:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:82:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:84:23: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:77:50: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:86:26: danger: ‘open("/dev/null", 524545)’ leaks here; was opened at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
#   84|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#   85|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#   86|->                 wrong += fd2 < 0;
#   87|           }
#   88|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1608]
systemd-258/src/test/test-bpf-devices.c:95:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 524544)’
systemd-258/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:93:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:94:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:95:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:90:37: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:95:26: danger: ‘open("/dev/random", 524544)’ leaks here; was opened at [(14)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/13)
#   93|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#   94|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#   95|->                 wrong += fd < 0;
#   96|   
#   97|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1609]
systemd-258/src/test/test-bpf-devices.c:99:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/random", 524545)’
systemd-258/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:94:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:95:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:97:23: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:90:50: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:99:26: danger: ‘open("/dev/random", 524545)’ leaks here; was opened at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
#   97|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#   98|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#   99|->                 wrong += fd2 >= 0;
#  100|           }
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1610]
systemd-258/src/test/test-bpf-devices.c:108:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/zero", 524544)’
systemd-258/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:106:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:107:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:108:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:111:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:112:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:103:37: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:108:26: danger: ‘open("/dev/zero", 524544)’ leaks here; was opened at [(16)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/15)
#  106|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  107|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  108|->                 wrong += fd >= 0;
#  109|   
#  110|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1611]
systemd-258/src/test/test-bpf-devices.c:112:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/zero", 524545)’
systemd-258/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:107:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:108:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:110:23: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:111:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:112:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:103:50: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:112:26: danger: ‘open("/dev/zero", 524545)’ leaks here; was opened at [(18)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/17)
#  110|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  111|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  112|->                 wrong += fd2 < 0;
#  113|           }
#  114|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1612]
systemd-258/src/test/test-bpf-devices.c:121:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524544)’
systemd-258/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:111:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:112:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:119:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:120:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:121:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:124:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:125:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:116:37: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:121:26: danger: ‘open("/dev/full", 524544)’ leaks here; was opened at [(18)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/17)
#  119|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  120|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  121|->                 wrong += fd >= 0;
#  122|   
#  123|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1613]
systemd-258/src/test/test-bpf-devices.c:125:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524545)’
systemd-258/src/test/test-bpf-devices.c:54:13: enter_function: entry to ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:62:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:64:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:65:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:67:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:68:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:70:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:71:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:73:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:74:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:80:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:85:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:86:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:98:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:99:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:111:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:112:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:120:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:121:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:123:23: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:124:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:125:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:116:50: call_function: inlined call to ‘closep’ from ‘test_policy_strict’
systemd-258/src/test/test-bpf-devices.c:125:26: danger: ‘open("/dev/full", 524545)’ leaks here; was opened at [(20)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/19)
#  123|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  124|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  125|->                 wrong += fd2 >= 0;
#  126|           }
#  127|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1614]
systemd-258/src/test/test-bpf-devices.c:154:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524544)’
systemd-258/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:152:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:153:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:154:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:149:37: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:154:26: danger: ‘open("/dev/null", 524544)’ leaks here; was opened at [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
#  152|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  153|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  154|->                 wrong += fd < 0;
#  155|   
#  156|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1615]
systemd-258/src/test/test-bpf-devices.c:158:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524545)’
systemd-258/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:153:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:154:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:156:23: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:149:50: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:158:26: danger: ‘open("/dev/null", 524545)’ leaks here; was opened at [(10)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/9)
#  156|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  157|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  158|->                 wrong += fd2 < 0;
#  159|           }
#  160|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1616]
systemd-258/src/test/test-bpf-devices.c:167:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524544)’
systemd-258/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:165:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:166:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:167:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:170:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:171:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:162:37: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:167:26: danger: ‘open("/dev/full", 524544)’ leaks here; was opened at [(10)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/9)
#  165|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  166|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  167|->                 wrong += fd < 0;
#  168|   
#  169|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1617]
systemd-258/src/test/test-bpf-devices.c:171:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524545)’
systemd-258/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:166:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:167:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:169:23: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:170:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:171:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:162:50: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:171:26: danger: ‘open("/dev/full", 524545)’ leaks here; was opened at [(12)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/11)
#  169|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  170|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  171|->                 wrong += fd2 < 0;
#  172|           }
#  173|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1618]
systemd-258/src/test/test-bpf-devices.c:180:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524544)’
systemd-258/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:170:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:171:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:178:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:179:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:180:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:183:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:184:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:175:37: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:180:26: danger: ‘open("/dev/tty", 524544)’ leaks here; was opened at [(12)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/11)
#  178|                   fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
#  179|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  180|->                 wrong += fd >= 0;
#  181|   
#  182|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1619]
systemd-258/src/test/test-bpf-devices.c:184:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/tty", 524545)’
systemd-258/src/test/test-bpf-devices.c:131:13: enter_function: entry to ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:139:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:141:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:142:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:144:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:145:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:152:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:157:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:158:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:170:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:171:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:179:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:180:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:182:23: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:183:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:184:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:175:50: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major’
systemd-258/src/test/test-bpf-devices.c:184:26: danger: ‘open("/dev/tty", 524545)’ leaks here; was opened at [(14)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/13)
#  182|                   fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
#  183|                   log_debug("open(%s, \"w\") = %d/%s", s, fd2, fd2 < 0 ? ERRNO_NAME(errno) : "-");
#  184|->                 wrong += fd2 >= 0;
#  185|           }
#  186|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1620]
systemd-258/src/test/test-bpf-devices.c:213:34: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524546)’
systemd-258/src/test/test-bpf-devices.c:190:13: enter_function: entry to ‘test_policy_allow_list_major_star’
systemd-258/src/test/test-bpf-devices.c:198:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:200:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:201:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:203:13: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:204:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:210:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:210:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:211:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:212:20: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:207:37: call_function: inlined call to ‘closep’ from ‘test_policy_allow_list_major_star’
systemd-258/src/test/test-bpf-devices.c:213:34: danger: ‘open("/dev/null", 524546)’ leaks here; was opened at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
#  211|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  212|                   if (type == 'c')
#  213|->                         wrong += fd < 0;
#  214|                   else
#  215|                           wrong += fd >= 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1621]
systemd-258/src/test/test-bpf-devices.c:245:26: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524546)’
systemd-258/src/test/test-bpf-devices.c:221:13: enter_function: entry to ‘test_policy_empty’
systemd-258/src/test/test-bpf-devices.c:229:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:231:12: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:237:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:243:22: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:243:22: acquire_resource: opened here
systemd-258/src/test/test-bpf-devices.c:244:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-bpf-devices.c:245:26: branch_false: ...to here
systemd-258/src/test/test-bpf-devices.c:240:37: call_function: inlined call to ‘closep’ from ‘test_policy_empty’
systemd-258/src/test/test-bpf-devices.c:245:26: danger: ‘open("/dev/null", 524546)’ leaks here; was opened at [(6)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/5)
#  243|                   fd = open(s, O_CLOEXEC|O_RDWR|O_NOCTTY);
#  244|                   log_debug("open(%s, \"r\") = %d/%s", s, fd, fd < 0 ? ERRNO_NAME(errno) : "-");
#  245|->                 wrong += fd >= 0;
#  246|           }
#  247|   

Error: COMPILER_WARNING: [#def1622] [important]
systemd-258/src/test/test-bpf-firewall.c:4:10: error[fatal error]: linux/bpf_insn.h: No such file or directory
#    2|   
#    3|   #include <linux/bpf.h>
#    4|-> #include <linux/bpf_insn.h>
#    5|   #include <unistd.h>
#    6|   

Error: COMPILER_WARNING: [#def1623] [important]
systemd-258/src/test/test-bpf-foreign-programs.c:4:10: error[fatal error]: linux/bpf_insn.h: No such file or directory
#    2|   
#    3|   #include <linux/bpf.h>
#    4|-> #include <linux/bpf_insn.h>
#    5|   #include <string.h>
#    6|   #include <unistd.h>

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1624]
systemd-258/src/test/test-btrfs.c:29:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/", 589824)’
systemd-258/src/test/test-btrfs.c:23:14: acquire_resource: opened here
systemd-258/src/test/test-btrfs.c:24:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-btrfs.c:27:33: branch_false: ...to here
systemd-258/src/test/test-btrfs.c:29:21: danger: ‘open("/", 589824)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   27|                   BtrfsSubvolInfo info;
#   28|   
#   29|->                 r = btrfs_subvol_get_info_fd(fd, 0, &info);
#   30|                   if (r < 0)
#   31|                           log_error_errno(r, "Failed to get subvolume info: %m");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1625]
systemd-258/src/test/test-capability-util.c:125:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
systemd-258/src/test/test-capability-util.c:123:16: acquire_resource: socket created here
systemd-258/src/test/test-capability-util.c:124:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-capability-util.c:125:9: branch_false: ...to here
systemd-258/src/test/test-capability-util.c:125:9: danger: ‘sock’ leaks here
#  123|           sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP);
#  124|           assert_se(sock >= 0);
#  125|->         safe_close(sock);
#  126|   
#  127|           assert_se(drop_privileges(test_uid, test_gid, test_flags | (1ULL << CAP_NET_RAW)) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1626]
systemd-258/src/test/test-capability-util.c:142:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
systemd-258/src/test/test-capability-util.c:140:16: acquire_resource: socket created here
systemd-258/src/test/test-capability-util.c:141:9: branch_false: following ‘false’ branch (when ‘sock >= 0’)...
systemd-258/src/test/test-capability-util.c:142:9: branch_false: ...to here
systemd-258/src/test/test-capability-util.c:142:9: danger: ‘sock’ leaks here
#  140|           sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP);
#  141|           ASSERT_OK(sock);
#  142|->         safe_close(sock);
#  143|   
#  144|           assert_se(drop_privileges(test_uid, test_gid, test_flags) >= 0);

Error: CPPCHECK_WARNING (CWE-587): [#def1627]
systemd-258/src/test/test-cgroup.c:158: error[assignBoolToPointer]: Boolean value assigned to pointer.
#  156|                   ASSERT_EQ(id, id2);
#  157|   
#  158|->                 ASSERT_OK_EQ(inode_same_at(fd, NULL, fd2, NULL, AT_EMPTY_PATH), true);
#  159|           }
#  160|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1628]
systemd-258/src/test/test-compress-benchmark.c:57:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
systemd-258/src/test/test-compress-benchmark.c:73:13: enter_function: entry to ‘test_compress_decompress’
systemd-258/src/test/test-compress-benchmark.c:82:16: call_function: calling ‘make_buf’ from ‘test_compress_decompress’
#   55|                   size_t step = count / 10;
#   56|   
#   57|->                 random_bytes(buf, step);
#   58|                   memzero(buf + 1*step, step);
#   59|                   random_bytes(buf + 2*step, step);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1629]
systemd-258/src/test/test-compress-benchmark.c:68:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
systemd-258/src/test/test-compress-benchmark.c:73:13: enter_function: entry to ‘test_compress_decompress’
systemd-258/src/test/test-compress-benchmark.c:82:16: call_function: calling ‘make_buf’ from ‘test_compress_decompress’
#   66|                   memzero(buf + 9*step, step);
#   67|           } else
#   68|->                 assert_not_reached();
#   69|   
#   70|           return buf;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1630]
systemd-258/src/test/test-compress-benchmark.c:100:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1048577, 1)’
systemd-258/src/test/test-compress-benchmark.c:73:13: enter_function: entry to ‘test_compress_decompress’
systemd-258/src/test/test-compress-benchmark.c:82:16: call_function: calling ‘make_buf’ from ‘test_compress_decompress’
systemd-258/src/test/test-compress-benchmark.c:82:16: return_function: returning to ‘test_compress_decompress’ from ‘make_buf’
systemd-258/src/test/test-compress-benchmark.c:83:15: acquire_memory: allocated here
systemd-258/src/test/test-compress-benchmark.c:84:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress-benchmark.c:86:13: branch_false: ...to here
systemd-258/src/test/test-compress-benchmark.c:88:28: branch_true: following ‘true’ branch (when ‘i != 1048577’)...
systemd-258/src/test/test-compress-benchmark.c:89:24: branch_true: ...to here
systemd-258/src/test/test-compress-benchmark.c:92:24: call_function: calling ‘permute’ from ‘test_compress_decompress’
systemd-258/src/test/test-compress-benchmark.c:92:24: return_function: returning to ‘test_compress_decompress’ from ‘permute’
systemd-258/src/test/test-compress-benchmark.c:93:20: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress-benchmark.c:96:17: branch_false: ...to here
systemd-258/src/test/test-compress-benchmark.c:96:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress-benchmark.c:98:17: branch_false: ...to here
systemd-258/src/test/test-compress-benchmark.c:98:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress-benchmark.c:100:21: branch_false: ...to here
systemd-258/src/test/test-compress-benchmark.c:100:21: danger: ‘calloc(1048577, 1)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
#   98|                   memzero(buf, MIN(size + 1000, MAX_SIZE));
#   99|   
#  100|->                 r = compress(text, size, buf, size, &j, /* level = */ -1);
#  101|                   /* assume compression must be successful except for small or random inputs */
#  102|                   assert_se(r >= 0 || (size < 2048 && r == -ENOBUFS) || streq(type, "random"));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1631]
systemd-258/src/test/test-compress.c:113:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(512)’
systemd-258/src/test/test-compress.c:111:36: acquire_memory: allocated here
systemd-258/src/test/test-compress.c:112:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:113:13: branch_false: ...to here
systemd-258/src/test/test-compress.c:113:13: danger: ‘malloc(512)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  111|           compressed = compressed1 = malloc(BUFSIZE_1);
#  112|           assert_se(compressed1);
#  113|->         r = compress(data, data_len, compressed, BUFSIZE_1, &csize, /* level = */ -1);
#  114|           if (r == -ENOBUFS) {
#  115|                   log_info_errno(r, "compression failed: %m");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1632]
systemd-258/src/test/test-compress.c:120:21: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(20000)’
systemd-258/src/test/test-compress.c:112:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:113:13: branch_false: ...to here
systemd-258/src/test/test-compress.c:114:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-compress.c:115:17: branch_true: ...to here
systemd-258/src/test/test-compress.c:115:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:116:17: branch_false: ...to here
systemd-258/src/test/test-compress.c:116:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:118:44: branch_false: ...to here
systemd-258/src/test/test-compress.c:118:44: acquire_memory: allocated here
systemd-258/src/test/test-compress.c:119:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:120:21: branch_false: ...to here
systemd-258/src/test/test-compress.c:120:21: danger: ‘malloc(20000)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  118|                   compressed = compressed2 = malloc(BUFSIZE_2);
#  119|                   assert_se(compressed2);
#  120|->                 r = compress(data, data_len, compressed, BUFSIZE_2, &csize, /* level = */ -1);
#  121|           }
#  122|           assert_se(r >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1633]
systemd-258/src/test/test-compress.c:160:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf2’
systemd-258/src/test/test-compress.c:153:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-compress.c:155:28: branch_true: following ‘true’ branch (when ‘i != 125’)...
systemd-258/src/test/test-compress.c:158:17: branch_true: ...to here
systemd-258/src/test/test-compress.c:158:17: acquire_memory: allocated here
systemd-258/src/test/test-compress.c:158:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:160:17: branch_false: ...to here
systemd-258/src/test/test-compress.c:160:17: danger: ‘buf2’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  158|                   assert_se(buf2 = malloc(i));
#  159|   
#  160|->                 assert_se(decompress_sw(buf, csize, &buf2, TEXT, i, TEXT[i]) == 1);
#  161|                   assert_se(decompress_sw(buf, csize, &buf2, TEXT, i, 'y') == 0);
#  162|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1634]
systemd-258/src/test/test-compress.c:196:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(srcfile, 524288)’
systemd-258/src/test/test-compress.c:181:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:186:9: branch_false: ...to here
systemd-258/src/test/test-compress.c:190:9: acquire_resource: opened here
systemd-258/src/test/test-compress.c:190:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:192:9: branch_false: ...to here
systemd-258/src/test/test-compress.c:194:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:196:9: branch_false: ...to here
systemd-258/src/test/test-compress.c:196:9: danger: ‘open(srcfile, 524288)’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  194|           assert_se((dst = mkostemp_safe(pattern)) >= 0);
#  195|   
#  196|->         ASSERT_OK(compress(src, dst, -1, &uncompressed_size));
#  197|   
#  198|           if (cat) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1635]
systemd-258/src/test/test-compress.c:249:13: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(4194304)’
systemd-258/src/test/test-compress.c:244:9: acquire_memory: allocated here
systemd-258/src/test/test-compress.c:244:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-compress.c:245:9: branch_false: ...to here
systemd-258/src/test/test-compress.c:249:13: danger: ‘malloc(4194304)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  247|           huge[HUGE_SIZE - 1] = '\0';
#  248|   
#  249|->         r = sym_LZ4_compress_default(huge, buf, HUGE_SIZE, buf_size);
#  250|           assert_se(r >= 0);
#  251|           compressed = r;

Error: CPPCHECK_WARNING (CWE-476): [#def1636]
systemd-258/src/test/test-copy.c:619: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: digest
#  617|           struct fsverity_digest *digest = malloc(sizeof (struct fsverity_digest) + digest_size);
#  618|           ASSERT_NOT_NULL(digest);
#  619|->         digest->digest_size = digest_size;
#  620|           return digest;
#  621|   }

Error: CPPCHECK_WARNING (CWE-587): [#def1637]
systemd-258/src/test/test-copy.c:645: error[assignBoolToPointer]: Boolean value assigned to pointer.
#  643|           bool enabled_a = measure_fsverity(dirfd_a, name, digest_a);
#  644|           bool enabled_b = measure_fsverity(dirfd_b, name, digest_b);
#  645|->         ASSERT_EQ(enabled_a, enabled_b);
#  646|           if (enabled_a) {
#  647|                   ASSERT_EQ(digest_a->digest_algorithm, digest_b->digest_algorithm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1638]
systemd-258/src/test/test-device-nodes.c:15:9: warning[-Wanalyzer-malloc-leak]: leak of ‘out’
systemd-258/src/test/test-device-nodes.c:12:21: acquire_memory: allocated here
systemd-258/src/test/test-device-nodes.c:14:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-device-nodes.c:15:9: branch_false: ...to here
systemd-258/src/test/test-device-nodes.c:15:9: danger: ‘out’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   13|   
#   14|           assert_se(out);
#   15|->         assert_se(encode_devnode_name(in, out, out_len) >= 0);
#   16|           puts(out);
#   17|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1639]
systemd-258/src/test/test-fd-util.c:150:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
systemd-258/src/test/test-fd-util.c:146:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:147:9: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:147:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:149:18: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:149:18: acquire_resource: opened here
systemd-258/src/test/test-fd-util.c:150:9: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  148|   
#  149|           new_fd = open("/dev/null", O_RDONLY);
#  150|->         assert_se(new_fd == 0);
#  151|   
#  152|           new_fd = fd_move_above_stdio(new_fd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1640]
systemd-258/src/test/test-fd-util.c:155:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(fcntl(0, 0, 3))’
systemd-258/src/test/test-fd-util.c:146:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:147:9: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:147:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:149:18: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:150:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:152:18: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:153:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:155:9: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:155:9: acquire_resource: opened here
systemd-258/src/test/test-fd-util.c:155:9: danger: ‘dup(fcntl(0, 0, 3))’ leaks here; was opened at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  153|           assert_se(new_fd >= 3);
#  154|   
#  155|->         assert_se(dup(original_stdin) == 0);
#  156|           assert_se(close_nointr(original_stdin) != EBADF);
#  157|           assert_se(close_nointr(new_fd) != EBADF);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1641]
systemd-258/src/test/test-fd-util.c:204:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/full", 524289)’
systemd-258/src/test/test-fd-util.c:165:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:167:12: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:167:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-fd-util.c:168:38: branch_true: ...to here
systemd-258/src/test/test-fd-util.c:176:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:179:17: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:182:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:183:17: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:183:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:184:24: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:186:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:187:17: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:187:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:188:24: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:190:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:191:17: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:191:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:192:24: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:198:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:199:17: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:199:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:200:17: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:200:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:201:32: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:202:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fd-util.c:204:17: branch_false: ...to here
systemd-258/src/test/test-fd-util.c:204:17: acquire_resource: opened here
systemd-258/src/test/test-fd-util.c:204:17: danger: ‘open("/dev/full", 524289)’ leaks here; was opened at [(28)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/27)
#  202|                   assert_se(pipe_read_fd >= 3);
#  203|   
#  204|->                 assert_se(open("/dev/full", O_WRONLY|O_CLOEXEC) == 0);
#  205|                   assert_se(memfd_new_and_seal_string("data", "foobar") == 2);
#  206|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1642]
systemd-258/src/test/test-fdset.c:18:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524288)’
systemd-258/src/test/test-fdset.c:17:14: acquire_resource: opened here
systemd-258/src/test/test-fdset.c:18:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:20:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:18:9: danger: ‘open("/dev/null", 524288)’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   16|   
#   17|           fd = open("/dev/null", O_CLOEXEC|O_RDONLY);
#   18|->         assert_se(fd >= 0);
#   19|   
#   20|           assert_se(fdset_new_fill(/* filter_cloexec= */ -1, &fdset) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1643]
systemd-258/src/test/test-fdset.c:26:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 524288)’
systemd-258/src/test/test-fdset.c:18:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:20:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:20:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:21:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:21:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:22:17: branch_false: ...to here
systemd-258/src/test/test-fdset.c:23:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:25:14: branch_false: ...to here
systemd-258/src/test/test-fdset.c:25:14: acquire_resource: opened here
systemd-258/src/test/test-fdset.c:26:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:28:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:26:9: danger: ‘open("/dev/null", 524288)’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#   24|   
#   25|           fd = open("/dev/null", O_CLOEXEC|O_RDONLY);
#   26|->         assert_se(fd >= 0);
#   27|   
#   28|           assert_se(fdset_new_fill(/* filter_cloexec= */ 0, &fdset) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1644]
systemd-258/src/test/test-fdset.c:39:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
systemd-258/src/test/test-fdset.c:18:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:20:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:20:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:21:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:21:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:22:17: branch_false: ...to here
systemd-258/src/test/test-fdset.c:23:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:25:14: branch_false: ...to here
systemd-258/src/test/test-fdset.c:26:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:28:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:28:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:29:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:30:17: branch_false: ...to here
systemd-258/src/test/test-fdset.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:33:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:33:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:34:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:34:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:35:17: branch_false: ...to here
systemd-258/src/test/test-fdset.c:36:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:38:14: branch_false: ...to here
systemd-258/src/test/test-fdset.c:38:14: acquire_resource: opened here
systemd-258/src/test/test-fdset.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fdset.c:41:9: branch_false: ...to here
systemd-258/src/test/test-fdset.c:39:9: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
#   37|   
#   38|           fd = open("/dev/null", O_RDONLY);
#   39|->         assert_se(fd >= 0);
#   40|   
#   41|           assert_se(fdset_new_fill(/* filter_cloexec= */ 1, &fdset) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1645]
systemd-258/src/test/test-fileio.c:159:9: warning[-Wanalyzer-malloc-leak]: leak of ‘popen(strextend_with_separator_internal(0, 0, ". ", file, " && /bin/echo -n \"$",  variable, "\"", 0), "re")’
systemd-258/src/test/test-fileio.c:153:13: enter_function: entry to ‘test_one_shell_var’
systemd-258/src/test/test-fileio.c:158:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fileio.c:159:9: branch_false: ...to here
systemd-258/src/test/test-fileio.c:159:9: acquire_memory: allocated here
systemd-258/src/test/test-fileio.c:159:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fileio.c:160:9: branch_false: ...to here
systemd-258/src/test/test-fileio.c:160:9: call_function: calling ‘read_full_stream’ from ‘test_one_shell_var’
systemd-258/src/test/test-fileio.c:155:32: call_function: inlined call to ‘pclosep’ from ‘test_one_shell_var’
systemd-258/src/test/test-fileio.c:159:9: danger: ‘popen(strextend_with_separator_internal(0, 0, ". ", file, " && /bin/echo -n \"$",  variable, "\"", 0), "re")’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  157|   
#  158|           assert_se(cmd = strjoin(". ", file, " && /bin/echo -n \"$", variable, "\""));
#  159|->         assert_se(f = popen(cmd, "re"));
#  160|           assert_se(read_full_stream(f, &from_shell, &sz) >= 0);
#  161|           assert_se(sz == strlen(value));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1646]
systemd-258/src/test/test-fileio.c:907:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 524289, 0)’
systemd-258/src/test/test-fileio.c:896:1: enter_function: entry to ‘test_read_full_file_socket’
systemd-258/src/test/test-fileio.c:906:20: acquire_resource: socket created here
systemd-258/src/test/test-fileio.c:907:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-fileio.c:909:9: branch_false: ...to here
systemd-258/src/test/test-fileio.c:898:29: call_function: inlined call to ‘closep’ from ‘test_read_full_file_socket’
systemd-258/src/test/test-fileio.c:907:9: danger: ‘socket(1, 524289, 0)’ leaks here
#  905|   
#  906|           listener = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0);
#  907|->         assert_se(listener >= 0);
#  908|   
#  909|           assert_se(mkdtemp_malloc(NULL, &z) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1647]
systemd-258/src/test/test-hashmap-plain.c:180:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(val1)’
systemd-258/src/test/test-hashmap-plain.c:169:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:170:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:171:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:172:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:173:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:174:16: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:175:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:177:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:180:33: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:180:9: danger: ‘strdup(val1)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/8)
#  178|           n = hashmap_new(&string_hash_ops_value_free);
#  179|   
#  180|->         hashmap_put(n, "key 1", strdup(val1));
#  181|           hashmap_put(m, "key 1", val1);
#  182|           hashmap_put(m, "key 2", val2);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1648]
systemd-258/src/test/test-hashmap-plain.c:287:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&key1)’
systemd-258/src/test/test-hashmap-plain.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:281:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:284:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:285:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:287:38: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:287:24: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:287:9: danger: ‘strdup(&key1)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/6)
#  285|           ASSERT_NULL(r);
#  286|   
#  287|->         hashmap_put(m, strdup(key1), strdup(val1));
#  288|           hashmap_put(m, strdup(key2), strdup(val2));
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1649]
systemd-258/src/test/test-hashmap-plain.c:287:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&val1)’
systemd-258/src/test/test-hashmap-plain.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:281:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:284:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:285:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:287:38: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:287:38: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:287:9: danger: ‘strdup(&val1)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/6)
#  285|           ASSERT_NULL(r);
#  286|   
#  287|->         hashmap_put(m, strdup(key1), strdup(val1));
#  288|           hashmap_put(m, strdup(key2), strdup(val2));
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1650]
systemd-258/src/test/test-hashmap-plain.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&key2)’
systemd-258/src/test/test-hashmap-plain.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:281:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:284:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:285:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:287:38: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:288:24: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:288:9: danger: ‘strdup(&key2)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/6)
#  286|   
#  287|           hashmap_put(m, strdup(key1), strdup(val1));
#  288|->         hashmap_put(m, strdup(key2), strdup(val2));
#  289|   
#  290|           r = hashmap_remove2(m, key1, &r2);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1651]
systemd-258/src/test/test-hashmap-plain.c:288:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&val2)’
systemd-258/src/test/test-hashmap-plain.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:281:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:282:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:284:13: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:285:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:287:38: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:287:24: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:288:38: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:288:9: danger: ‘strdup(&val2)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/7)
#  286|   
#  287|           hashmap_put(m, strdup(key1), strdup(val1));
#  288|->         hashmap_put(m, strdup(key2), strdup(val2));
#  289|   
#  290|           r = hashmap_remove2(m, key1, &r2);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1652]
systemd-258/src/test/test-hashmap-plain.c:736:22: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:755:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:736:22: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/9)
#  734|   
#  735|           FOREACH_ELEMENT(test, tests) {
#  736|->                 ts = now(CLOCK_MONOTONIC);
#  737|                   assert_se(h = hashmap_new(test->ops));
#  738|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1653]
systemd-258/src/test/test-hashmap-plain.c:737:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:755:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/9)
#  735|           FOREACH_ELEMENT(test, tests) {
#  736|                   ts = now(CLOCK_MONOTONIC);
#  737|->                 assert_se(h = hashmap_new(test->ops));
#  738|   
#  739|                   custom_counter = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1654]
systemd-258/src/test/test-hashmap-plain.c:744:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/8)
#  742|                           char *k, *v;
#  743|   
#  744|->                         xsprintf(s, "%u", i);
#  745|                           assert_se(k = strdup(s));
#  746|                           assert_se(v = strdup(s));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1655]
systemd-258/src/test/test-hashmap-plain.c:745:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/8)
#  743|   
#  744|                           xsprintf(s, "%u", i);
#  745|->                         assert_se(k = strdup(s));
#  746|                           assert_se(v = strdup(s));
#  747|                           custom_counter += 2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1656]
systemd-258/src/test/test-hashmap-plain.c:746:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/8)
#  744|                           xsprintf(s, "%u", i);
#  745|                           assert_se(k = strdup(s));
#  746|->                         assert_se(v = strdup(s));
#  747|                           custom_counter += 2;
#  748|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1657]
systemd-258/src/test/test-hashmap-plain.c:749:25: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: danger: ‘k’ leaks here; was allocated at [(9)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/8)
#  747|                           custom_counter += 2;
#  748|   
#  749|->                         assert_se(hashmap_put(h, k, v) >= 0);
#  750|                   }
#  751|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1658]
systemd-258/src/test/test-hashmap-plain.c:749:25: warning[-Wanalyzer-malloc-leak]: leak of ‘v’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: danger: ‘v’ leaks here; was allocated at [(11)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/10)
#  747|                           custom_counter += 2;
#  748|   
#  749|->                         assert_se(hashmap_put(h, k, v) >= 0);
#  750|                   }
#  751|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1659]
systemd-258/src/test/test-hashmap-plain.c:754:21: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:754:21: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/9)
#  752|                   hashmap_free(h);
#  753|   
#  754|->                 n = now(CLOCK_MONOTONIC);
#  755|                   log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  756|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1660]
systemd-258/src/test/test-hashmap-plain.c:755:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:755:17: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:755:17: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:755:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/9)
#  753|   
#  754|                   n = now(CLOCK_MONOTONIC);
#  755|->                 log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  756|   
#  757|                   assert_se(custom_counter == test->expect_counter);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1661]
systemd-258/src/test/test-hashmap-plain.c:757:17: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:755:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:757:17: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/9)
#  755|                   log_info("%s test took %s", test->title, FORMAT_TIMESPAN(n - ts, 0));
#  756|   
#  757|->                 assert_se(custom_counter == test->expect_counter);
#  758|           }
#  759|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1662]
systemd-258/src/test/test-hashmap-plain.c:759:1: warning[-Wanalyzer-malloc-leak]: leak of ‘k’
systemd-258/src/test/test-hashmap-plain.c:718:1: enter_function: entry to ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_true: following ‘true’ branch...
systemd-258/src/test/test-hashmap-plain.c:736:22: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:737:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:739:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_true: following ‘true’ branch (when ‘n_entries > i’)...
systemd-258/src/test/test-hashmap-plain.c:741:30: branch_true: ...to here
systemd-258/src/test/test-hashmap-plain.c:744:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:745:25: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:745:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:746:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:747:40: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:749:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:740:53: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:740:38: branch_false: following ‘false’ branch (when ‘n_entries <= i’)...
systemd-258/src/test/test-hashmap-plain.c:752:17: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_free’
systemd-258/src/test/test-hashmap-plain.c:755:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:757:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:735:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:759:1: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:759:1: danger: ‘k’ leaks here; was allocated at [(10)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/9)
#  757|                   assert_se(custom_counter == test->expect_counter);
#  758|           }
#  759|-> }
#  760|   
#  761|   TEST(hashmap_first) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1663]
systemd-258/src/test/test-hashmap-plain.c:837:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:837:9: danger: ‘strdup("key 1")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/2)
#  835|           assert_se(m);
#  836|   
#  837|->         assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  838|           assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  839|           assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1664]
systemd-258/src/test/test-hashmap-plain.c:838:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:838:9: danger: ‘strdup("key 2")’ leaks here; was allocated at [(6)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/5)
#  836|   
#  837|           assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  838|->         assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  839|           assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);
#  840|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1665]
systemd-258/src/test/test-hashmap-plain.c:839:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:839:9: danger: ‘strdup("key 3")’ leaks here; was allocated at [(9)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/8)
#  837|           assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  838|           assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  839|->         assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);
#  840|   
#  841|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1666]
systemd-258/src/test/test-hashmap-plain.c:844:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:844:9: danger: ‘strdup("key 1")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/12)
#  842|           assert_se(hashmap_isempty(m));
#  843|   
#  844|->         assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1667]
systemd-258/src/test/test-hashmap-plain.c:844:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 1")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:844:9: danger: ‘strdup("value 1")’ leaks here; was allocated at [(16)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/15)
#  842|           assert_se(hashmap_isempty(m));
#  843|   
#  844|->         assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1668]
systemd-258/src/test/test-hashmap-plain.c:845:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:845:9: danger: ‘strdup("key 2")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/14)
#  843|   
#  844|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|->         assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1669]
systemd-258/src/test/test-hashmap-plain.c:845:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 2")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:845:9: danger: ‘strdup("value 2")’ leaks here; was allocated at [(16)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/15)
#  843|   
#  844|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|->         assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1670]
systemd-258/src/test/test-hashmap-plain.c:846:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:846:9: danger: ‘strdup("key 3")’ leaks here; was allocated at [(17)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/16)
#  844|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|->         assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  847|   
#  848|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1671]
systemd-258/src/test/test-hashmap-plain.c:846:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 3")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:846:9: danger: ‘strdup("value 3")’ leaks here; was allocated at [(18)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/17)
#  844|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  845|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  846|->         assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  847|   
#  848|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1672]
systemd-258/src/test/test-hashmap-plain.c:855:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:855:9: danger: ‘strdup("key 1")’ leaks here; was allocated at [(26)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/25)
#  853|           assert_se(m);
#  854|   
#  855|->         assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  856|           assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  857|           assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1673]
systemd-258/src/test/test-hashmap-plain.c:856:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:856:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:856:9: danger: ‘strdup("key 2")’ leaks here; was allocated at [(29)](sarif:/runs/0/results/81/codeFlows/0/threadFlows/0/locations/28)
#  854|   
#  855|           assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  856|->         assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  857|           assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);
#  858|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1674]
systemd-258/src/test/test-hashmap-plain.c:857:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:856:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:857:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:857:9: danger: ‘strdup("key 3")’ leaks here; was allocated at [(32)](sarif:/runs/0/results/82/codeFlows/0/threadFlows/0/locations/31)
#  855|           assert_se(hashmap_put(m, strdup("key 1"), NULL) == 1);
#  856|           assert_se(hashmap_put(m, strdup("key 2"), NULL) == 1);
#  857|->         assert_se(hashmap_put(m, strdup("key 3"), NULL) == 1);
#  858|   
#  859|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1675]
systemd-258/src/test/test-hashmap-plain.c:866:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 1")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:866:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:866:9: danger: ‘strdup("key 1")’ leaks here; was allocated at [(37)](sarif:/runs/0/results/84/codeFlows/0/threadFlows/0/locations/36)
#  864|           assert_se(m);
#  865|   
#  866|->         assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1676]
systemd-258/src/test/test-hashmap-plain.c:866:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 1")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:856:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:857:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:866:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:866:9: danger: ‘strdup("value 1")’ leaks here; was allocated at [(41)](sarif:/runs/0/results/83/codeFlows/0/threadFlows/0/locations/40)
#  864|           assert_se(m);
#  865|   
#  866|->         assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1677]
systemd-258/src/test/test-hashmap-plain.c:867:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 2")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:867:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:867:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:867:9: danger: ‘strdup("key 2")’ leaks here; was allocated at [(39)](sarif:/runs/0/results/85/codeFlows/0/threadFlows/0/locations/38)
#  865|   
#  866|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|->         assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  869|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1678]
systemd-258/src/test/test-hashmap-plain.c:867:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 2")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:866:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:867:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:867:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:867:9: danger: ‘strdup("value 2")’ leaks here; was allocated at [(40)](sarif:/runs/0/results/86/codeFlows/0/threadFlows/0/locations/39)
#  865|   
#  866|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|->         assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|           assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  869|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1679]
systemd-258/src/test/test-hashmap-plain.c:868:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("key 3")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:867:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:867:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:868:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:868:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:868:9: danger: ‘strdup("key 3")’ leaks here; was allocated at [(41)](sarif:/runs/0/results/88/codeFlows/0/threadFlows/0/locations/40)
#  866|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|->         assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  869|   
#  870|           hashmap_clear(m);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1680]
systemd-258/src/test/test-hashmap-plain.c:868:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("value 3")’
systemd-258/src/test/test-hashmap-plain.c:831:1: enter_function: entry to ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:837:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:838:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:839:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:841:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:842:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:844:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:845:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:846:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:848:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:849:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:850:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:853:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:855:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:856:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:857:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:859:9: call_function: inlined call to ‘hashmap_clear’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:860:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:861:13: call_function: inlined call to ‘hashmap_free’ from ‘test_hashmap_clear’
systemd-258/src/test/test-hashmap-plain.c:864:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:866:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:867:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:867:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:867:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-hashmap-plain.c:868:9: branch_false: ...to here
systemd-258/src/test/test-hashmap-plain.c:868:9: acquire_memory: allocated here
systemd-258/src/test/test-hashmap-plain.c:868:9: danger: ‘strdup("value 3")’ leaks here; was allocated at [(42)](sarif:/runs/0/results/87/codeFlows/0/threadFlows/0/locations/41)
#  866|           assert_se(hashmap_put(m, strdup("key 1"), strdup("value 1")) == 1);
#  867|           assert_se(hashmap_put(m, strdup("key 2"), strdup("value 2")) == 1);
#  868|->         assert_se(hashmap_put(m, strdup("key 3"), strdup("value 3")) == 1);
#  869|   
#  870|           hashmap_clear(m);

Error: CPPCHECK_WARNING (CWE-768): [#def1681]
systemd-258/src/test/test-id128.c:41: error[unknownEvaluationOrder]: Expression 'id,((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}}),((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})' depends on order of evaluation of side effects
#   39|           ASSERT_FALSE(sd_id128_in_set(id));
#   40|           ASSERT_FALSE(sd_id128_in_set(id, ID128_WALDI));
#   41|->         ASSERT_FALSE(sd_id128_in_set(id, ID128_WALDI, ID128_WALDI));
#   42|   
#   43|           if (sd_booted() > 0 && sd_id128_get_machine(NULL) >= 0) {

Error: CPPCHECK_WARNING (CWE-768): [#def1682]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1]' depends on order of evaluation of side effects
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);

Error: CPPCHECK_WARNING (CWE-768): [#def1683]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2]' depends on order of evaluation of side effects
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);

Error: CPPCHECK_WARNING (CWE-768): [#def1684]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1685]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1686]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1687]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1688]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1689]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1690]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1691]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1692]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1693]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1694]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1695]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1696]
systemd-258/src/test/test-id128.c:54: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04 [...]
#   52|           ASSERT_STREQ(t, STR_WALDI);
#   53|   
#   54|->         ASSERT_EQ(asprintf(&b, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 32);
#   55|           printf("waldi2: %s\n", b);
#   56|           ASSERT_STREQ(t, b);
systemd-258/src/test/test-id128.c:54: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1697]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1]' depends on order of evaluation of side effects
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);

Error: CPPCHECK_WARNING (CWE-768): [#def1698]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2]' depends on order of evaluation of side effects
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);

Error: CPPCHECK_WARNING (CWE-768): [#def1699]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1700]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1701]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1702]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1703]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1704]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1705]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1706]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1707]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1708]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1709]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1710]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1711]
systemd-258/src/test/test-id128.c:62: error[unknownEvaluationOrder]: Expression '&b,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[0],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[1],(((const union sd_id128){.bytes={0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10}})).bytes[2],(((const union sd_id128){.bytes={0x01,0x02,0x03, [...]
#   60|   
#   61|           b = mfree(b);
#   62|->         ASSERT_EQ(asprintf(&b, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(ID128_WALDI)), 36);
#   63|           printf("waldi4: %s\n", b);
#   64|           ASSERT_STREQ(q, b);
systemd-258/src/test/test-id128.c:62: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1712]
systemd-258/src/test/test-id128.c:183: error[unknownEvaluationOrder]: Expression '((const union sd_id128){.bytes={0x51,0xdf,0x0b,0x4b,0xc3,0xb0,0x4c,0x97,0x80,0xe2,0x99,0xb9,0x8c,0xa3,0x73,0xb8}}),((const union sd_id128){.bytes={0xf0,0x3d,0xaa,0xeb,0x1c,0x33,0x4b,0x43,0xa7,0x32,0x17,0x29,0x44,0xbf,0x77,0x2e}})' depends on order of evaluation of side effects
#  181|   
#  182|           /* build/systemd-id128 -a f03daaeb1c334b43a732172944bf772e show 51df0b4bc3b04c9780e299b98ca373b8 */
#  183|->         ASSERT_OK(sd_id128_get_app_specific(SD_ID128_MAKE(51,df,0b,4b,c3,b0,4c,97,80,e2,99,b9,8c,a3,73,b8),
#  184|                                               SD_ID128_MAKE(f0,3d,aa,eb,1c,33,4b,43,a7,32,17,29,44,bf,77,2e), &id));
#  185|           ASSERT_EQ_ID128(id, SD_ID128_MAKE(1d,ee,59,54,e7,5c,4d,6f,b9,6c,c6,c0,4c,a1,8a,86));

Error: CPPCHECK_WARNING (CWE-768): [#def1713]
systemd-258/src/test/test-id128.c:196: error[unknownEvaluationOrder]: Expression '((const union sd_id128){.qwords={UINT64_C(0xFFFFFFFFFFFFFFFF),UINT64_C(0xFFFFFFFFFFFFFFFF)}}),((const union sd_id128){.qwords={0,0}})' depends on order of evaluation of side effects
#  194|   
#  195|           /* Check return values */
#  196|->         ASSERT_RETURN_EXPECTED_SE(sd_id128_get_app_specific(SD_ID128_ALLF, SD_ID128_NULL, &id) == -ENXIO);
#  197|           ASSERT_RETURN_EXPECTED_SE(sd_id128_get_app_specific(SD_ID128_NULL, SD_ID128_ALLF, &id) == 0);
#  198|   }

Error: CPPCHECK_WARNING (CWE-768): [#def1714]
systemd-258/src/test/test-id128.c:197: error[unknownEvaluationOrder]: Expression '((const union sd_id128){.qwords={0,0}}),((const union sd_id128){.qwords={UINT64_C(0xFFFFFFFFFFFFFFFF),UINT64_C(0xFFFFFFFFFFFFFFFF)}})' depends on order of evaluation of side effects
#  195|           /* Check return values */
#  196|           ASSERT_RETURN_EXPECTED_SE(sd_id128_get_app_specific(SD_ID128_ALLF, SD_ID128_NULL, &id) == -ENXIO);
#  197|->         ASSERT_RETURN_EXPECTED_SE(sd_id128_get_app_specific(SD_ID128_NULL, SD_ID128_ALLF, &id) == 0);
#  198|   }
#  199|   

Error: CPPCHECK_WARNING (CWE-401): [#def1715]
systemd-258/src/test/test-json.c:423: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  421|   
#  422|           _cleanup_set_free_ Set *ss = NULL;
#  423|->         assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  424|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  425|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);

Error: CPPCHECK_WARNING (CWE-401): [#def1716]
systemd-258/src/test/test-json.c:424: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  422|           _cleanup_set_free_ Set *ss = NULL;
#  423|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  424|->         assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  425|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);
#  426|   

Error: CPPCHECK_WARNING (CWE-401): [#def1717]
systemd-258/src/test/test-json.c:425: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  423|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  424|           assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  425|->         assert_se(set_ensure_put(&ss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);
#  426|   
#  427|           _cleanup_(sd_json_variant_unrefp) sd_json_variant *ssv = NULL;

Error: CPPCHECK_WARNING (CWE-401): [#def1718]
systemd-258/src/test/test-json.c:437: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  435|   
#  436|           _cleanup_ordered_set_free_ OrderedSet *oss = NULL;
#  437|->         assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  438|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  439|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);

Error: CPPCHECK_WARNING (CWE-401): [#def1719]
systemd-258/src/test/test-json.c:438: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  436|           _cleanup_ordered_set_free_ OrderedSet *oss = NULL;
#  437|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  438|->         assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  439|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);
#  440|   

Error: CPPCHECK_WARNING (CWE-401): [#def1720]
systemd-258/src/test/test-json.c:439: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  437|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("pief"))) >= 0);
#  438|           assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("xxxx"))) >= 0);
#  439|->         assert_se(ordered_set_ensure_put(&oss, &string_hash_ops_free, ASSERT_PTR(strdup("kawumm"))) >= 0);
#  440|   
#  441|           _cleanup_(sd_json_variant_unrefp) sd_json_variant *ossv = NULL;

Error: CPPCHECK_WARNING (CWE-457): [#def1721]
systemd-258/src/test/test-json.c:860: error[uninitvar]: Uninitialized variable: i
#  858|           sd_json_variant *i;
#  859|           JSON_VARIANT_ARRAY_FOREACH(i, l) {
#  860|->                 assert_se(sd_json_variant_append_array(&wd, i) >= 0);
#  861|                   assert_se(sd_json_variant_append_array_nodup(&nd, i) >= 0);
#  862|           }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1722]
systemd-258/src/test/test-list.c:30:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*_j.item_list_prev’
systemd-258/src/test/test-list.c:23:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-list.c:30:9: danger: use of uninitialized value ‘*_j.item_list_prev’ here
#   28|   
#   29|           i = 0;
#   30|->         LIST_FOREACH_OTHERS(item_list, cursor, &items[2]) {
#   31|                   i++;
#   32|                   assert_se(cursor != &items[2]);

Error: CPPCHECK_WARNING (CWE-768): [#def1723]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1]' depends on order of evaluation of side effects
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));

Error: CPPCHECK_WARNING (CWE-768): [#def1724]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2]' depends on order of evaluation of side effe [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1725]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1726]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1727]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1728]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1729]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1730]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1731]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1732]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1733]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1734]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1735]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1736]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1737]
systemd-258/src/test/test-loop-block.c:216: error[unknownEvaluationOrder]: Expression 'sfdisk,"%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[0],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[1],(((const union sd_id128){.bytes={0x4f,0x68,0xbc,0xe3,0xe8,0xcd,0x4d,0xb1,0x96,0xe7,0xfb,0xca,0xf9,0x84,0xb7,0x09}})).bytes[2],(((const union sd_id128){.bytes={0x4f,0x68,0 [...]
#  214|   
#  215|   #ifdef SD_GPT_ROOT_NATIVE
#  216|->         fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_NATIVE));
#  217|   #else
#  218|           fprintf(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(SD_GPT_ROOT_X86_64));
systemd-258/src/test/test-loop-block.c:216: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-768): [#def1738]
systemd-258/src/test/test-macro.c:881: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  879|           /* Then, test dynamic expressions, and if they are side-effect free */
#  880|           i = -2;
#  881|->         assert_se(!ISPOWEROF2(i++));
#  882|           assert_se(i == -1);
#  883|           assert_se(!ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768): [#def1739]
systemd-258/src/test/test-macro.c:883: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  881|           assert_se(!ISPOWEROF2(i++));
#  882|           assert_se(i == -1);
#  883|->         assert_se(!ISPOWEROF2(i++));
#  884|           assert_se(i == 0);
#  885|           assert_se(!ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768): [#def1740]
systemd-258/src/test/test-macro.c:885: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  883|           assert_se(!ISPOWEROF2(i++));
#  884|           assert_se(i == 0);
#  885|->         assert_se(!ISPOWEROF2(i++));
#  886|           assert_se(i == 1);
#  887|           assert_se(ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768): [#def1741]
systemd-258/src/test/test-macro.c:887: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  885|           assert_se(!ISPOWEROF2(i++));
#  886|           assert_se(i == 1);
#  887|->         assert_se(ISPOWEROF2(i++));
#  888|           assert_se(i == 2);
#  889|           assert_se(ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768): [#def1742]
systemd-258/src/test/test-macro.c:889: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  887|           assert_se(ISPOWEROF2(i++));
#  888|           assert_se(i == 2);
#  889|->         assert_se(ISPOWEROF2(i++));
#  890|           assert_se(i == 3);
#  891|           assert_se(!ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768): [#def1743]
systemd-258/src/test/test-macro.c:891: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  889|           assert_se(ISPOWEROF2(i++));
#  890|           assert_se(i == 3);
#  891|->         assert_se(!ISPOWEROF2(i++));
#  892|           assert_se(i == 4);
#  893|           assert_se(ISPOWEROF2(i++));

Error: CPPCHECK_WARNING (CWE-768): [#def1744]
systemd-258/src/test/test-macro.c:893: error[unknownEvaluationOrder]: Expression '(i++)&((i++)-1)' depends on order of evaluation of side effects
#  891|           assert_se(!ISPOWEROF2(i++));
#  892|           assert_se(i == 4);
#  893|->         assert_se(ISPOWEROF2(i++));
#  894|           assert_se(i == 5);
#  895|           assert_se(!ISPOWEROF2(i));

Error: CPPCHECK_WARNING (CWE-768): [#def1745]
systemd-258/src/test/test-macro.c:898: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  896|   
#  897|           u = 0;
#  898|->         assert_se(!ISPOWEROF2(u++));
#  899|           assert_se(u == 1);
#  900|           assert_se(ISPOWEROF2(u++));

Error: CPPCHECK_WARNING (CWE-768): [#def1746]
systemd-258/src/test/test-macro.c:900: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  898|           assert_se(!ISPOWEROF2(u++));
#  899|           assert_se(u == 1);
#  900|->         assert_se(ISPOWEROF2(u++));
#  901|           assert_se(u == 2);
#  902|           assert_se(ISPOWEROF2(u++));

Error: CPPCHECK_WARNING (CWE-768): [#def1747]
systemd-258/src/test/test-macro.c:902: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  900|           assert_se(ISPOWEROF2(u++));
#  901|           assert_se(u == 2);
#  902|->         assert_se(ISPOWEROF2(u++));
#  903|           assert_se(u == 3);
#  904|           assert_se(!ISPOWEROF2(u++));

Error: CPPCHECK_WARNING (CWE-768): [#def1748]
systemd-258/src/test/test-macro.c:904: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  902|           assert_se(ISPOWEROF2(u++));
#  903|           assert_se(u == 3);
#  904|->         assert_se(!ISPOWEROF2(u++));
#  905|           assert_se(u == 4);
#  906|           assert_se(ISPOWEROF2(u++));

Error: CPPCHECK_WARNING (CWE-768): [#def1749]
systemd-258/src/test/test-macro.c:906: error[unknownEvaluationOrder]: Expression '(u++)&((u++)-1)' depends on order of evaluation of side effects
#  904|           assert_se(!ISPOWEROF2(u++));
#  905|           assert_se(u == 4);
#  906|->         assert_se(ISPOWEROF2(u++));
#  907|           assert_se(u == 5);
#  908|           assert_se(!ISPOWEROF2(u));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1750]
systemd-258/src/test/test-memory-util.c:39:17: warning[-Wanalyzer-malloc-leak]: leak of ‘iov’
systemd-258/src/test/test-memory-util.c:25:1: enter_function: entry to ‘test_cleanup_array’
systemd-258/src/test/test-memory-util.c:30:15: call_function: calling ‘malloc_multiply’ from ‘test_cleanup_array’
systemd-258/src/test/test-memory-util.c:30:15: return_function: returning to ‘test_cleanup_array’ from ‘malloc_multiply’
systemd-258/src/test/test-memory-util.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:33:9: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:39:17: danger: ‘iov’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#   37|   
#   38|           {
#   39|->                 assert_se(memeqbyte('x', saved_iov, sizeof(struct iovec) * saved_n));
#   40|                   assert_se(iov);
#   41|                   assert_se(n > 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1751]
systemd-258/src/test/test-memory-util.c:50:9: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_iov’
systemd-258/src/test/test-memory-util.c:25:1: enter_function: entry to ‘test_cleanup_array’
systemd-258/src/test/test-memory-util.c:30:15: call_function: calling ‘malloc_multiply’ from ‘test_cleanup_array’
systemd-258/src/test/test-memory-util.c:30:15: return_function: returning to ‘test_cleanup_array’ from ‘malloc_multiply’
systemd-258/src/test/test-memory-util.c:31:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:33:9: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:39:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:40:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:40:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:41:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:41:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:43:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:45:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:46:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:46:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:47:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:47:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-memory-util.c:43:17: branch_false: ...to here
systemd-258/src/test/test-memory-util.c:43:17: call_function: calling ‘array_cleanup’ from ‘test_cleanup_array’
systemd-258/src/test/test-memory-util.c:43:17: return_function: returning to ‘test_cleanup_array’ from ‘array_cleanup’
systemd-258/src/test/test-memory-util.c:50:9: danger: ‘saved_iov’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#   48|           }
#   49|   
#   50|->         assert_se(memeqbyte('y', saved_iov, sizeof(struct iovec) * saved_n));
#   51|           assert_se(!iov);
#   52|           assert_se(n == 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1752]
systemd-258/src/test/test-mempress.c:287:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8192)’
systemd-258/src/test/test-mempress.c:190:1: enter_function: entry to ‘test_real_pressure’
systemd-258/src/test/test-mempress.c:204:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:207:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:209:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:210:9: call_function: inlined call to ‘random_u64’ from ‘test_real_pressure’
systemd-258/src/test/test-mempress.c:210:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:211:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:212:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:213:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:213:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:214:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:215:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:215:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:216:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:216:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:218:13: branch_false: ...to here
systemd-258/src/test/test-mempress.c:219:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:222:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:222:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:224:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:224:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:226:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:228:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:230:13: call_function: inlined call to ‘safe_fork’ from ‘test_real_pressure’
systemd-258/src/test/test-mempress.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:232:12: branch_false: ...to here
systemd-258/src/test/test-mempress.c:232:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:237:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:237:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:238:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:238:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:239:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:241:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:241:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:242:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:244:38: branch_false: ...to here
systemd-258/src/test/test-mempress.c:249:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:252:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:253:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:254:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:254:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:255:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:256:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:257:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:257:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:258:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:259:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:259:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:260:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:263:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:263:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:265:18: branch_false: ...to here
systemd-258/src/test/test-mempress.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:268:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:269:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:272:13: branch_false: ...to here
systemd-258/src/test/test-mempress.c:274:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:275:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:275:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:276:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:277:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:278:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:279:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:281:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:285:23: call_function: inlined call to ‘malloc_multiply’ from ‘test_real_pressure’
systemd-258/src/test/test-mempress.c:286:25: branch_true: following ‘true’ branch (when ‘i != 1024’)...
systemd-258/src/test/test-mempress.c:287:18: branch_true: ...to here
systemd-258/src/test/test-mempress.c:287:17: danger: ‘malloc(8192) + (long unsigned int)i * 8’ could be NULL: unchecked value from [(90)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/89)
#  285|           Hashmap **h = new(Hashmap*, NN);
#  286|           for (int i = 0; i < NN; i++)
#  287|->                 h[i] = hashmap_new(NULL);
#  288|           for (int i = 0; i < NN; i++)
#  289|                   hashmap_free(h[i]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1753]
systemd-258/src/test/test-mempress.c:287:18: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(8192)’
systemd-258/src/test/test-mempress.c:190:1: enter_function: entry to ‘test_real_pressure’
systemd-258/src/test/test-mempress.c:204:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:207:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:207:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:209:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:209:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:210:9: call_function: inlined call to ‘random_u64’ from ‘test_real_pressure’
systemd-258/src/test/test-mempress.c:210:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:211:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:211:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:212:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:212:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:213:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:213:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:214:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:214:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:215:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:215:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:216:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:216:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:218:13: branch_false: ...to here
systemd-258/src/test/test-mempress.c:219:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:222:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:222:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:224:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:224:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:226:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:226:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:228:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:228:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:230:13: call_function: inlined call to ‘safe_fork’ from ‘test_real_pressure’
systemd-258/src/test/test-mempress.c:231:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:232:12: branch_false: ...to here
systemd-258/src/test/test-mempress.c:232:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:237:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:237:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:238:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:238:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:239:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:239:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:241:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:241:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:242:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:242:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:244:38: branch_false: ...to here
systemd-258/src/test/test-mempress.c:249:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:252:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:252:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:253:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:253:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:254:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:254:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:255:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:255:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:256:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:256:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:257:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:257:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:258:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:258:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:259:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:259:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:260:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:260:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:263:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:263:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:265:18: branch_false: ...to here
systemd-258/src/test/test-mempress.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:268:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:269:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:272:13: branch_false: ...to here
systemd-258/src/test/test-mempress.c:274:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:275:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:275:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:276:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:276:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:277:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:277:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:278:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:278:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:279:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:279:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:281:9: branch_false: ...to here
systemd-258/src/test/test-mempress.c:281:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-mempress.c:285:23: call_function: inlined call to ‘malloc_multiply’ from ‘test_real_pressure’
systemd-258/src/test/test-mempress.c:286:25: branch_true: following ‘true’ branch (when ‘i != 1024’)...
systemd-258/src/test/test-mempress.c:287:18: branch_true: ...to here
systemd-258/src/test/test-mempress.c:287:18: danger: ‘malloc(8192)’ leaks here; was allocated at [(90)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/89)
#  285|           Hashmap **h = new(Hashmap*, NN);
#  286|           for (int i = 0; i < NN; i++)
#  287|->                 h[i] = hashmap_new(NULL);
#  288|           for (int i = 0; i < NN; i++)
#  289|                   hashmap_free(h[i]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1754]
systemd-258/src/test/test-namespace.c:229:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/kmsg", 524288)’
systemd-258/src/test/test-namespace.c:211:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:217:13: branch_false: ...to here
systemd-258/src/test/test-namespace.c:217:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:222:15: branch_false: ...to here
systemd-258/src/test/test-namespace.c:223:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:225:12: branch_false: ...to here
systemd-258/src/test/test-namespace.c:225:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
systemd-258/src/test/test-namespace.c:228:22: branch_true: ...to here
systemd-258/src/test/test-namespace.c:228:22: acquire_resource: opened here
systemd-258/src/test/test-namespace.c:229:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:231:21: branch_false: ...to here
systemd-258/src/test/test-namespace.c:232:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:234:17: branch_false: ...to here
systemd-258/src/test/test-namespace.c:234:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:235:17: branch_false: ...to here
systemd-258/src/test/test-namespace.c:235:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:236:17: branch_false: ...to here
systemd-258/src/test/test-namespace.c:229:17: danger: ‘open("/dev/kmsg", 524288)’ leaks here; was opened at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  227|   
#  228|                   fd = open("/dev/kmsg", O_RDONLY | O_CLOEXEC);
#  229|->                 assert_se(fd > 0);
#  230|   
#  231|                   r = setup_namespace(&p, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1755]
systemd-258/src/test/test-namespace.c:235:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/kmsg", 524288)’
systemd-258/src/test/test-namespace.c:211:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:217:13: branch_false: ...to here
systemd-258/src/test/test-namespace.c:217:12: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:222:15: branch_false: ...to here
systemd-258/src/test/test-namespace.c:223:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:225:12: branch_false: ...to here
systemd-258/src/test/test-namespace.c:225:12: branch_true: following ‘true’ branch (when ‘pid == 0’)...
systemd-258/src/test/test-namespace.c:228:22: branch_true: ...to here
systemd-258/src/test/test-namespace.c:229:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:231:21: branch_false: ...to here
systemd-258/src/test/test-namespace.c:232:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:234:17: branch_false: ...to here
systemd-258/src/test/test-namespace.c:234:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-namespace.c:235:17: branch_false: ...to here
systemd-258/src/test/test-namespace.c:235:17: acquire_resource: opened here
systemd-258/src/test/test-namespace.c:235:17: danger: ‘open("/dev/kmsg", 524288)’ leaks here; was opened at [(15)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/14)
#  233|   
#  234|                   assert_se(setresuid(UID_NOBODY, UID_NOBODY, UID_NOBODY) >= 0);
#  235|->                 assert_se(open("/dev/kmsg", O_RDONLY | O_CLOEXEC) < 0);
#  236|                   assert_se(errno == EACCES);
#  237|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1756]
systemd-258/src/test/test-nulstr-util.c:100:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘l’
systemd-258/src/test/test-nulstr-util.c:104:1: enter_function: entry to ‘test_strv_make_nulstr’
systemd-258/src/test/test-nulstr-util.c:105:9: call_function: calling ‘test_strv_make_nulstr_one’ from ‘test_strv_make_nulstr’
#   98|   
#   99|           NULSTR_FOREACH(s, b)
#  100|->                 ASSERT_STREQ(s, l[i++]);
#  101|           assert_se(i == strv_length(l));
#  102|   }

Error: CPPCHECK_WARNING (CWE-401): [#def1757]
systemd-258/src/test/test-parse-helpers.c:95: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#   93|   
#   94|   static int test_path_simplify_and_warn_one(const char *p, const char *q, PathSimplifyWarnFlags f) {
#   95|->         _cleanup_free_ char *s = ASSERT_PTR(strdup(p));
#   96|           int a, b;
#   97|   

Error: CPPCHECK_WARNING (CWE-401): [#def1758]
systemd-258/src/test/test-parse-helpers.c:102: error[leakNoVarFunctionCall]: Allocation with strdup, typeof doesn't release it.
#  100|   
#  101|           free(s);
#  102|->         s = ASSERT_PTR(strdup(p));
#  103|   
#  104|           b = path_simplify_and_warn(s, f|PATH_CHECK_FATAL, /* unit= */ NULL, /* filename= */ NULL, /* line= */ 0, "Foobar=");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1759]
systemd-258/src/test/test-path-util.c:705:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘absolute_dirs’
systemd-258/src/test/test-path-util.c:692:36: release_memory: ‘search_dirs’ is NULL
systemd-258/src/test/test-path-util.c:693:36: release_memory: ‘search_dirs’ is NULL
systemd-258/src/test/test-path-util.c:695:9: branch_false: following ‘false’ branch (when ‘_result’ is non-NULL)...
systemd-258/src/test/test-path-util.c:697:23: branch_false: ...to here
systemd-258/src/test/test-path-util.c:698:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/test/test-path-util.c:699:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-path-util.c:705:9: branch_false: ...to here
systemd-258/src/test/test-path-util.c:705:9: release_memory: ‘absolute_dirs’ is NULL
systemd-258/src/test/test-path-util.c:705:9: danger: dereference of NULL ‘absolute_dirs’
#  703|           }
#  704|   
#  705|->         assert_se(mkdir(absolute_dirs[0], 0700) == 0);
#  706|           assert_se(mkdir(absolute_dirs[1], 0700) == 0);
#  707|           assert_se(symlink("dir2", absolute_dirs[2]) == 0);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1760]
systemd-258/src/test/test-path-util.c:859:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expected’
systemd-258/src/test/test-path-util.c:873:1: enter_function: entry to ‘test_path_find_first_component’
systemd-258/src/test/test-path-util.c:877:9: call_function: calling ‘test_path_find_first_component_one’ from ‘test_path_find_first_component’
#  857|                   assert_se(e);
#  858|                   assert_se(strcspn(e, "/") == (size_t) r);
#  859|->                 assert_se(strlen_ptr(*expected) == (size_t) r);
#  860|                   assert_se(strneq(e, *expected++, r));
#  861|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1761]
systemd-258/src/test/test-path-util.c:947:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘expected’
systemd-258/src/test/test-path-util.c:961:1: enter_function: entry to ‘test_path_find_last_component’
systemd-258/src/test/test-path-util.c:965:9: call_function: calling ‘test_path_find_last_component_one’ from ‘test_path_find_last_component’
#  945|                   assert_se(e);
#  946|                   assert_se(strcspn(e, "/") == (size_t) r);
#  947|->                 assert_se(strlen_ptr(*expected) == (size_t) r);
#  948|                   assert_se(strneq(e, *expected++, r));
#  949|   

Error: CPPCHECK_WARNING (CWE-457): [#def1762]
systemd-258/src/test/test-sd-hwdb.c:69: warning[uninitvar]: Uninitialized variable: r
#   67|           }
#   68|   
#   69|->         assert_se(r >= 0);
#   70|   }
#   71|   

Error: COMPILER_WARNING: [#def1763] [important]
systemd-258/src/test/test-seccomp.c:1017:24: error[-Wimplicit-function-declaration]: implicit declaration of function ‘fchmodat2’; did you mean ‘fchmodat’?
# 1015|           assert_se(!FLAGS_SET(flags, AT_EMPTY_PATH));
# 1016|   
# 1017|->         r = RET_NERRNO(fchmodat2(dirfd, path, mode, flags));
# 1018|           if (r != -ENOSYS)
# 1019|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1764]
systemd-258/src/test/test-socket-util.c:234:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmpfile, 0)’
systemd-258/src/test/test-socket-util.c:216:1: enter_function: entry to ‘test_passfd_read’
systemd-258/src/test/test-socket-util.c:221:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:223:13: call_function: inlined call to ‘safe_fork’ from ‘test_passfd_read’
systemd-258/src/test/test-socket-util.c:224:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:226:12: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:226:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-socket-util.c:228:27: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:231:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:233:45: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:233:45: acquire_resource: opened here
systemd-258/src/test/test-socket-util.c:234:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:235:17: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:235:17: branch_true: following ‘true’ branch...
systemd-258/src/test/test-socket-util.c:235:17: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:233:37: call_function: inlined call to ‘closep’ from ‘test_passfd_read’
systemd-258/src/test/test-socket-util.c:234:17: danger: ‘open(&tmpfile, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
#  232|   
#  233|                   _cleanup_close_ int tmpfd = open(tmpfile, O_RDONLY);
#  234|->                 assert_se(tmpfd >= 0);
#  235|                   assert_se(unlink(tmpfile) == 0);
#  236|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1765]
systemd-258/src/test/test-socket-util.c:278:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmpfile, 0)’
systemd-258/src/test/test-socket-util.c:257:1: enter_function: entry to ‘test_passfd_contents_read’
systemd-258/src/test/test-socket-util.c:263:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:265:13: call_function: inlined call to ‘safe_fork’ from ‘test_passfd_contents_read’
systemd-258/src/test/test-socket-util.c:266:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:268:12: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:268:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-socket-util.c:270:36: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:275:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:277:45: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:277:45: acquire_resource: opened here
systemd-258/src/test/test-socket-util.c:278:17: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:279:17: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:279:17: branch_true: following ‘true’ branch...
systemd-258/src/test/test-socket-util.c:279:17: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:277:37: call_function: inlined call to ‘closep’ from ‘test_passfd_contents_read’
systemd-258/src/test/test-socket-util.c:278:17: danger: ‘open(&tmpfile, 0)’ leaks here; was opened at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
#  276|   
#  277|                   _cleanup_close_ int tmpfd = open(tmpfile, O_RDONLY);
#  278|->                 assert_se(tmpfd >= 0);
#  279|                   assert_se(unlink(tmpfile) == 0);
#  280|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1766]
systemd-258/src/test/test-socket-util.c:334:37: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&tmpfile[i], 0)’
systemd-258/src/test/test-socket-util.c:305:1: enter_function: entry to ‘test_pass_many_fds_contents_read’
systemd-258/src/test/test-socket-util.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:317:13: call_function: inlined call to ‘safe_fork’ from ‘test_pass_many_fds_contents_read’
systemd-258/src/test/test-socket-util.c:318:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:320:12: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:320:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-socket-util.c:322:36: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:334:37: acquire_resource: opened here
systemd-258/src/test/test-socket-util.c:335:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:336:25: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:336:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:332:43: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:334:37: danger: ‘open(&tmpfile[i], 0)’ leaks here; was opened at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  332|                   for (size_t i = 0; i < 3; ++i) {
#  333|                           assert_se(write_tmpfile(tmpfile[i], file_contents[i]) == 0);
#  334|->                         tmpfds[i] = open(tmpfile[i], O_RDONLY);
#  335|                           assert_se(tmpfds[i] >= 0);
#  336|                           assert_se(unlink(tmpfile[i]) == 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1767]
systemd-258/src/test/test-socket-util.c:368:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor
systemd-258/src/test/test-socket-util.c:305:1: enter_function: entry to ‘test_pass_many_fds_contents_read’
systemd-258/src/test/test-socket-util.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:317:13: call_function: inlined call to ‘safe_fork’ from ‘test_pass_many_fds_contents_read’
systemd-258/src/test/test-socket-util.c:318:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:320:12: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:320:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-socket-util.c:322:36: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:334:37: acquire_resource: opened here
systemd-258/src/test/test-socket-util.c:335:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:336:25: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:336:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:332:43: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:335:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:336:25: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:336:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:332:43: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:368:1: danger: leaks here; was opened at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
#  366|                   safe_close(fds[i]);
#  367|           }
#  368|-> }
#  369|   
#  370|   TEST(receive_nopassfd) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1768]
systemd-258/src/test/test-socket-util.c:368:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘tmpfds[0]’
systemd-258/src/test/test-socket-util.c:305:1: enter_function: entry to ‘test_pass_many_fds_contents_read’
systemd-258/src/test/test-socket-util.c:315:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:317:13: call_function: inlined call to ‘safe_fork’ from ‘test_pass_many_fds_contents_read’
systemd-258/src/test/test-socket-util.c:318:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:320:12: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:320:12: branch_true: following ‘true’ branch...
systemd-258/src/test/test-socket-util.c:322:36: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:333:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:334:37: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:334:37: acquire_resource: opened here
systemd-258/src/test/test-socket-util.c:335:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:336:25: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:336:25: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:332:43: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:332:36: branch_true: following ‘true’ branch (when ‘i != 3’)...
systemd-258/src/test/test-socket-util.c:333:25: branch_true: ...to here
systemd-258/src/test/test-socket-util.c:368:1: danger: ‘tmpfds[0]’ leaks here; was opened at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  366|                   safe_close(fds[i]);
#  367|           }
#  368|-> }
#  369|   
#  370|   TEST(receive_nopassfd) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1769]
systemd-258/src/test/test-socket-util.c:561:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘socket(1, 524289, 0)’
systemd-258/src/test/test-socket-util.c:540:1: enter_function: entry to ‘test_sockaddr_un_set_path’
systemd-258/src/test/test-socket-util.c:547:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:548:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:548:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:550:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:550:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:551:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:551:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:553:9: call_function: inlined call to ‘random_u64’ from ‘test_sockaddr_un_set_path’
systemd-258/src/test/test-socket-util.c:553:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:554:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:554:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:556:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:557:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:558:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:558:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:560:15: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:560:15: acquire_resource: socket created here
systemd-258/src/test/test-socket-util.c:561:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:562:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:562:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:563:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:563:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:565:14: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:568:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:569:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:569:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:570:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:570:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:572:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:573:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:575:15: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:576:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:577:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:577:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:579:9: branch_false: ...to here
systemd-258/src/test/test-socket-util.c:579:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-socket-util.c:545:39: call_function: inlined call to ‘closep’ from ‘test_sockaddr_un_set_path’
systemd-258/src/test/test-socket-util.c:545:29: call_function: inlined call to ‘closep’ from ‘test_sockaddr_un_set_path’
systemd-258/src/test/test-socket-util.c:561:9: danger: ‘socket(1, 524289, 0)’ leaks here
#  559|   
#  560|           fd1 = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0);
#  561|->         assert_se(fd1 >= 0);
#  562|           assert_se(bind(fd1, &sa.sa, sockaddr_len(&sa)) >= 0);
#  563|           assert_se(listen(fd1, 1) >= 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1770]
systemd-258/src/test/test-strip-tab-ansi.c:79:1: warning[-Wanalyzer-malloc-leak]: leak of ‘q’
systemd-258/src/test/test-strip-tab-ansi.c:15:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:16:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:16:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:17:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:18:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:19:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:21:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:22:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:22:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:23:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:24:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:25:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:27:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:28:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:28:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:29:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:30:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:32:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:33:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:33:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:34:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:34:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:35:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:37:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:38:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:38:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:39:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:39:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:40:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:42:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:43:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:43:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:44:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:44:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:45:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:47:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:48:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:48:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:49:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:49:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:50:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:52:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:53:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:53:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:54:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:54:9: acquire_memory: allocated here
systemd-258/src/test/test-strip-tab-ansi.c:54:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:55:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:56:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:57:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:58:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:59:13: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:64:12: branch_false: following ‘false’ branch (when ‘z’ is NULL)...
systemd-258/src/test/test-strip-tab-ansi.c:72:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:72:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:76:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:76:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:77:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:77:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strip-tab-ansi.c:78:9: branch_false: ...to here
systemd-258/src/test/test-strip-tab-ansi.c:79:1: danger: ‘q’ leaks here; was allocated at [(47)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/46)
#   77|           ASSERT_STREQ(p, "beforebetween1between2after");
#   78|           free(p);
#   79|-> }
#   80|   
#   81|   DEFINE_TEST_MAIN(LOG_INFO);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1771]
systemd-258/src/test/test-strv.c:799:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("first")’
systemd-258/src/test/test-strv.c:799:9: acquire_memory: allocated here
systemd-258/src/test/test-strv.c:799:9: danger: ‘strdup("first")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  797|           _cleanup_strv_free_ char **a = NULL;
#  798|   
#  799|->         assert_se(strv_insert(&a, 0, strdup("first")) == 0);
#  800|           ASSERT_STREQ(a[0], "first");
#  801|           assert_se(!a[1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1772]
systemd-258/src/test/test-strv.c:807:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("two")’
systemd-258/src/test/test-strv.c:799:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:800:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:800:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:801:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:801:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:803:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:803:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:804:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:804:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:805:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:805:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:807:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:807:9: acquire_memory: allocated here
systemd-258/src/test/test-strv.c:807:9: danger: ‘strdup("two")’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  805|           assert_se(!a[1]);
#  806|   
#  807|->         assert_se(strv_insert(&a, 1, strdup("two")) == 0);
#  808|           ASSERT_STREQ(a[0], "first");
#  809|           ASSERT_STREQ(a[1], "two");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1773]
systemd-258/src/test/test-strv.c:812:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("tri")’
systemd-258/src/test/test-strv.c:799:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:800:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:800:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:801:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:801:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:803:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:803:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:804:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:804:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:805:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:805:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:807:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:807:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:808:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:808:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:809:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:809:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:810:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:810:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:812:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:812:9: acquire_memory: allocated here
systemd-258/src/test/test-strv.c:812:9: danger: ‘strdup("tri")’ leaks here; was allocated at [(21)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/20)
#  810|           assert_se(!a[2]);
#  811|   
#  812|->         assert_se(strv_insert(&a, 4, strdup("tri")) == 0);
#  813|           ASSERT_STREQ(a[0], "first");
#  814|           ASSERT_STREQ(a[1], "two");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1774]
systemd-258/src/test/test-strv.c:818:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("duo")’
systemd-258/src/test/test-strv.c:799:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:800:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:800:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:801:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:801:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:803:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:803:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:804:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:804:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:805:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:805:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:807:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:807:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:808:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:808:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:809:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:809:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:810:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:810:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:812:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:812:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:813:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:813:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:814:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:814:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:815:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:815:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:816:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:816:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:818:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:818:9: acquire_memory: allocated here
systemd-258/src/test/test-strv.c:818:9: danger: ‘strdup("duo")’ leaks here; was allocated at [(31)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/30)
#  816|           assert_se(!a[3]);
#  817|   
#  818|->         assert_se(strv_insert(&a, 1, strdup("duo")) == 0);
#  819|           ASSERT_STREQ(a[0], "first");
#  820|           ASSERT_STREQ(a[1], "duo");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1775]
systemd-258/src/test/test-strv.c:838:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup("first2")’
systemd-258/src/test/test-strv.c:829:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:831:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:831:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:832:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:832:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:833:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:833:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:834:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:834:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:835:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:835:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:836:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:836:9: branch_false: following ‘false’ branch...
systemd-258/src/test/test-strv.c:838:9: branch_false: ...to here
systemd-258/src/test/test-strv.c:838:9: acquire_memory: allocated here
systemd-258/src/test/test-strv.c:838:9: danger: ‘strdup("first2")’ leaks here; was allocated at [(15)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/14)
#  836|           assert_se(!a[4]);
#  837|   
#  838|->         assert_se(strv_consume_prepend(&a, strdup("first2")) >= 0);
#  839|           ASSERT_STREQ(a[0], "first2");
#  840|           ASSERT_STREQ(a[1], "first");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1776]
systemd-258/src/timesync/timesyncd-server.c:106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/timesync/timesyncd-server.c:80:5: enter_function: entry to ‘server_name_new’
systemd-258/src/timesync/timesyncd-server.c:88:9: branch_false: following ‘false’ branch...
systemd-258/src/timesync/timesyncd-server.c:89:9: branch_false: ...to here
systemd-258/src/timesync/timesyncd-server.c:89:9: branch_false: following ‘false’ branch...
systemd-258/src/timesync/timesyncd-server.c:91:13: call_function: inlined call to ‘malloc_multiply’ from ‘server_name_new’
systemd-258/src/timesync/timesyncd-server.c:92:12: branch_false: following ‘false’ branch...
systemd-258/src/timesync/timesyncd-server.c:98:27: branch_false: ...to here
systemd-258/src/timesync/timesyncd-server.c:98:27: acquire_memory: allocated here
systemd-258/src/timesync/timesyncd-server.c:101:12: branch_false: following ‘false’ branch...
systemd-258/src/timesync/timesyncd-server.c:106:9: branch_false: ...to here
systemd-258/src/timesync/timesyncd-server.c:106:9: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  104|           }
#  105|   
#  106|->         switch (type) {
#  107|           case SERVER_SYSTEM:
#  108|                   LIST_APPEND(names, m->system_servers, n);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1777]
systemd-258/src/timesync/timesyncd-server.c:106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(48)’
systemd-258/src/timesync/timesyncd-server.c:80:5: enter_function: entry to ‘server_name_new’
systemd-258/src/timesync/timesyncd-server.c:88:9: branch_false: following ‘false’ branch...
systemd-258/src/timesync/timesyncd-server.c:89:9: branch_false: ...to here
systemd-258/src/timesync/timesyncd-server.c:89:9: branch_false: following ‘false’ branch...
systemd-258/src/timesync/timesyncd-server.c:91:13: call_function: inlined call to ‘malloc_multiply’ from ‘server_name_new’
systemd-258/src/timesync/timesyncd-server.c:92:12: branch_false: following ‘false’ branch...
systemd-258/src/timesync/timesyncd-server.c:98:27: branch_false: ...to here
systemd-258/src/timesync/timesyncd-server.c:101:12: branch_false: following ‘false’ branch...
systemd-258/src/timesync/timesyncd-server.c:106:9: branch_false: ...to here
systemd-258/src/timesync/timesyncd-server.c:106:9: danger: ‘malloc(48)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  104|           }
#  105|   
#  106|->         switch (type) {
#  107|           case SERVER_SYSTEM:
#  108|                   LIST_APPEND(names, m->system_servers, n);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1778]
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:299:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘wall_tty_block()’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:352:12: enter_function: entry to ‘process_and_watch_password_files’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:366:24: call_function: calling ‘wall_tty_block’ from ‘process_and_watch_password_files’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:366:24: return_function: returning to ‘process_and_watch_password_files’ from ‘wall_tty_block’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:360:38: call_function: inlined call to ‘closep’ from ‘process_and_watch_password_files’
systemd-258/src/tty-ask-password-agent/tty-ask-password-agent.c:299:13: danger: ‘wall_tty_block()’ leaks here; was opened at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  297|                   return log_error_errno(r, "Failed to get controlling TTY: %m");
#  298|   
#  299|->         if (asprintf(&p, "/run/systemd/ask-password-block/%u:%u", major(devnr), minor(devnr)) < 0)
#  300|                   return log_oom();
#  301|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1779]
systemd-258/src/udev/cdrom_id/cdrom_id.c:756:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(arg_node, 526592)’
systemd-258/src/udev/cdrom_id/cdrom_id.c:743:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/cdrom_id/cdrom_id.c:744:9: branch_false: ...to here
systemd-258/src/udev/cdrom_id/cdrom_id.c:744:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/cdrom_id/cdrom_id.c:747:22: acquire_resource: opened here
systemd-258/src/udev/cdrom_id/cdrom_id.c:756:9: branch_true: following ‘true’ branch...
systemd-258/src/udev/cdrom_id/cdrom_id.c:756:9: branch_true: ...to here
systemd-258/src/udev/cdrom_id/cdrom_id.c:756:9: danger: ‘open(arg_node, 526592)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  754|           }
#  755|   
#  756|->         log_debug("probing: '%s'", arg_node);
#  757|           c->fd = fd;
#  758|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1780]
systemd-258/src/udev/iocost/iocost.c:264:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘selected_solution’
systemd-258/src/udev/iocost/iocost.c:240:12: enter_function: entry to ‘query_solutions_for_path’
systemd-258/src/udev/iocost/iocost.c:247:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/iocost/iocost.c:250:13: branch_false: ...to here
systemd-258/src/udev/iocost/iocost.c:251:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/iocost/iocost.c:255:12: branch_false: ...to here
systemd-258/src/udev/iocost/iocost.c:255:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/iocost/iocost.c:258:13: branch_false: ...to here
systemd-258/src/udev/iocost/iocost.c:258:13: call_function: calling ‘get_known_solutions’ from ‘query_solutions_for_path’
systemd-258/src/udev/iocost/iocost.c:258:13: return_function: returning to ‘query_solutions_for_path’ from ‘get_known_solutions’
systemd-258/src/udev/iocost/iocost.c:259:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/iocost/iocost.c:261:12: branch_false: ...to here
systemd-258/src/udev/iocost/iocost.c:261:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/iocost/iocost.c:264:9: branch_false: ...to here
systemd-258/src/udev/iocost/iocost.c:264:9: branch_true: following ‘true’ branch...
systemd-258/src/udev/iocost/iocost.c:264:9: branch_true: ...to here
systemd-258/src/udev/iocost/iocost.c:264:9: danger: use of uninitialized value ‘selected_solution’ here
#  262|                   return r;
#  263|   
#  264|->         log_info("Known solutions for %s model name: \"%s\"\n"
#  265|                    "Preferred solution: %s\n"
#  266|                    "Solution that would be applied: %s",

Error: CPPCHECK_WARNING (CWE-401): [#def1781]
systemd-258/src/udev/mtd_probe/probe_smartmedia.c:48: error[memleak]: Memory leak: cis_buffer
#   46|   
#   47|           if (info->type != MTD_NANDFLASH)
#   48|->                 return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
#   49|                                          "Not marked MTD_NANDFLASH.");
#   50|   

Error: CPPCHECK_WARNING (CWE-401): [#def1782]
systemd-258/src/udev/mtd_probe/probe_smartmedia.c:56: error[memleak]: Memory leak: cis_buffer
#   54|   
#   55|           if (!IN_SET(sector_size, SM_SECTOR_SIZE, SM_SMALL_PAGE))
#   56|->                 return log_debug_errno(SYNTHETIC_ERRNO(EINVAL),
#   57|                                          "Unexpected sector size: %i", sector_size);
#   58|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1783]
systemd-258/src/udev/net/link-config.c:64:9: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
systemd-258/src/udev/net/link-config.c:229:5: enter_function: entry to ‘link_load_one’
systemd-258/src/udev/net/link-config.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:237:9: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:237:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:239:13: call_function: inlined call to ‘null_or_empty_path’ from ‘link_load_one’
systemd-258/src/udev/net/link-config.c:240:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:242:12: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:242:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:247:16: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:248:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:251:18: call_function: inlined call to ‘malloc_multiply’ from ‘link_load_one’
systemd-258/src/udev/net/link-config.c:252:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:255:9: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:275:9: branch_true: following ‘true’ branch...
systemd-258/src/udev/net/link-config.c:276:17: branch_true: ...to here
systemd-258/src/udev/net/link-config.c:275:9: branch_true: following ‘true’ branch...
systemd-258/src/udev/net/link-config.c:276:17: branch_true: ...to here
systemd-258/src/udev/net/link-config.c:231:41: call_function: calling ‘hashmap_freep’ from ‘link_load_one’
systemd-258/src/udev/net/link-config.c:231:41: return_function: returning to ‘link_load_one’ from ‘hashmap_freep’
systemd-258/src/udev/net/link-config.c:230:50: call_function: inlined call to ‘link_config_freep’ from ‘link_load_one’
 branch_true: ...to here
systemd-258/src/udev/net/link-config.c:230:50: call_function: inlined call to ‘link_config_freep’ from ‘link_load_one’
#   62|   
#   63|           free(config->filename);
#   64|->         strv_free(config->dropins);
#   65|   
#   66|           net_match_clear(&config->match);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1784]
systemd-258/src/udev/net/link-config.c:66:9: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
systemd-258/src/udev/net/link-config.c:229:5: enter_function: entry to ‘link_load_one’
systemd-258/src/udev/net/link-config.c:236:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:237:9: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:237:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:239:13: call_function: inlined call to ‘null_or_empty_path’ from ‘link_load_one’
systemd-258/src/udev/net/link-config.c:240:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:242:12: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:242:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:247:16: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:248:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:251:18: call_function: inlined call to ‘malloc_multiply’ from ‘link_load_one’
systemd-258/src/udev/net/link-config.c:252:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:255:9: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:275:9: branch_true: following ‘true’ branch...
systemd-258/src/udev/net/link-config.c:276:17: branch_true: ...to here
systemd-258/src/udev/net/link-config.c:275:9: branch_true: following ‘true’ branch...
systemd-258/src/udev/net/link-config.c:276:17: branch_true: ...to here
systemd-258/src/udev/net/link-config.c:231:41: call_function: calling ‘hashmap_freep’ from ‘link_load_one’
systemd-258/src/udev/net/link-config.c:231:41: return_function: returning to ‘link_load_one’ from ‘hashmap_freep’
systemd-258/src/udev/net/link-config.c:230:50: call_function: inlined call to ‘link_config_freep’ from ‘link_load_one’
 branch_true: ...to here
systemd-258/src/udev/net/link-config.c:230:50: call_function: inlined call to ‘link_config_freep’ from ‘link_load_one’
#   64|           strv_free(config->dropins);
#   65|   
#   66|->         net_match_clear(&config->match);
#   67|           condition_free_list(config->conditions);
#   68|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1785]
systemd-258/src/udev/net/link-config.c:374:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*link.event’
systemd-258/src/udev/net/link-config.c:379:5: enter_function: entry to ‘link_new’
systemd-258/src/udev/net/link-config.c:380:26: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:384:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:386:9: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:386:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:388:16: call_function: inlined call to ‘malloc_multiply’ from ‘link_new’
systemd-258/src/udev/net/link-config.c:389:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/net/link-config.c:393:26: branch_false: ...to here
systemd-258/src/udev/net/link-config.c:381:37: call_function: inlined call to ‘link_freep’ from ‘link_new’
#  372|                   return NULL;
#  373|   
#  374|->         udev_event_unref(link->event);
#  375|           free(link->kind);
#  376|           return mfree(link);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1786]
systemd-258/src/udev/scsi_id/scsi_serial.c:144:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  142|   
#  143|   static int sg_err_category4(struct sg_io_v4 *hp) {
#  144|->         return sg_err_category_new(hp->device_status, 0,
#  145|                                      hp->transport_status, hp->driver_status,
#  146|                                      (unsigned char *)(uintptr_t)hp->response,

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1787]
systemd-258/src/udev/scsi_id/scsi_serial.c:145:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  143|   static int sg_err_category4(struct sg_io_v4 *hp) {
#  144|           return sg_err_category_new(hp->device_status, 0,
#  145|->                                    hp->transport_status, hp->driver_status,
#  146|                                      (unsigned char *)(uintptr_t)hp->response,
#  147|                                      hp->response_len);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1788]
systemd-258/src/udev/scsi_id/scsi_serial.c:145:58: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  143|   static int sg_err_category4(struct sg_io_v4 *hp) {
#  144|           return sg_err_category_new(hp->device_status, 0,
#  145|->                                    hp->transport_status, hp->driver_status,
#  146|                                      (unsigned char *)(uintptr_t)hp->response,
#  147|                                      hp->response_len);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1789]
systemd-258/src/udev/scsi_id/scsi_serial.c:147:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  145|                                      hp->transport_status, hp->driver_status,
#  146|                                      (unsigned char *)(uintptr_t)hp->response,
#  147|->                                    hp->response_len);
#  148|   }
#  149|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1790]
systemd-258/src/udev/scsi_id/scsi_serial.c:248:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  246|   
#  247|   static int scsi_dump_v4(struct scsi_id_device *dev_scsi, struct sg_io_v4 *io) {
#  248|->         if (!io->device_status && !io->transport_status &&
#  249|               !io->driver_status)
#  250|                   /*

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1791]
systemd-258/src/udev/scsi_id/scsi_serial.c:248:36: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  246|   
#  247|   static int scsi_dump_v4(struct scsi_id_device *dev_scsi, struct sg_io_v4 *io) {
#  248|->         if (!io->device_status && !io->transport_status &&
#  249|               !io->driver_status)
#  250|                   /*

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1792]
systemd-258/src/udev/scsi_id/scsi_serial.c:249:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  247|   static int scsi_dump_v4(struct scsi_id_device *dev_scsi, struct sg_io_v4 *io) {
#  248|           if (!io->device_status && !io->transport_status &&
#  249|->             !io->driver_status)
#  250|                   /*
#  251|                    * Impossible, should not be called.

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1793]
systemd-258/src/udev/scsi_id/scsi_serial.c:257:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  255|                                          __func__);
#  256|   
#  257|->         log_debug("%s: sg_io failed status 0x%x 0x%x 0x%x",
#  258|                     dev_scsi->kernel, io->driver_status, io->transport_status, io->device_status);
#  259|           if (io->device_status == SCSI_CHECK_CONDITION)

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1794]
systemd-258/src/udev/scsi_id/scsi_serial.c:259:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  257|           log_debug("%s: sg_io failed status 0x%x 0x%x 0x%x",
#  258|                     dev_scsi->kernel, io->driver_status, io->transport_status, io->device_status);
#  259|->         if (io->device_status == SCSI_CHECK_CONDITION)
#  260|                   return scsi_dump_sense(dev_scsi, (unsigned char *)(uintptr_t)io->response,
#  261|                                          io->response_len);

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1795]
systemd-258/src/udev/scsi_id/scsi_serial.c:261:40: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
systemd-258/src/udev/scsi_id/scsi_serial.c:778:5: enter_function: entry to ‘scsi_get_serial’
systemd-258/src/udev/scsi_id/scsi_serial.c:787:24: branch_true: following ‘true’ branch (when ‘cnt != 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:788:22: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:794:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_false: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:797:12: branch_true: following ‘true’ branch (when ‘page_code == 128’)...
systemd-258/src/udev/scsi_id/scsi_serial.c:798:76: branch_true: ...to here
systemd-258/src/udev/scsi_id/scsi_serial.c:798:21: call_function: calling ‘do_scsi_page80_inquiry’ from ‘scsi_get_serial’
#  259|           if (io->device_status == SCSI_CHECK_CONDITION)
#  260|                   return scsi_dump_sense(dev_scsi, (unsigned char *)(uintptr_t)io->response,
#  261|->                                        io->response_len);
#  262|           else
#  263|                   return -1;

Error: CPPCHECK_WARNING (CWE-768): [#def1796]
systemd-258/src/udev/udev-builtin-blkid.c:276: error[unknownEvaluationOrder]: Expression 'type,((const union sd_id128){.bytes={0xc1,0x2a,0x73,0x28,0xf8,0x1f,0x11,0xd2,0xba,0x4b,0x00,0xa0,0xc9,0x3e,0xc9,0x3b}}),((const union sd_id128){.bytes={0xbc,0x13,0xc2,0xff,0x59,0xe6,0x42,0x62,0xa3,0x52,0xb2,0x75,0xfd,0x6f,0x71,0x72}})' depends on order of evaluation of side effects
#  274|                           label = blkid_partition_get_name(pp); /* returns NULL if empty */
#  275|   
#  276|->                         if (need_esp_or_xbootldr && sd_id128_in_set(type, SD_GPT_ESP, SD_GPT_XBOOTLDR)) {
#  277|   
#  278|                                   /* We found an ESP or XBOOTLDR, let's see if it matches the ESP/XBOOTLDR we booted from. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1797]
systemd-258/src/udev/udev-builtin-net_id.c:727:1: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
systemd-258/src/udev/udev-builtin-net_id.c:684:12: enter_function: entry to ‘names_vio’
systemd-258/src/udev/udev-builtin-net_id.c:685:26: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:690:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:695:38: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:695:13: call_function: calling ‘get_matching_parent’ from ‘names_vio’
systemd-258/src/udev/udev-builtin-net_id.c:695:13: return_function: returning to ‘names_vio’ from ‘get_matching_parent’
systemd-258/src/udev/udev-builtin-net_id.c:695:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:698:9: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:698:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:704:13: call_function: calling ‘get_first_syspath_component’ from ‘names_vio’
systemd-258/src/udev/udev-builtin-net_id.c:704:13: return_function: returning to ‘names_vio’ from ‘get_first_syspath_component’
systemd-258/src/udev/udev-builtin-net_id.c:705:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:708:12: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:708:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:712:14: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:712:14: call_function: calling ‘in_charset’ from ‘names_vio’
systemd-258/src/udev/udev-builtin-net_id.c:712:14: return_function: returning to ‘names_vio’ from ‘in_charset’
systemd-258/src/udev/udev-builtin-net_id.c:712:12: branch_true: following ‘true’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:717:28: branch_true: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:718:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:721:14: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:722:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:724:9: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:724:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:727:1: danger: ‘s’ leaks here; was allocated at [(33)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/32)
#  725|                            slotid, glyph(GLYPH_ARROW_RIGHT), str + strlen(prefix));
#  726|           return 0;
#  727|-> }
#  728|   
#  729|   static int names_platform(UdevEvent *event, const char *prefix) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1798]
systemd-258/src/udev/udev-builtin-net_id.c:789:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
systemd-258/src/udev/udev-builtin-net_id.c:729:12: enter_function: entry to ‘names_platform’
systemd-258/src/udev/udev-builtin-net_id.c:730:26: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:737:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:742:38: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:742:13: call_function: calling ‘get_matching_parent’ from ‘names_platform’
systemd-258/src/udev/udev-builtin-net_id.c:742:13: return_function: returning to ‘names_platform’ from ‘get_matching_parent’
systemd-258/src/udev/udev-builtin-net_id.c:742:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:745:9: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:745:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:747:13: call_function: calling ‘get_first_syspath_component’ from ‘names_platform’
systemd-258/src/udev/udev-builtin-net_id.c:747:13: return_function: returning to ‘names_platform’ from ‘get_first_syspath_component’
systemd-258/src/udev/udev-builtin-net_id.c:748:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-builtin-net_id.c:754:12: branch_false: ...to here
systemd-258/src/udev/udev-builtin-net_id.c:789:1: danger: ‘p’ leaks here; was allocated at [(33)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/32)
#  787|                            vendor, model, instance, glyph(GLYPH_ARROW_RIGHT), str + strlen(prefix));
#  788|           return 0;
#  789|-> }
#  790|   
#  791|   static int names_devicetree(UdevEvent *event, const char *prefix) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1799]
systemd-258/src/udev/udev-ctrl.c:74:17: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(192)’
systemd-258/src/udev/udev-ctrl.c:44:5: enter_function: entry to ‘udev_ctrl_new_from_fd’
systemd-258/src/udev/udev-ctrl.c:49:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:51:12: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:66:17: call_function: inlined call to ‘malloc_multiply’ from ‘udev_ctrl_new_from_fd’
systemd-258/src/udev/udev-ctrl.c:67:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:72:25: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:74:17: danger: ‘malloc(192)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   72|                   .sock = fd >= 0 ? fd : TAKE_FD(sock),
#   73|                   .sock_connect = -EBADF,
#   74|->                 .bound = fd >= 0,
#   75|           };
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1800]
systemd-258/src/udev/udev-ctrl.c:98:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*uctrl.sock’
systemd-258/src/udev/udev-ctrl.c:89:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:91:13: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:91:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:94:35: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:95:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:98:13: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:98:12: danger: ‘*uctrl.sock’ leaks here
#   96|                   return log_error_errno(errno, "Failed to bind udev control socket: %m");
#   97|   
#   98|->         if (listen(uctrl->sock, 0) < 0)
#   99|                   return log_error_errno(errno, "Failed to listen udev control socket: %m");
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1801]
systemd-258/src/udev/udev-ctrl.c:101:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘*uctrl.sock’
systemd-258/src/udev/udev-ctrl.c:89:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:91:13: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:91:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:94:35: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:95:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:98:13: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:98:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-ctrl.c:101:9: branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:101:9: danger: ‘*uctrl.sock’ leaks here
#   99|                   return log_error_errno(errno, "Failed to listen udev control socket: %m");
#  100|   
#  101|->         uctrl->bound = true;
#  102|           return 0;
#  103|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def1802]
systemd-258/src/udev/udev-ctrl.c:153:16: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘uctrl’
systemd-258/src/udev/udev-ctrl.c:150:13: enter_function: entry to ‘udev_ctrl_disconnect_and_listen_again’
systemd-258/src/udev/udev-ctrl.c:151:9: call_function: inlined call to ‘udev_ctrl_disconnect’ from ‘udev_ctrl_disconnect_and_listen_again’
 branch_false: ...to here
systemd-258/src/udev/udev-ctrl.c:152:9: call_function: calling ‘udev_ctrl_unref’ from ‘udev_ctrl_disconnect_and_listen_again’
systemd-258/src/udev/udev-ctrl.c:152:9: return_function: returning to ‘udev_ctrl_disconnect_and_listen_again’ from ‘udev_ctrl_unref’
systemd-258/src/udev/udev-ctrl.c:153:16: danger: use after ‘free’ of ‘uctrl’; freed at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
#  151|           udev_ctrl_disconnect(uctrl);
#  152|           udev_ctrl_unref(uctrl);
#  153|->         (void) sd_event_source_set_enabled(uctrl->event_source, SD_EVENT_ON);
#  154|           /* We don't return NULL here because uctrl is not freed */
#  155|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1803]
systemd-258/src/udev/udev-event.c:38:34: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
systemd-258/src/udev/udev-event.c:25:12: enter_function: entry to ‘udev_event_new’
systemd-258/src/udev/udev-event.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-event.c:31:17: call_function: inlined call to ‘malloc_multiply’ from ‘udev_event_new’
systemd-258/src/udev/udev-event.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-event.c:38:25: branch_false: ...to here
systemd-258/src/udev/udev-event.c:38:25: branch_true: following ‘true’ branch (when ‘worker’ is non-NULL)...
systemd-258/src/udev/udev-event.c:38:34: branch_true: ...to here
systemd-258/src/udev/udev-event.c:38:34: danger: ‘malloc(160)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   36|                   .n_ref = 1,
#   37|                   .worker = worker,
#   38|->                 .rtnl = worker ? sd_netlink_ref(worker->rtnl) : NULL,
#   39|                   .dev = sd_device_ref(dev),
#   40|                   .birth_usec = now(CLOCK_MONOTONIC),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1804]
systemd-258/src/udev/udev-event.c:39:24: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
systemd-258/src/udev/udev-event.c:25:12: enter_function: entry to ‘udev_event_new’
systemd-258/src/udev/udev-event.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-event.c:31:17: call_function: inlined call to ‘malloc_multiply’ from ‘udev_event_new’
systemd-258/src/udev/udev-event.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-event.c:38:25: branch_false: ...to here
systemd-258/src/udev/udev-event.c:38:25: branch_false: following ‘false’ branch (when ‘worker’ is NULL)...
systemd-258/src/udev/udev-event.c:39:24: branch_false: ...to here
systemd-258/src/udev/udev-event.c:39:24: danger: ‘malloc(160)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   37|                   .worker = worker,
#   38|                   .rtnl = worker ? sd_netlink_ref(worker->rtnl) : NULL,
#   39|->                 .dev = sd_device_ref(dev),
#   40|                   .birth_usec = now(CLOCK_MONOTONIC),
#   41|                   .uid = UID_INVALID,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1805]
systemd-258/src/udev/udev-event.c:40:31: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(160)’
systemd-258/src/udev/udev-event.c:25:12: enter_function: entry to ‘udev_event_new’
systemd-258/src/udev/udev-event.c:29:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-event.c:31:17: call_function: inlined call to ‘malloc_multiply’ from ‘udev_event_new’
systemd-258/src/udev/udev-event.c:32:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-event.c:38:25: branch_false: ...to here
systemd-258/src/udev/udev-event.c:38:25: branch_false: following ‘false’ branch (when ‘worker’ is NULL)...
systemd-258/src/udev/udev-event.c:39:24: branch_false: ...to here
systemd-258/src/udev/udev-event.c:40:31: danger: ‘malloc(160)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   38|                   .rtnl = worker ? sd_netlink_ref(worker->rtnl) : NULL,
#   39|                   .dev = sd_device_ref(dev),
#   40|->                 .birth_usec = now(CLOCK_MONOTONIC),
#   41|                   .uid = UID_INVALID,
#   42|                   .gid = GID_INVALID,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1806]
systemd-258/src/udev/udev-format.c:244:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
systemd-258/src/udev/udev-format.c:157:16: enter_function: entry to ‘udev_event_subst_format’
systemd-258/src/udev/udev-format.c:165:35: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:224:20: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:227:22: call_function: inlined call to ‘isempty’ from ‘udev_event_subst_format’
systemd-258/src/udev/udev-format.c:228:29: call_function: calling ‘safe_atou_optional_plus’ from ‘udev_event_subst_format’
systemd-258/src/udev/udev-format.c:228:29: return_function: returning to ‘udev_event_subst_format’ from ‘safe_atou_optional_plus’
systemd-258/src/udev/udev-format.c:229:28: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:232:25: branch_false: ...to here
systemd-258/src/udev/udev-format.c:235:20: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:241:48: branch_false: ...to here
systemd-258/src/udev/udev-format.c:241:29: call_function: inlined call to ‘skip_leading_chars’ from ‘udev_event_subst_format’
 branch_true: ...to here
systemd-258/src/udev/udev-format.c:243:37: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/udev/udev-format.c:244:40: danger: dereference of NULL ‘p’
#  242|   
#  243|                           for (i = 1; i < index; i++) {
#  244|->                                 while (*p && !strchr(WHITESPACE, *p))
#  245|                                           p++;
#  246|                                   p = skip_leading_chars(p, NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1807]
systemd-258/src/udev/udev-format.c:260:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
systemd-258/src/udev/udev-format.c:157:16: enter_function: entry to ‘udev_event_subst_format’
systemd-258/src/udev/udev-format.c:165:35: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:224:20: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:227:22: call_function: inlined call to ‘isempty’ from ‘udev_event_subst_format’
systemd-258/src/udev/udev-format.c:228:29: call_function: calling ‘safe_atou_optional_plus’ from ‘udev_event_subst_format’
systemd-258/src/udev/udev-format.c:228:29: return_function: returning to ‘udev_event_subst_format’ from ‘safe_atou_optional_plus’
systemd-258/src/udev/udev-format.c:229:28: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:232:25: branch_false: ...to here
systemd-258/src/udev/udev-format.c:235:20: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:241:48: branch_false: ...to here
systemd-258/src/udev/udev-format.c:241:29: call_function: inlined call to ‘skip_leading_chars’ from ‘udev_event_subst_format’
 branch_true: ...to here
systemd-258/src/udev/udev-format.c:243:37: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:250:28: branch_false: ...to here
systemd-258/src/udev/udev-format.c:250:28: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-format.c:257:28: branch_false: ...to here
systemd-258/src/udev/udev-format.c:257:28: branch_false: following ‘false’ branch (when ‘has_plus == 0’)...
 branch_false: ...to here
systemd-258/src/udev/udev-format.c:260:40: danger: dereference of NULL ‘p’
#  258|                                   strpcpy_full(&s, l, start, &truncated);
#  259|                           else {
#  260|->                                 while (*p && !strchr(WHITESPACE, *p))
#  261|                                           p++;
#  262|                                   strnpcpy_full(&s, l, start, p - start, &truncated);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1808]
systemd-258/src/udev/udev-manager.c:147:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*event.manager’
systemd-258/src/udev/udev-manager.c:889:12: enter_function: entry to ‘event_queue_insert’
systemd-258/src/udev/udev-manager.c:895:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:896:9: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:896:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:899:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:900:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:903:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:904:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:907:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:908:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:911:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:912:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:915:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:916:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:919:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:920:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:923:47: call_function: inlined call to ‘malloc_multiply’ from ‘event_queue_insert’
systemd-258/src/udev/udev-manager.c:924:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:928:24: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:923:39: call_function: inlined call to ‘event_freep’ from ‘event_queue_insert’
#  145|                   return NULL;
#  146|   
#  147|->         if (event->manager) {
#  148|                   event_unset_whole_disk(event);
#  149|                   prioq_remove(event->manager->locked_events_by_time, event, &event->locked_event_prioq_index);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1809]
systemd-258/src/udev/udev-manager.c:881:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*event.whole_disk’
systemd-258/src/udev/udev-manager.c:1147:12: enter_function: entry to ‘on_worker_notify’
systemd-258/src/udev/udev-manager.c:1148:28: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:1151:9: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:1151:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:1153:39: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:1156:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:1158:12: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:1158:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:1162:26: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:1163:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:1168:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:1168:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:1190:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:1190:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:1210:47: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:1210:47: call_function: calling ‘worker_detach_event’ from ‘on_worker_notify’
systemd-258/src/udev/udev-manager.c:1210:47: return_function: returning to ‘on_worker_notify’ from ‘worker_detach_event’
systemd-258/src/udev/udev-manager.c:1212:12: branch_true: following ‘true’ branch...
systemd-258/src/udev/udev-manager.c:1214:47: branch_true: ...to here
systemd-258/src/udev/udev-manager.c:1214:21: call_function: calling ‘event_enter_locked’ from ‘on_worker_notify’
#  879|           event->whole_disk = TAKE_PTR(whole_disk_copy);
#  880|   
#  881|->         r = prioq_ensure_put(&manager->locked_events_by_time, locked_event_compare, event, &event->locked_event_prioq_index);
#  882|           if (r < 0)
#  883|                   return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1810]
systemd-258/src/udev/udev-manager.c:927:9: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(168)’
systemd-258/src/udev/udev-manager.c:889:12: enter_function: entry to ‘event_queue_insert’
systemd-258/src/udev/udev-manager.c:895:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:896:9: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:896:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:899:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:900:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:903:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:904:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:907:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:908:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:911:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:912:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:915:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:916:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:919:13: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:920:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:923:47: call_function: inlined call to ‘malloc_multiply’ from ‘event_queue_insert’
systemd-258/src/udev/udev-manager.c:924:12: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:928:24: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:940:9: branch_true: following ‘true’ branch (when ‘e’ is non-NULL)...
systemd-258/src/udev/udev-manager.c:940:9: branch_true: ...to here
systemd-258/src/udev/udev-manager.c:941:20: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-manager.c:945:20: branch_false: ...to here
systemd-258/src/udev/udev-manager.c:945:20: branch_true: following ‘true’ branch...
systemd-258/src/udev/udev-manager.c:946:32: branch_true: ...to here
systemd-258/src/udev/udev-manager.c:946:32: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udev-manager.c:923:39: call_function: inlined call to ‘event_freep’ from ‘event_queue_insert’
#  925|                   return -ENOMEM;
#  926|   
#  927|->         *event = (Event) {
#  928|                   .dev = sd_device_ref(dev),
#  929|                   .seqnum = seqnum,

Error: CPPCHECK_WARNING (CWE-457): [#def1811]
systemd-258/src/udev/udev-rules.c:3154: warning[uninitvar]: Uninitialized variable: r
# 3152|                                   break;
# 3153|                   }
# 3154|->                 if (r > 0) {
# 3155|                           if (event->trace) {
# 3156|                                   const char *s = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1812]
systemd-258/src/udev/udev-spawn.c:247:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result’
systemd-258/src/udev/udev-spawn.c:360:6: enter_function: entry to ‘udev_event_execute_run’
systemd-258/src/udev/udev-spawn.c:365:9: branch_false: following ‘false’ branch...
systemd-258/src/udev/udev-spawn.c:367:9: branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:367:9: branch_true: following ‘true’ branch...
systemd-258/src/udev/udev-spawn.c:368:50: branch_true: ...to here
systemd-258/src/udev/udev-spawn.c:392:25: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udev-spawn.c:394:29: call_function: calling ‘udev_event_spawn’ from ‘udev_event_execute_run’
#  245|               !STARTSWITH_SET(cmd, "ata_id", "cdrom_id", "dmi_memory_id", "fido_id", "mtd_probe", "scsi_id")) {
#  246|                   log_device_debug(event->dev, "Running in test mode, skipping execution of '%s'.", cmd);
#  247|->                 result[0] = '\0';
#  248|                   if (ret_truncated)
#  249|                           *ret_truncated = false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1813]
systemd-258/src/udev/udevadm-monitor.c:128:17: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:128:17: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  126|   
#  127|           while ((c = getopt_long(argc, argv, "pekus:t:Vh", options, NULL)) >= 0)
#  128|->                 switch (c) {
#  129|                   case 'p':
#  130|                   case 'e':

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1814]
systemd-258/src/udev/udevadm-monitor.c:153:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:153:28: danger: ‘<unknown>’ leaks here; was allocated at [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
#  151|                                   subsystem = strdup(optarg);
#  152|   
#  153|->                         if (!subsystem)
#  154|                                   return log_oom();
#  155|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1815]
systemd-258/src/udev/udevadm-monitor.c:165:29: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:165:29: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
#  163|                   }
#  164|                   case 't':
#  165|->                         r = set_put_strdup(&arg_tag_filter, optarg);
#  166|                           if (r < 0)
#  167|                                   return log_oom();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1816]
systemd-258/src/udev/udevadm-monitor.c:167:40: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:167:40: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/5)
#  165|                           r = set_put_strdup(&arg_tag_filter, optarg);
#  166|                           if (r < 0)
#  167|->                                 return log_oom();
#  168|                           break;
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1817]
systemd-258/src/udev/udevadm-monitor.c:171:32: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:171:32: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
#  169|   
#  170|                   case 'V':
#  171|->                         return print_version();
#  172|                   case 'h':
#  173|                           return help();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1818]
systemd-258/src/udev/udevadm-monitor.c:177:25: warning[-Wanalyzer-malloc-leak]: leak of ‘subsystem’
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:144:28: branch_false: following ‘false’ branch (when ‘slash’ is NULL)...
systemd-258/src/udev/udevadm-monitor.c:151:45: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:151:45: acquire_memory: allocated here
systemd-258/src/udev/udevadm-monitor.c:153:28: branch_false: following ‘false’ branch (when ‘subsystem’ is non-NULL)...
systemd-258/src/udev/udevadm-monitor.c:156:29: branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:157:28: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/udev/udevadm-monitor.c:127:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/udev/udevadm-monitor.c:128:17: branch_true: ...to here
systemd-258/src/udev/udevadm-monitor.c:177:25: danger: ‘subsystem’ leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
#  175|                           return -EINVAL;
#  176|                   default:
#  177|->                         assert_not_reached();
#  178|                   }
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1819]
systemd-258/src/userdb/userdbd-manager.c:170:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(*m.listen_fd, 3)’
systemd-258/src/userdb/userdbd-manager.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbd-manager.c:150:26: branch_false: ...to here
systemd-258/src/userdb/userdbd-manager.c:158:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbd-manager.c:160:12: branch_false: ...to here
systemd-258/src/userdb/userdbd-manager.c:160:12: branch_true: following ‘true’ branch...
systemd-258/src/userdb/userdbd-manager.c:163:21: branch_true: ...to here
systemd-258/src/userdb/userdbd-manager.c:163:20: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userdbd-manager.c:170:29: branch_false: ...to here
systemd-258/src/userdb/userdbd-manager.c:170:29: acquire_resource: opened here
systemd-258/src/userdb/userdbd-manager.c:170:28: danger: ‘dup2(*m.listen_fd, 3)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  168|                           }
#  169|                   } else {
#  170|->                         if (dup2(m->listen_fd, 3) < 0) { /* dup2() creates with O_CLOEXEC off */
#  171|                                   log_error_errno(errno, "Failed to move listen fd to 3: %m");
#  172|                                   _exit(EXIT_FAILURE);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1820]
systemd-258/src/userdb/userwork.c:176:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:142:12: enter_function: entry to ‘vl_method_get_user_record’
systemd-258/src/userdb/userwork.c:164:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:166:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:167:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:170:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:170:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_user_record’
systemd-258/src/userdb/userwork.c:170:13: return_function: returning to ‘vl_method_get_user_record’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:171:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:175:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:175:12: branch_true: following ‘true’ branch...
systemd-258/src/userdb/userwork.c:176:21: branch_true: ...to here
systemd-258/src/userdb/userwork.c:176:21: danger: use of uninitialized value ‘userdb_flags’ here
#  174|   
#  175|           if (uid_is_valid(p.uid))
#  176|->                 r = userdb_by_uid(p.uid, &p.match, userdb_flags, &hr);
#  177|           else if (p.name)
#  178|                   r = userdb_by_name(p.name, &p.match, userdb_flags, &hr);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1821]
systemd-258/src/userdb/userwork.c:178:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:142:12: enter_function: entry to ‘vl_method_get_user_record’
systemd-258/src/userdb/userwork.c:164:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:166:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:167:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:170:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:170:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_user_record’
systemd-258/src/userdb/userwork.c:170:13: return_function: returning to ‘vl_method_get_user_record’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:171:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:175:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:175:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:177:18: branch_false: ...to here
systemd-258/src/userdb/userwork.c:177:17: branch_true: following ‘true’ branch...
systemd-258/src/userdb/userwork.c:178:21: branch_true: ...to here
systemd-258/src/userdb/userwork.c:178:21: danger: use of uninitialized value ‘userdb_flags’ here
#  176|                   r = userdb_by_uid(p.uid, &p.match, userdb_flags, &hr);
#  177|           else if (p.name)
#  178|->                 r = userdb_by_name(p.name, &p.match, userdb_flags, &hr);
#  179|           else {
#  180|                   _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1822]
systemd-258/src/userdb/userwork.c:183:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:142:12: enter_function: entry to ‘vl_method_get_user_record’
systemd-258/src/userdb/userwork.c:164:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:166:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:167:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:170:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:170:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_user_record’
systemd-258/src/userdb/userwork.c:170:13: return_function: returning to ‘vl_method_get_user_record’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:171:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:175:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:175:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:177:18: branch_false: ...to here
systemd-258/src/userdb/userwork.c:177:17: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:180:66: branch_false: ...to here
systemd-258/src/userdb/userwork.c:183:21: danger: use of uninitialized value ‘userdb_flags’ here
#  181|                   _cleanup_(sd_json_variant_unrefp) sd_json_variant *last = NULL;
#  182|   
#  183|->                 r = userdb_all(&p.match, userdb_flags, &iterator);
#  184|                   if (IN_SET(r, -ESRCH, -ENOLINK))
#  185|                           /* We turn off Varlink lookups in various cases (e.g. in case we only enable DropIn

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1823]
systemd-258/src/userdb/userwork.c:319:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:286:12: enter_function: entry to ‘vl_method_get_group_record’
systemd-258/src/userdb/userwork.c:308:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:310:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:311:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:314:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:314:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_group_record’
systemd-258/src/userdb/userwork.c:314:13: return_function: returning to ‘vl_method_get_group_record’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:315:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:318:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:318:12: branch_true: following ‘true’ branch...
systemd-258/src/userdb/userwork.c:319:21: branch_true: ...to here
systemd-258/src/userdb/userwork.c:319:21: danger: use of uninitialized value ‘userdb_flags’ here
#  317|   
#  318|           if (gid_is_valid(p.gid))
#  319|->                 r = groupdb_by_gid(p.gid, &p.match, userdb_flags, &g);
#  320|           else if (p.name)
#  321|                   r = groupdb_by_name(p.name, &p.match, userdb_flags, &g);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1824]
systemd-258/src/userdb/userwork.c:321:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:286:12: enter_function: entry to ‘vl_method_get_group_record’
systemd-258/src/userdb/userwork.c:308:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:310:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:311:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:314:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:314:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_group_record’
systemd-258/src/userdb/userwork.c:314:13: return_function: returning to ‘vl_method_get_group_record’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:315:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:318:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:320:18: branch_false: ...to here
systemd-258/src/userdb/userwork.c:320:17: branch_true: following ‘true’ branch...
systemd-258/src/userdb/userwork.c:321:21: branch_true: ...to here
systemd-258/src/userdb/userwork.c:321:21: danger: use of uninitialized value ‘userdb_flags’ here
#  319|                   r = groupdb_by_gid(p.gid, &p.match, userdb_flags, &g);
#  320|           else if (p.name)
#  321|->                 r = groupdb_by_name(p.name, &p.match, userdb_flags, &g);
#  322|           else {
#  323|                   _cleanup_(userdb_iterator_freep) UserDBIterator *iterator = NULL;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1825]
systemd-258/src/userdb/userwork.c:326:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:286:12: enter_function: entry to ‘vl_method_get_group_record’
systemd-258/src/userdb/userwork.c:308:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:310:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:311:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:314:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:314:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_group_record’
systemd-258/src/userdb/userwork.c:314:13: return_function: returning to ‘vl_method_get_group_record’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:315:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:318:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:318:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:320:18: branch_false: ...to here
systemd-258/src/userdb/userwork.c:320:17: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:323:66: branch_false: ...to here
systemd-258/src/userdb/userwork.c:326:21: danger: use of uninitialized value ‘userdb_flags’ here
#  324|                   _cleanup_(sd_json_variant_unrefp) sd_json_variant *last = NULL;
#  325|   
#  326|->                 r = groupdb_all(&p.match, userdb_flags, &iterator);
#  327|                   if (IN_SET(r, -ESRCH, -ENOLINK))
#  328|                           return sd_varlink_error(link, "io.systemd.UserDatabase.NoRecordFound", NULL);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1826]
systemd-258/src/userdb/userwork.c:410:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:385:12: enter_function: entry to ‘vl_method_get_memberships’
systemd-258/src/userdb/userwork.c:399:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:401:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:402:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:405:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:405:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_memberships’
systemd-258/src/userdb/userwork.c:405:13: return_function: returning to ‘vl_method_get_memberships’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:406:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:409:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:409:12: branch_true: following ‘true’ branch...
systemd-258/src/userdb/userwork.c:410:21: branch_true: ...to here
systemd-258/src/userdb/userwork.c:410:21: danger: use of uninitialized value ‘userdb_flags’ here
#  408|   
#  409|           if (p.group_name)
#  410|->                 r = membershipdb_by_group(p.group_name, userdb_flags, &iterator);
#  411|           else if (p.user_name)
#  412|                   r = membershipdb_by_user(p.user_name, userdb_flags, &iterator);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1827]
systemd-258/src/userdb/userwork.c:412:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:385:12: enter_function: entry to ‘vl_method_get_memberships’
systemd-258/src/userdb/userwork.c:399:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:401:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:402:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:405:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:405:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_memberships’
systemd-258/src/userdb/userwork.c:405:13: return_function: returning to ‘vl_method_get_memberships’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:406:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:409:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:409:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:411:18: branch_false: ...to here
systemd-258/src/userdb/userwork.c:411:17: branch_true: following ‘true’ branch...
systemd-258/src/userdb/userwork.c:412:21: branch_true: ...to here
systemd-258/src/userdb/userwork.c:412:21: danger: use of uninitialized value ‘userdb_flags’ here
#  410|                   r = membershipdb_by_group(p.group_name, userdb_flags, &iterator);
#  411|           else if (p.user_name)
#  412|->                 r = membershipdb_by_user(p.user_name, userdb_flags, &iterator);
#  413|           else
#  414|                   r = membershipdb_all(userdb_flags, &iterator);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def1828]
systemd-258/src/userdb/userwork.c:414:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘userdb_flags’
systemd-258/src/userdb/userwork.c:385:12: enter_function: entry to ‘vl_method_get_memberships’
systemd-258/src/userdb/userwork.c:399:9: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:401:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:402:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:405:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:405:13: call_function: calling ‘userdb_flags_from_service’ from ‘vl_method_get_memberships’
systemd-258/src/userdb/userwork.c:405:13: return_function: returning to ‘vl_method_get_memberships’ from ‘userdb_flags_from_service’
systemd-258/src/userdb/userwork.c:406:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:409:13: branch_false: ...to here
systemd-258/src/userdb/userwork.c:409:12: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:411:18: branch_false: ...to here
systemd-258/src/userdb/userwork.c:411:17: branch_false: following ‘false’ branch...
systemd-258/src/userdb/userwork.c:414:21: branch_false: ...to here
systemd-258/src/userdb/userwork.c:414:21: danger: use of uninitialized value ‘userdb_flags’ here
#  412|                   r = membershipdb_by_user(p.user_name, userdb_flags, &iterator);
#  413|           else
#  414|->                 r = membershipdb_all(userdb_flags, &iterator);
#  415|           if (IN_SET(r, -ESRCH, -ENOLINK))
#  416|                   return sd_varlink_error(link, "io.systemd.UserDatabase.NoRecordFound", NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1829]
systemd-258/src/varlinkctl/varlinkctl.c:153:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:153:17: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  151|           while ((c = getopt_long(argc, argv, "hjqE", options, NULL)) >= 0)
#  152|   
#  153|->                 switch (c) {
#  154|   
#  155|                   case 'h':

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1830]
systemd-258/src/varlinkctl/varlinkctl.c:159:32: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:159:32: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  157|   
#  158|                   case ARG_VERSION:
#  159|->                         return version();
#  160|   
#  161|                   case ARG_NO_PAGER:

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1831]
systemd-258/src/varlinkctl/varlinkctl.c:182:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:182:29: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  180|   
#  181|                   case ARG_JSON:
#  182|->                         r = parse_json_argument(optarg, &arg_json_format_flags);
#  183|                           if (r <= 0)
#  184|                                   return r;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1832]
systemd-258/src/varlinkctl/varlinkctl.c:197:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:197:29: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  195|   
#  196|                   case ARG_GRACEFUL:
#  197|->                         r = varlink_idl_qualified_symbol_name_is_valid(optarg);
#  198|                           if (r < 0)
#  199|                                   return log_error_errno(r, "Failed to validate Varlink error name '%s': %m", optarg);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1833]
systemd-258/src/varlinkctl/varlinkctl.c:199:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:199:40: branch_true: following ‘true’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:199:40: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:199:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  197|                           r = varlink_idl_qualified_symbol_name_is_valid(optarg);
#  198|                           if (r < 0)
#  199|->                                 return log_error_errno(r, "Failed to validate Varlink error name '%s': %m", optarg);
#  200|                           if (r == 0)
#  201|                                   return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Not a valid Varlink error name: %s", optarg);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1834]
systemd-258/src/varlinkctl/varlinkctl.c:201:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:198:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:200:28: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:201:40: branch_true: following ‘true’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:201:40: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:201:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  199|                                   return log_error_errno(r, "Failed to validate Varlink error name '%s': %m", optarg);
#  200|                           if (r == 0)
#  201|->                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Not a valid Varlink error name: %s", optarg);
#  202|   
#  203|                           if (strv_extend(&arg_graceful, optarg) < 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1835]
systemd-258/src/varlinkctl/varlinkctl.c:204:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:198:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:200:28: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:200:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:203:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:204:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  202|   
#  203|                           if (strv_extend(&arg_graceful, optarg) < 0)
#  204|->                                 return log_oom();
#  205|   
#  206|                           break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1836]
systemd-258/src/varlinkctl/varlinkctl.c:214:29: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:214:29: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  212|                           }
#  213|   
#  214|->                         r = parse_sec(optarg, &arg_timeout);
#  215|                           if (r < 0)
#  216|                                   return log_error_errno(r, "Failed to parse --timeout= parameter '%s': %m", optarg);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1837]
systemd-258/src/varlinkctl/varlinkctl.c:216:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:216:40: branch_true: following ‘true’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:216:40: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:216:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/8)
#  214|                           r = parse_sec(optarg, &arg_timeout);
#  215|                           if (r < 0)
#  216|->                                 return log_error_errno(r, "Failed to parse --timeout= parameter '%s': %m", optarg);
#  217|   
#  218|                           if (arg_timeout == 0)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1838]
systemd-258/src/varlinkctl/varlinkctl.c:219:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:215:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:218:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:219:40: branch_true: following ‘true’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:219:40: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:219:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
#  217|   
#  218|                           if (arg_timeout == 0)
#  219|->                                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Timeout cannot be zero.");
#  220|   
#  221|                           break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1839]
systemd-258/src/varlinkctl/varlinkctl.c:228:30: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:30: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
#  226|   
#  227|                   case ARG_PUSH_FD: {
#  228|->                         if (!GREEDY_REALLOC(arg_push_fds.fds, arg_push_fds.n_fds + 1))
#  229|                                   return log_oom();
#  230|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1840]
systemd-258/src/varlinkctl/varlinkctl.c:229:40: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:229:40: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
#  227|                   case ARG_PUSH_FD: {
#  228|                           if (!GREEDY_REALLOC(arg_push_fds.fds, arg_push_fds.n_fds + 1))
#  229|->                                 return log_oom();
#  230|   
#  231|                           _cleanup_close_ int add_fd = -EBADF;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1841]
systemd-258/src/varlinkctl/varlinkctl.c:259:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:259:25: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
#  257|   
#  258|                   default:
#  259|->                         assert_not_reached();
#  260|                   }
#  261|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1842]
systemd-258/src/varlinkctl/varlinkctl.c:266:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘add_fd’
systemd-258/src/varlinkctl/varlinkctl.c:148:9: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:149:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:151:16: branch_true: following ‘true’ branch (when ‘c >= 0’)...
systemd-258/src/varlinkctl/varlinkctl.c:153:17: branch_true: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:228:28: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:232:29: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:236:42: acquire_resource: opened here
systemd-258/src/varlinkctl/varlinkctl.c:237:36: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:251:25: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:263:12: branch_false: following ‘false’ branch...
systemd-258/src/varlinkctl/varlinkctl.c:266:9: branch_false: ...to here
systemd-258/src/varlinkctl/varlinkctl.c:266:9: danger: ‘add_fd’ leaks here; was opened at [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
#  264|                   arg_json_format_flags |= SD_JSON_FORMAT_SEQ|SD_JSON_FORMAT_FLUSH;
#  265|   
#  266|->         strv_sort_uniq(arg_graceful);
#  267|   
#  268|           return 1;

Error: CPPCHECK_WARNING (CWE-457): [#def1843]
systemd-258/src/vmspawn/vmspawn-util.c:186: error[uninitvar]: Uninitialized variable: e
#  184|                   _cleanup_free_ char *arch = NULL;
#  185|   
#  186|->                 r = sd_json_dispatch(e, table, flags, &arch);
#  187|                   if (r < 0)
#  188|                           return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1844]
systemd-258/src/vmspawn/vmspawn-util.c:278:13: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 48)’
systemd-258/src/vmspawn/vmspawn-util.c:246:12: enter_function: entry to ‘load_firmware_data’
systemd-258/src/vmspawn/vmspawn-util.c:249:9: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn-util.c:250:9: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn-util.c:250:9: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn-util.c:252:60: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn-util.c:260:12: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn-util.c:274:15: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn-util.c:274:15: acquire_memory: allocated here
systemd-258/src/vmspawn/vmspawn-util.c:275:12: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn-util.c:278:13: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn-util.c:273:54: call_function: inlined call to ‘firmware_data_freep’ from ‘load_firmware_data’
#  276|                   return -ENOMEM;
#  277|   
#  278|->         r = sd_json_dispatch(json, table, SD_JSON_ALLOW_EXTENSIONS, fwd);
#  279|           if (r < 0)
#  280|                   return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1845]
systemd-258/src/vmspawn/vmspawn.c:1402:1: warning[-Wanalyzer-malloc-leak]: leak of ‘virtiofsd’
systemd-258/src/vmspawn/vmspawn.c:1335:12: enter_function: entry to ‘start_virtiofsd’
systemd-258/src/vmspawn/vmspawn.c:1346:9: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn.c:1347:9: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn.c:1347:9: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn.c:1348:9: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn.c:1348:9: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn.c:1350:30: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn.c:1351:13: call_function: calling ‘find_virtiofsd’ from ‘start_virtiofsd’
systemd-258/src/vmspawn/vmspawn.c:1351:13: return_function: returning to ‘start_virtiofsd’ from ‘find_virtiofsd’
systemd-258/src/vmspawn/vmspawn.c:1352:12: branch_false: following ‘false’ branch...
systemd-258/src/vmspawn/vmspawn.c:1355:30: branch_false: ...to here
systemd-258/src/vmspawn/vmspawn.c:1357:12: branch_true: following ‘true’ branch...
systemd-258/src/vmspawn/vmspawn.c:1358:24: branch_true: ...to here
systemd-258/src/vmspawn/vmspawn.c:1402:1: danger: ‘virtiofsd’ leaks here; was allocated at [(20)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/19)
# 1400|   
# 1401|           return 0;
# 1402|-> }
# 1403|   
# 1404|   static int kernel_cmdline_maybe_append_root(void) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1846]
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:27:14: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:306:22: enter_function: entry to ‘xdg_autostart_service_parse_desktop’
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:310:19: acquire_memory: allocated here
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:311:12: branch_false: following ‘false’ branch...
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:314:25: branch_false: ...to here
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:315:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:307:69: call_function: inlined call to ‘xdg_autostart_service_freep’ from ‘xdg_autostart_service_parse_desktop’
#   25|                   return NULL;
#   26|   
#   27|->         free(s->name);
#   28|           free(s->path);
#   29|           free(s->description);

Error: CPPCHECK_WARNING (CWE-401): [#def1847]
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:316: error[memleak]: Memory leak: service
#  314|           service->path = strdup(path);
#  315|           if (!service->path)
#  316|->                 return NULL;
#  317|   
#  318|           const ConfigTableItem items[] = {

Error: CPPCHECK_WARNING (CWE-768): [#def1848]
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:413: error[unknownEvaluationOrder]: Expression 'typeof(exec_split[n++])*_a=&(exec_split[n++])' depends on order of evaluation of side effects
#  411|                                   return log_info_errno(r, "Exec binary '%s' does not exist: %m", c);
#  412|   
#  413|->                         free_and_replace(exec_split[n++], executable);
#  414|                           continue;
#  415|                   }

Error: CPPCHECK_WARNING (CWE-768): [#def1849]
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:462: error[unknownEvaluationOrder]: Expression 'typeof(exec_split[n++])*_a=&(exec_split[n++])' depends on order of evaluation of side effects
#  460|                           if (!tilde_expanded)
#  461|                                   return log_oom();
#  462|->                         free_and_replace(exec_split[n++], tilde_expanded);
#  463|                   } else
#  464|                           free_and_replace(exec_split[n++], percent);

Error: CPPCHECK_WARNING (CWE-768): [#def1850]
systemd-258/src/xdg-autostart-generator/xdg-autostart-service.c:464: error[unknownEvaluationOrder]: Expression 'typeof(exec_split[n++])*_a=&(exec_split[n++])' depends on order of evaluation of side effects
#  462|                           free_and_replace(exec_split[n++], tilde_expanded);
#  463|                   } else
#  464|->                         free_and_replace(exec_split[n++], percent);
#  465|           }
#  466|           for (; exec_split[n]; n++)

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-46.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namesystemd-258-1.fc43
store-results-to/tmp/tmpr5dtugm5/systemd-258-1.fc43.tar.xz
time-created2025-10-28 20:31:43
time-finished2025-10-28 20:48:44
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpr5dtugm5/systemd-258-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpr5dtugm5/systemd-258-1.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9