|
|||||||||||
|
[Snort-devel] Results of a quick/light code review
From: Steve G <linux_4ever(at)yahoo.com>
Date: Tue Sep 23 2003 - 11:30:50 EDT
I'm continuing to go through the snort code and have some early results I'd like to share. The results admittedly border on cherry picking, but there are quite few things that need fixing. If I have time, I'll try to get deeper into the code and do more review. -Steve Grubb Global comment:
*foo(); is not an ANSI function prototype. foo(void); is. The
*atoi is a deprecated function. strtol or strtoul should be used.
*errno should be cleared and checked after each use of strtol or
*bzero is a deprecated function. memset should be used.
spo_database.c:
spo_alert_sf_socket.c:
sp_icmp_type_check.c:
sp_ipoption_check.c:
sp_byte_check.c:
spp_stream4.c:
spp_perfmonitor.c:
parser.c:
1511: 4 arguments specified in format, only 3 are passed 3512: 3 arguments specified in format, only 1 is passed 3761: No arguments specified in format, 1 is passed
plugbase.c:
snort.c:
signature.c:
sfthreshold.c:
Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf Snort-devel mailing list Snort-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/snort-devel Received on Tue Sep 23 11:39:29 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:08:09 EDT |
||||||||||
|
|||||||||||