cvs: php4 /ext/ircg ircg.c

From: Date: Wed, 15 Aug 2001 23:16:09 +0000
Subject: cvs: php4 /ext/ircg ircg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6876@lists.php.net to get a copy of this message
sas Wed Aug 15 19:16:09 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: add two further checks to fix possible crashes (%m in the quit message can now be NULL) Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.104 php4/ext/ircg/ircg.c:1.105 --- php4/ext/ircg/ircg.c:1.104 Tue Aug 14 04:58:28 2001 +++ php4/ext/ircg/ircg.c Wed Aug 15 19:16:09 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ircg.c,v 1.104 2001/08/14 08:58:28 sas Exp $ */ +/* $Id: ircg.c,v 1.105 2001/08/15 23:16:09 sas Exp $ */ #include <time.h> @@ -516,6 +516,7 @@ smart_str_append_ex(result, what, 1); \ break; \ case P_MIRC_JS: \ + if (!what) break; \ if (!encoded) { \ ircg_mirc_color_cache(msg, \ &encoded_msg, channel, \ @@ -526,6 +527,7 @@ ircg_js_escape(&encoded_msg, result); \ break; \ case P_MIRC: \ + if (!what) break; \ if (!encoded) { \ ircg_mirc_color_cache(msg, \ &encoded_msg, channel, \

« previous php.cvs (#6876) next »