Snort mailing list archives
memory allocate error check
From: Peng Yong <ppyy () staff cn99 com>
Date: Thu, 18 Apr 2002 11:34:28 +0800
I dig into the snort source code, and find there are many missing check code of memory allocation. for example: sp_dsize_check.c otn->ds_list[PLUGIN_DSIZE_CHECK] = (DsizeCheckData *) calloc(sizeof(DsizeChe ckData), sizeof(char)); sp_session.c otn->ds_list[PLUGIN_SESSION] = (SessionData *) calloc(sizeof(SessionData), s izeof(char)); filename = (char *) calloc(strlen(session_file)+1,sizeof(char)); I think a programm missing memory checking is not a mature programm. -- Peng Yong Email: ppyy () staff cn99 com Bentium Ltd. URL: http://www.cn99.com _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- memory allocate error check Peng Yong (Apr 17)