[AGENT++] [PATCH] SNMP++: Samml cleanup patches

dominik.vogt at external.thalesgroup.com dominik.vogt at external.thalesgroup.com
Thu Nov 25 08:12:52 CET 2010


Two very small patches:

0001-*

  Fixes a possible array bounds violation.  This would occur if
  set_linefeed_chars() is ever called with a string of length 0 or
  1.  This could be done by the user.

0002-*

  This code is just a little bit confusing.  First, it checks
  whether a pointer is not NULL before deleting it, then it sets
  the pointer to NULL unconditionally.

  However, as deleting NULL pointers is allowed, an alternative
  way of "fixing" this would be to simply remove the if-statement.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
-------------- next part --------------



More information about the AGENTPP mailing list