diff options
Diffstat (limited to 'chat/bitchx/patches/patch-ak')
-rw-r--r-- | chat/bitchx/patches/patch-ak | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chat/bitchx/patches/patch-ak b/chat/bitchx/patches/patch-ak new file mode 100644 index 00000000000..589061070d5 --- /dev/null +++ b/chat/bitchx/patches/patch-ak @@ -0,0 +1,18 @@ +$NetBSD: patch-ak,v 1.1 2003/03/29 21:20:30 salo Exp $ + +Fixes potential remote buffer overflows. See the following url for more +details: http://securityfocus.com/archive/1/315057 + +Patch by caf@guarana.org. + +--- source/notice.c.orig 2003-03-29 21:55:24.000000000 +0100 ++++ source/notice.c 2003-03-29 21:55:51.000000000 +0100 +@@ -425,7 +425,7 @@ + int conn = !strncmp(line+7, "connect", 7) ? 1 : 0; + int dalnet = 0, ircnet = 0; + +- if (*(line+18) == ':') ++ if (strlen(line) >= 19 && line[18] == ':') + q = NULL; + else + dalnet = (q == NULL); |