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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>

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





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux