Skip to content

fix potential memory loss and exit codes

Donald Yandt netfilter-devel 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesApplied
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Moved variable declaration and described usage of size_t as suggested by Pablo Neira Ayuso <[email protected]>

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3conntrackd: prevent memory loss if reallocation failssrc/vector.c+5 -20 replies
2/3conntrackd: use size_t for element indicessrc/vector.c+1 -30 replies
3/3conntrackd: exit with failure statussrc/main.c+2 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH conntrack-tools v2 0/3] fix potential memory loss and exit codes

Vector data will be lost if reallocation fails, leading to undefined behaviour. Additionally, the indices of the allocated vector data can be represented more precisely by using size_t as the index type.

If no configuration file or an invalid parameter is provided, the daemon should exit with a failure status.

v2:
- Moved variable declaration and described usage of size_t as suggested by Pablo Neira Ayuso <[email protected]>

Donald Yandt (3):
conntrackd: prevent memory loss if reallocation fails
conntrackd: use size_t for element indices
conntrackd: exit with failure status

 src/main.c   |  5 ++---
 src/vector.c | 11 ++++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
2.44.0