podman-5.7.1-1.fc44

List of Findings

Error: SHELLCHECK_WARNING (CWE-758): [#def1]
/etc/profile.d/podman-docker.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> # DOCKER_HOST initialization
#    2|   
#    3|   if [ -z "${DOCKER_HOST-}" ]; then

Error: COMPILER_WARNING: [#def2] [important]
podman-5.7.1/libpod/lock/shm/completed:1:16: error[error]: '__cgo__2' undeclared here (not in a function); did you mean '__cgo__1'?

Error: COMPILER_WARNING: [#def3] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:1:63: error[error]: invalid operands to binary * (have 'char * (*)(_GoString_)' and 'int')

Error: COMPILER_WARNING: [#def4] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:2:66: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def5] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:2:80: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def6] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:3:65: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def7] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:3:74: error[error]: invalid operands to binary * (have 'int64_t (*)(shm_struct_t *)' {{aka 'long int (*)(struct shm_struct *)'}} and 'int')

Error: COMPILER_WARNING: [#def8] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:4:65: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def9] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:4:71: error[error]: invalid operands to binary * (have 'int64_t (*)(shm_struct_t *)' {{aka 'long int (*)(struct shm_struct *)'}} and 'int')

Error: COMPILER_WARNING: [#def10] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:5:33: error[error]: enumerator value for '__cgo_undefined__3' is not an integer constant

Error: COMPILER_WARNING: [#def11] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:5:72: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def12] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:6:66: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def13] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:6:70: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *)' {{aka 'int (*)(struct shm_struct *)'}} and 'int')

Error: COMPILER_WARNING: [#def14] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:7:66: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def15] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:7:81: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *)' {{aka 'int (*)(struct shm_struct *)'}} and 'int')

Error: COMPILER_WARNING: [#def16] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:8:76: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def17] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:8:80: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def18] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:9:60: error[error]: invalid operands to binary * (have 'void (*)(void *)' and 'int')

Error: COMPILER_WARNING: [#def19] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:9:74: error[error]: invalid operands to binary * (have 'int64_t (*)(shm_struct_t *)' {{aka 'long int (*)(struct shm_struct *)'}} and 'int')

Error: COMPILER_WARNING: [#def20] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:10:60: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def21] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:10:72: error[error]: invalid operands to binary * (have 'int64_t (*)(shm_struct_t *)' {{aka 'long int (*)(struct shm_struct *)'}} and 'int')

Error: COMPILER_WARNING: [#def22] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:11:34: error[error]: enumerator value for '__cgo_undefined__3' is not an integer constant

Error: COMPILER_WARNING: [#def23] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:11:71: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def24] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:12:65: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def25] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:12:70: error[error]: invalid operands to binary * (have 'shm_struct_t * (*)(char *, uint32_t,  int *)' {{aka 'struct shm_struct * (*)(char *, unsigned int,  int *)'}} and 'int')

Error: COMPILER_WARNING: [#def26] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:13:71: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *)' {{aka 'int (*)(struct shm_struct *)'}} and 'int')

Error: COMPILER_WARNING: [#def27] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:13:71: error[error]: invalid operands to binary * (have 'shm_struct_t * (*)(char *, uint32_t,  int *)' {{aka 'struct shm_struct * (*)(char *, unsigned int,  int *)'}} and 'int')

Error: COMPILER_WARNING: [#def28] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:14:69: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def29] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:14:82: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *)' {{aka 'int (*)(struct shm_struct *)'}} and 'int')

Error: COMPILER_WARNING: [#def30] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:15:67: error[error]: invalid operands to binary * (have 'int (*)(const char *)' and 'int')

Error: COMPILER_WARNING: [#def31] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:15:77: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def32] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:16:61: error[error]: invalid operands to binary * (have 'void (*)(void *)' and 'int')

Error: COMPILER_WARNING: [#def33] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:16:65: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def34] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:17:60: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def35] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:17:65: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def36] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:18:64: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def37] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:18:73: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def38] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:19:64: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def39] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:20:62: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def40] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:21:69: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def41] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:22:71: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def42] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:23:70: error[error]: invalid operands to binary * (have 'shm_struct_t * (*)(char *, uint32_t,  int *)' {{aka 'struct shm_struct * (*)(char *, unsigned int,  int *)'}} and 'int')

Error: COMPILER_WARNING: [#def43] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:24:72: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def44] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:25:66: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def45] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:26:71: error[error]: invalid operands to binary * (have 'shm_struct_t * (*)(char *, uint32_t,  int *)' {{aka 'struct shm_struct * (*)(char *, unsigned int,  int *)'}} and 'int')

Error: COMPILER_WARNING: [#def46] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:27:69: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def47] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:28:67: error[error]: invalid operands to binary * (have 'int (*)(const char *)' and 'int')

Error: COMPILER_WARNING: [#def48] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:29:65: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def49] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:30:65: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def50] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:31:65: error[error]: invalid type argument of unary '*' (have 'int')

Error: COMPILER_WARNING: [#def51] [important]
podman-5.7.1/libpod/lock/shm/not-int-const:32:73: error[error]: invalid operands to binary * (have 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}} and 'int')

Error: COMPILER_WARNING: [#def52] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:1:67: error[error]: incompatible types when initializing type 'double' using type 'char * (*)(_GoString_)'

Error: COMPILER_WARNING: [#def53] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:2:67: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def54] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:2:79: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def55] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:3:67: error[error]: incompatible types when initializing type 'double' using type 'int64_t (*)(shm_struct_t *)' {{aka 'long int (*)(struct shm_struct *)'}}

Error: COMPILER_WARNING: [#def56] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:3:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def57] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:4:67: error[error]: incompatible types when initializing type 'double' using type 'int64_t (*)(shm_struct_t *)' {{aka 'long int (*)(struct shm_struct *)'}}

Error: COMPILER_WARNING: [#def58] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:4:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def59] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:5:85: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def60] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:6:67: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *)' {{aka 'int (*)(struct shm_struct *)'}}

Error: COMPILER_WARNING: [#def61] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:6:79: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def62] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:7:67: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *)' {{aka 'int (*)(struct shm_struct *)'}}

Error: COMPILER_WARNING: [#def63] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:7:79: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def64] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:8:67: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def65] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:9:67: error[error]: incompatible types when initializing type 'double' using type 'int64_t (*)(shm_struct_t *)' {{aka 'long int (*)(struct shm_struct *)'}}

Error: COMPILER_WARNING: [#def66] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:9:67: error[error]: incompatible types when initializing type 'double' using type 'void (*)(void *)'

Error: COMPILER_WARNING: [#def67] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:10:68: error[error]: incompatible types when initializing type 'double' using type 'int64_t (*)(shm_struct_t *)' {{aka 'long int (*)(struct shm_struct *)'}}

Error: COMPILER_WARNING: [#def68] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:10:73: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def69] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:11:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def70] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:12:68: error[error]: incompatible types when initializing type 'double' using type 'shm_struct_t * (*)(char *, uint32_t,  int *)' {{aka 'struct shm_struct * (*)(char *, unsigned int,  int *)'}}

Error: COMPILER_WARNING: [#def71] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:12:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def72] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:13:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *)' {{aka 'int (*)(struct shm_struct *)'}}

Error: COMPILER_WARNING: [#def73] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:13:68: error[error]: incompatible types when initializing type 'double' using type 'shm_struct_t * (*)(char *, uint32_t,  int *)' {{aka 'struct shm_struct * (*)(char *, unsigned int,  int *)'}}

Error: COMPILER_WARNING: [#def74] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:14:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *)' {{aka 'int (*)(struct shm_struct *)'}}

Error: COMPILER_WARNING: [#def75] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:14:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def76] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:15:68: error[error]: incompatible types when initializing type 'double' using type 'int (*)(const char *)'

Error: COMPILER_WARNING: [#def77] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:15:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def78] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:16:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def79] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:16:68: error[error]: incompatible types when initializing type 'double' using type 'void (*)(void *)'

Error: COMPILER_WARNING: [#def80] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:17:73: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def81] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:17:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def82] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:18:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def83] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:18:77: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def84] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:19:77: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def85] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:20:75: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def86] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:21:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def87] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:22:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def88] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:23:68: error[error]: incompatible types when initializing type 'double' using type 'shm_struct_t * (*)(char *, uint32_t,  int *)' {{aka 'struct shm_struct * (*)(char *, unsigned int,  int *)'}}

Error: COMPILER_WARNING: [#def89] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:24:85: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def90] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:25:79: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def91] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:26:68: error[error]: incompatible types when initializing type 'double' using type 'shm_struct_t * (*)(char *, uint32_t,  int *)' {{aka 'struct shm_struct * (*)(char *, unsigned int,  int *)'}}

Error: COMPILER_WARNING: [#def92] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:27:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def93] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:28:68: error[error]: incompatible types when initializing type 'double' using type 'int (*)(const char *)'

Error: COMPILER_WARNING: [#def94] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:29:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def95] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:30:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def96] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:31:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def97] [important]
podman-5.7.1/libpod/lock/shm/not-num-const:32:68: error[error]: incompatible types when initializing type 'double' using type 'int32_t (*)(shm_struct_t *, uint32_t)' {{aka 'int (*)(struct shm_struct *, unsigned int)'}}

Error: COMPILER_WARNING: [#def98] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:1:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def99] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:2:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def100] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:2:79: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def101] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:3:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def102] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:3:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def103] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:4:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def104] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:4:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def105] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:5:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def106] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:5:85: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def107] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:6:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def108] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:6:79: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def109] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:7:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def110] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:7:79: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def111] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:8:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def112] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:9:67: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def113] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:10:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def114] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:10:73: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def115] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:11:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def116] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:12:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def117] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:12:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def118] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:13:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def119] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:14:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def120] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:14:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def121] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:15:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def122] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:16:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def123] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:17:73: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def124] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:17:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def125] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:18:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def126] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:18:77: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def127] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:19:77: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def128] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:20:75: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def129] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:21:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def130] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:22:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def131] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:23:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def132] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:24:85: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def133] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:25:79: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def134] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:26:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def135] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:27:82: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def136] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:28:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def137] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:29:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def138] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:30:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def139] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:31:78: error[error]: expected expression before ';' token

Error: COMPILER_WARNING: [#def140] [important]
podman-5.7.1/libpod/lock/shm/not-str-lit:32:68: error[error]: invalid initializer

Error: COMPILER_WARNING: [#def141] [important]
podman-5.7.1/libpod/lock/shm/not-type:1:35: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def142] [important]
podman-5.7.1/libpod/lock/shm/not-type:2:52: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def143] [important]
podman-5.7.1/libpod/lock/shm/not-type:3:46: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def144] [important]
podman-5.7.1/libpod/lock/shm/not-type:4:43: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def145] [important]
podman-5.7.1/libpod/lock/shm/not-type:5:41: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def146] [important]
podman-5.7.1/libpod/lock/shm/not-type:6:42: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def147] [important]
podman-5.7.1/libpod/lock/shm/not-type:7:53: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def148] [important]
podman-5.7.1/libpod/lock/shm/not-type:8:48: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def149] [important]
podman-5.7.1/libpod/lock/shm/not-type:8:52: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def150] [important]
podman-5.7.1/libpod/lock/shm/not-type:9:32: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def151] [important]
podman-5.7.1/libpod/lock/shm/not-type:9:46: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def152] [important]
podman-5.7.1/libpod/lock/shm/not-type:10:44: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def153] [important]
podman-5.7.1/libpod/lock/shm/not-type:11:42: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def154] [important]
podman-5.7.1/libpod/lock/shm/not-type:11:43: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def155] [important]
podman-5.7.1/libpod/lock/shm/not-type:12:42: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def156] [important]
podman-5.7.1/libpod/lock/shm/not-type:13:43: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def157] [important]
podman-5.7.1/libpod/lock/shm/not-type:14:54: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def158] [important]
podman-5.7.1/libpod/lock/shm/not-type:15:39: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def159] [important]
podman-5.7.1/libpod/lock/shm/not-type:15:49: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def160] [important]
podman-5.7.1/libpod/lock/shm/not-type:16:33: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def161] [important]
podman-5.7.1/libpod/lock/shm/not-type:16:37: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def162] [important]
podman-5.7.1/libpod/lock/shm/not-type:18:45: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def163] [important]
podman-5.7.1/libpod/lock/shm/not-type:22:43: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def164] [important]
podman-5.7.1/libpod/lock/shm/not-type:23:42: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def165] [important]
podman-5.7.1/libpod/lock/shm/not-type:26:43: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def166] [important]
podman-5.7.1/libpod/lock/shm/not-type:28:39: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def167] [important]
podman-5.7.1/libpod/lock/shm/not-type:29:37: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: COMPILER_WARNING: [#def168] [important]
podman-5.7.1/libpod/lock/shm/not-type:32:45: error[error]: '__cgo_undefined__2' undeclared (first use in this function)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def169]
podman-5.7.1/pkg/rootless/rootless_linux.c:43:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘argv0’
podman-5.7.1/pkg/rootless/rootless_linux.c:450:7: throw: if ‘opendir’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:438:22: call_function: inlined call to ‘cleanup_freep’ from ‘init’
#   41|   {
#   42|     void **pp = (void **) p;
#   43|->   free (*pp);
#   44|   }
#   45|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def170]
podman-5.7.1/pkg/rootless/rootless_linux.c:43:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘buffer’
podman-5.7.1/pkg/rootless/rootless_linux.c:298:1: enter_function: entry to ‘get_cmd_line_args’
podman-5.7.1/pkg/rootless/rootless_linux.c:308:8: throw: if ‘open’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:301:21: call_function: inlined call to ‘cleanup_closep’ from ‘get_cmd_line_args’
podman-5.7.1/pkg/rootless/rootless_linux.c:300:22: call_function: inlined call to ‘cleanup_freep’ from ‘get_cmd_line_args’
#   41|   {
#   42|     void **pp = (void **) p;
#   43|->   free (*pp);
#   44|   }
#   45|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def171]
podman-5.7.1/pkg/rootless/rootless_linux.c:51:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘*(void *)p’
podman-5.7.1/pkg/rootless/rootless_linux.c:51:5: release_resource: first ‘close’ here
podman-5.7.1/pkg/rootless/rootless_linux.c:51:5: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:51:5: danger: second ‘close’ here; first ‘close’ was at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   49|     int *pp = p;
#   50|     if (*pp >= 0)
#   51|->     TEMP_FAILURE_RETRY (close (*pp));
#   52|   }
#   53|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def172]
podman-5.7.1/pkg/rootless/rootless_linux.c:51:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
podman-5.7.1/pkg/rootless/rootless_linux.c:298:1: enter_function: entry to ‘get_cmd_line_args’
podman-5.7.1/pkg/rootless/rootless_linux.c:308:8: acquire_resource: opened here
podman-5.7.1/pkg/rootless/rootless_linux.c:309:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:313:12: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:314:6: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:301:21: call_function: inlined call to ‘cleanup_closep’ from ‘get_cmd_line_args’
#   49|     int *pp = p;
#   50|     if (*pp >= 0)
#   51|->     TEMP_FAILURE_RETRY (close (*pp));
#   52|   }
#   53|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
podman-5.7.1/pkg/rootless/rootless_linux.c:59:5: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/proc/self/fd")’
podman-5.7.1/pkg/rootless/rootless_linux.c:450:7: acquire_memory: allocated here
podman-5.7.1/pkg/rootless/rootless_linux.c:451:6: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:456:18: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:456:18: throw: if ‘readdir’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:439:20: call_function: inlined call to ‘cleanup_dirp’ from ‘init’
#   57|     DIR *dir = *p;
#   58|     if (dir)
#   59|->     closedir (dir);
#   60|   }
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
podman-5.7.1/pkg/rootless/rootless_linux.c:59:5: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dir)’
podman-5.7.1/pkg/rootless/rootless_linux.c:182:7: acquire_memory: allocated here
podman-5.7.1/pkg/rootless/rootless_linux.c:183:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:193:3: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:195:13: throw: if ‘readdir’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:177:20: call_function: inlined call to ‘cleanup_dirp’ from ‘do_preexec_hooks_dir’
#   57|     DIR *dir = *p;
#   58|     if (dir)
#   59|->     closedir (dir);
#   60|   }
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def175]
podman-5.7.1/pkg/rootless/rootless_linux.c:79:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:698:17: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:702:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:709:15: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:709:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:725:14: branch_false: following ‘false’ branch (when ‘r >= 0’)...
podman-5.7.1/pkg/rootless/rootless_linux.c:731:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:735:15: call_function: calling ‘rename_noreplace’ from ‘create_pause_process’
#   77|   
#   78|     /* This might be an issue if another process is trying to read the file while it is empty.  */
#   79|->   ret = open (newpath, O_EXCL|O_CREAT, 0700);
#   80|     if (ret < 0)
#   81|       return ret;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def176]
podman-5.7.1/pkg/rootless/rootless_linux.c:82:3: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:698:17: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:702:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:709:15: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:709:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:725:14: branch_false: following ‘false’ branch (when ‘r >= 0’)...
podman-5.7.1/pkg/rootless/rootless_linux.c:731:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:735:15: call_function: calling ‘rename_noreplace’ from ‘create_pause_process’
#   80|     if (ret < 0)
#   81|       return ret;
#   82|->   close (ret);
#   83|   
#   84|     /* We are sure we created the file, let's overwrite it.  */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
podman-5.7.1/pkg/rootless/rootless_linux.c:195:35: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(buffer, (nfiles + 1) * 256)’
podman-5.7.1/pkg/rootless/rootless_linux.c:183:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:193:3: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:195:26: branch_true: following ‘true’ branch (when ‘de’ is non-NULL)...
podman-5.7.1/pkg/rootless/rootless_linux.c:197:33: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:198:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:204:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:204:10: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:204:10: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:195:35: throw: if ‘readdir’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:195:35: danger: ‘realloc(buffer, (nfiles + 1) * 256)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
#  193|     errno = 0;
#  194|   
#  195|->   for (de = readdir (d); de; de = readdir (d))
#  196|       {
#  197|         buffer = realloc (buffer, (nfiles + 1) * (NAME_MAX + 1));

Error: GCC_ANALYZER_WARNING (CWE-415): [#def178]
podman-5.7.1/pkg/rootless/rootless_linux.c:197:16: warning[-Wanalyzer-double-free]: double-‘free’ of ‘buffer’
podman-5.7.1/pkg/rootless/rootless_linux.c:255:1: enter_function: entry to ‘do_preexec_hooks’
podman-5.7.1/pkg/rootless/rootless_linux.c:260:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:264:25: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:265:3: call_function: calling ‘do_preexec_hooks_dir’ from ‘do_preexec_hooks’
podman-5.7.1/pkg/rootless/rootless_linux.c:265:3: return_function: returning to ‘do_preexec_hooks’ from ‘do_preexec_hooks_dir’
podman-5.7.1/pkg/rootless/rootless_linux.c:266:3: call_function: calling ‘do_preexec_hooks_dir’ from ‘do_preexec_hooks’
#  195|     for (de = readdir (d); de; de = readdir (d))
#  196|       {
#  197|->       buffer = realloc (buffer, (nfiles + 1) * (NAME_MAX + 1));
#  198|         if (buffer == NULL)
#  199|           {

Error: GCC_ANALYZER_WARNING (CWE-122): [#def179]
podman-5.7.1/pkg/rootless/rootless_linux.c:209:7: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
podman-5.7.1/pkg/rootless/rootless_linux.c:183:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:193:3: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:195:26: branch_true: following ‘true’ branch (when ‘de’ is non-NULL)...
podman-5.7.1/pkg/rootless/rootless_linux.c:197:33: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:198:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:204:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:209:7: danger: out-of-bounds write at byte 256 but region ends at byte 256
#  207|         strncpy (buffer + nfiles * (NAME_MAX + 1), de->d_name, NAME_MAX + 1);
#  208|         nfiles++;
#  209|->       buffer[nfiles * (NAME_MAX + 1)] = '\0';
#  210|       }
#  211|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def180]
podman-5.7.1/pkg/rootless/rootless_linux.c:212:3: warning[-Wanalyzer-null-argument]: use of NULL ‘buffer’ where non-null expected
podman-5.7.1/pkg/rootless/rootless_linux.c:183:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:193:3: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:195:26: branch_false: following ‘false’ branch (when ‘de’ is NULL)...
podman-5.7.1/pkg/rootless/rootless_linux.c:212:3: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:212:3: danger: argument 1 (‘buffer’) NULL where non-null expected
#  210|       }
#  211|   
#  212|->   qsort (buffer, nfiles, NAME_MAX + 1, (int (*)(const void *, const void *)) strcmp);
#  213|   
#  214|     for (i = 0; i < nfiles; i++)

Error: GCC_ANALYZER_WARNING (CWE-465): [#def181]
podman-5.7.1/pkg/rootless/rootless_linux.c:377:18: warning[-Wanalyzer-deref-before-check]: check of ‘*argv’ for NULL after already dereferencing it
podman-5.7.1/pkg/rootless/rootless_linux.c:374:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:374:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:377:18: danger: pointer ‘*argv’ is checked for NULL here but it was already dereferenced at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  375|       return false;
#  376|   
#  377|->   for (argc = 0; argv[argc]; argc++)
#  378|       {
#  379|         if (argc == 0 || argv[argc][0] == '-')

Error: GCC_ANALYZER_WARNING (CWE-775): [#def182]
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: danger: ‘p[0]’ leaks here
#  661|     if (pid < 0)
#  662|       {
#  663|->       close (p[0]);
#  664|         close (p[1]);
#  665|         return -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def183]
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: danger: ‘p[1]’ leaks here
#  661|     if (pid < 0)
#  662|       {
#  663|->       close (p[0]);
#  664|         close (p[1]);
#  665|         return -1;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def184]
podman-5.7.1/pkg/rootless/rootless_linux.c:664:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:663:7: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:664:7: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:664:7: danger: ‘p[1]’ leaks here
#  662|       {
#  663|         close (p[0]);
#  664|->       close (p[1]);
#  665|         return -1;
#  666|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def185]
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: danger: ‘p[0]’ leaks here
#  671|         int r, r2;
#  672|   
#  673|->       close (p[1]);
#  674|         /* Block until we write the pid file.  */
#  675|         r = TEMP_FAILURE_RETRY (read (p[0], &b, 1));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def186]
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: danger: ‘p[1]’ leaks here
#  671|         int r, r2;
#  672|   
#  673|->       close (p[1]);
#  674|         /* Block until we write the pid file.  */
#  675|         r = TEMP_FAILURE_RETRY (read (p[0], &b, 1));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def187]
podman-5.7.1/pkg/rootless/rootless_linux.c:676:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:673:7: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:676:7: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:676:7: danger: ‘p[0]’ leaks here
#  674|         /* Block until we write the pid file.  */
#  675|         r = TEMP_FAILURE_RETRY (read (p[0], &b, 1));
#  676|->       close (p[0]);
#  677|   
#  678|         r2 = reexec_in_user_namespace_wait (pid, 0);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def188]
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[0]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: danger: ‘p[0]’ leaks here
#  686|         int r, fd;
#  687|   
#  688|->       close (p[0]);
#  689|   
#  690|         setsid ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def189]
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: danger: ‘p[1]’ leaks here
#  686|         int r, fd;
#  687|   
#  688|->       close (p[0]);
#  689|   
#  690|         setsid ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def190]
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:698:17: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:702:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:709:15: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:709:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: throw: if ‘mkstemp’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: danger: ‘p[1]’ leaks here
#  714|               }
#  715|   
#  716|->           fd = mkstemp (tmp_file_path);
#  717|             if (fd < 0)
#  718|               {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
podman-5.7.1/pkg/rootless/rootless_linux.c:724:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:698:17: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:702:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:709:15: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:709:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:724:15: throw: if ‘write’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:724:15: danger: ‘p[1]’ leaks here
#  722|               }
#  723|   
#  724|->           r = TEMP_FAILURE_RETRY (write (fd, pid_str, strlen (pid_str)));
#  725|             if (r < 0)
#  726|               {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def192]
podman-5.7.1/pkg/rootless/rootless_linux.c:731:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:698:17: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:702:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:709:15: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:709:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:725:14: branch_false: following ‘false’ branch (when ‘r >= 0’)...
podman-5.7.1/pkg/rootless/rootless_linux.c:731:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:731:11: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:731:11: danger: ‘p[1]’ leaks here
#  729|                 _exit (EXIT_FAILURE);
#  730|               }
#  731|->           close (fd);
#  732|   
#  733|             /* There can be another process at this point trying to configure the user namespace and the pause

Error: GCC_ANALYZER_WARNING (CWE-775): [#def193]
podman-5.7.1/pkg/rootless/rootless_linux.c:742:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:698:17: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:702:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:709:15: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:709:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:725:14: branch_false: following ‘false’ branch (when ‘r >= 0’)...
podman-5.7.1/pkg/rootless/rootless_linux.c:731:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:735:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:735:14: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:742:15: throw: if ‘write’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:742:15: danger: ‘p[1]’ leaks here
#  740|               }
#  741|   
#  742|->           r = TEMP_FAILURE_RETRY (write (p[1], "0", 1));
#  743|             if (r < 0)
#  744|               {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def194]
podman-5.7.1/pkg/rootless/rootless_linux.c:748:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:698:17: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:702:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:709:15: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:709:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:716:16: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:717:14: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:725:14: branch_false: following ‘false’ branch (when ‘r >= 0’)...
podman-5.7.1/pkg/rootless/rootless_linux.c:731:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:735:14: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:735:14: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:743:14: branch_false: following ‘false’ branch (when ‘r >= 0’)...
podman-5.7.1/pkg/rootless/rootless_linux.c:748:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:748:11: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:748:11: danger: ‘p[1]’ leaks here
#  746|                 _exit (EXIT_FAILURE);
#  747|               }
#  748|->           close (p[1]);
#  749|   
#  750|             _exit (EXIT_SUCCESS);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def195]
podman-5.7.1/pkg/rootless/rootless_linux.c:756:11: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘p[1]’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:756:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:756:11: throw: if ‘close’ throws an exception...
podman-5.7.1/pkg/rootless/rootless_linux.c:756:11: danger: ‘p[1]’ leaks here
#  754|             int null;
#  755|   
#  756|->           close (p[1]);
#  757|   
#  758|             null = open ("/dev/null", O_RDWR);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def196]
podman-5.7.1/pkg/rootless/rootless_linux.c:764:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 2)’
podman-5.7.1/pkg/rootless/rootless_linux.c:652:1: enter_function: entry to ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:657:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:660:9: call_function: inlined call to ‘syscall_clone’ from ‘create_pause_process’
podman-5.7.1/pkg/rootless/rootless_linux.c:661:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:668:6: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:688:7: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:692:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:695:10: branch_false: following ‘false’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:756:11: branch_false: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:758:18: acquire_resource: opened here
podman-5.7.1/pkg/rootless/rootless_linux.c:759:14: branch_true: following ‘true’ branch...
podman-5.7.1/pkg/rootless/rootless_linux.c:761:15: branch_true: ...to here
podman-5.7.1/pkg/rootless/rootless_linux.c:764:15: danger: ‘open("/dev/null", 2)’ leaks here; was opened at [(14)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/13)
#  762|                 dup2 (null, 1);
#  763|                 dup2 (null, 2);
#  764|->               close (null);
#  765|               }
#  766|   

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
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-14.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-x86_64
project-namepodman-5.7.1-1.fc44
store-results-to/tmp/tmpxssdx2jo/podman-5.7.1-1.fc44.tar.xz
time-created2026-01-08 20:25:26
time-finished2026-01-08 20:29:42
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpxssdx2jo/podman-5.7.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpxssdx2jo/podman-5.7.1-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9