[Snort-devel] strdup in snort

Sebastien Tandel sebastien at ...2931...
Sun Apr 1 17:07:35 EDT 2007


Hi,


   While reading the code of snort, I saw SnortStrdup() which is in fact
a copy of strdup() + a log message in case of failure of strdup.
In case the string to duplicate is NULL, snort will crash. (strdup is
used in many places and will follow the same behavior) Is it really what
you're expecting from this function?


Regards,
Sebastien Tandel




More information about the Snort-devel mailing list