Findings from https://issues.redhat.com/browse/RHEL-22390:
Error: UNINIT (CWE-457):
rpm-4.16.1.3/lib/rpmscript.c:274: var_decl: Declaring variable "inpipe" without initializer.
rpm-4.16.1.3/lib/rpmscript.c:398: uninit_use: Using uninitialized value "inpipe[0]".
- 396| fclose(in);
- 397|
- 398|-> if (inpipe[0])
- 399| close(inpipe[0]);
- 400|
inpipe can be uninitialized in the case writing the to-be-executed scriptlet to the disk failed. Closing a random file descriptor could have weird effects of course.
- is cloned by
-
RHEL-54012 Potential use of unitialized variable in scriptlet execution
- Release Pending
- links to
-
RHBA-2024:133184 rpm bug fix and enhancement update