Searched hist:"178531 a062045fade9fbfd29f08a06befa55df9a" (Results 1 – 2 of 2) sorted by relevance
/openbmc/libpldm/src/transport/ |
H A D | socket.c | diff 178531a062045fade9fbfd29f08a06befa55df9a Wed Jul 05 21:21:20 CDT 2023 Rashmica Gupta <rashmica@linux.ibm.com> transport: Fix possible NULL ptr deref in pldm_socket_sndbuf_init()
From cppcheck: ``` src/transport/socket.c:24:10: warning: Either the condition 'fp==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] fclose(fp); ^ src/transport/socket.c:23:9: note: Assuming that condition 'fp==NULL' is not redundant if (fp == NULL || fgets(line, sizeof(line), fp) == NULL) { ^ src/transport/socket.c:24:10: note: Null pointer dereference fclose(fp); ^ ```
Fixes: 04273e9f6895 ("Resize socket send buffer if needed") Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com> Change-Id: Iac053a3d3c784e3592eea027f25f005dba024850
|
/openbmc/libpldm/ |
H A D | CHANGELOG.md | diff 178531a062045fade9fbfd29f08a06befa55df9a Wed Jul 05 21:21:20 CDT 2023 Rashmica Gupta <rashmica@linux.ibm.com> transport: Fix possible NULL ptr deref in pldm_socket_sndbuf_init()
From cppcheck: ``` src/transport/socket.c:24:10: warning: Either the condition 'fp==NULL' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] fclose(fp); ^ src/transport/socket.c:23:9: note: Assuming that condition 'fp==NULL' is not redundant if (fp == NULL || fgets(line, sizeof(line), fp) == NULL) { ^ src/transport/socket.c:24:10: note: Null pointer dereference fclose(fp); ^ ```
Fixes: 04273e9f6895 ("Resize socket send buffer if needed") Signed-off-by: Rashmica Gupta <rashmica@linux.ibm.com> Change-Id: Iac053a3d3c784e3592eea027f25f005dba024850
|