Static archive.
pagure.io was sunset in 2026; this is a read-only snapshot.
svrcore
Source
Issues
17
Forks
2
Releases
5
#7
Defect: Coverity incorrect return check
Closed: Fixed
Opened
Apr 12, 2016
by firstyear.
Closed: Fixed
Reopen Issue
svrcore-4.1.0/src/systemd-ask-pass.c:241: returned_null: "fopen" returns null.
svrcore-4.1.0/src/systemd-ask-pass.c:241: var_assigned: Assigning: "tmp_fd" = null return value from "fopen".
svrcore-4.1.0/src/systemd-ask-pass.c:246: dereference: Dereferencing a pointer that might be null "tmp_fd" when calling "fprintf". [Note: The source code implementation of the function has been overridden by a builtin model.]
244| // Write data to the file
245| // [Ask]
246|-> fprintf(tmp_fd, "[Ask]\n");
247| // PID=Our Pid
248| fprintf(tmp_fd, "PID=%d\n", pid);
firstyear
commented
Apr 13, 2016
PR#11
Metadata
Assignee
firstyear
Tags
None
Blocking
None
Depending on
None
Priority
None