[PATCH conntrack-tools 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, size_t should be used to provide the indices and sizes of vector elements.

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

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 | 9 ++++-----
 2 files changed, 6 insertions(+), 8 deletions(-)

-- 
2.44.0





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

  Powered by Linux