All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH conntrack-tools v2 0/3] fix potential memory loss and exit codes
@ 2024-03-02 16:07 Donald Yandt
  2024-03-02 16:08 ` [PATCH conntrack-tools v2 1/3] conntrackd: prevent memory loss if reallocation fails Donald Yandt
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Donald Yandt @ 2024-03-02 16:07 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Donald Yandt

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 <pablo@netfilter.org>

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(-)

-- 
2.44.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-04 16:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-02 16:07 [PATCH conntrack-tools v2 0/3] fix potential memory loss and exit codes Donald Yandt
2024-03-02 16:08 ` [PATCH conntrack-tools v2 1/3] conntrackd: prevent memory loss if reallocation fails Donald Yandt
2024-03-02 16:08 ` [PATCH conntrack-tools v2 2/3] conntrackd: use size_t for element indices Donald Yandt
2024-03-02 16:08 ` [PATCH conntrack-tools v2 3/3] conntrackd: exit with failure status Donald Yandt
2024-03-04 12:49 ` [PATCH conntrack-tools v2 0/3] fix potential memory loss and exit codes Pablo Neira Ayuso
2024-03-04 12:58   ` Pablo Neira Ayuso
2024-03-04 16:57     ` Donald Yandt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.