Joseph Bisch f4a592c4f0 Fix oob read caused by ptr[0] being NULL in inbound_notice
If ptr[0] is NULL, then strchr may return a pointer to the NULL
terminator for serv->nick_prefixes, making the if statement true, which
then leads to the pointer increment leaving ptr oob. Now we check to
ensure ptr[0] != NULL.

From the Linux manpages for strchr:
The terminating null byte is considered part of the string, so that if c is
       specified as '\0', these functions return a pointer to the terminator.
2017-09-18 22:01:48 -04:00
2013-09-08 01:28:06 -04:00
2014-08-01 04:03:54 -04:00
2017-09-15 19:29:31 -04:00
2017-06-13 23:54:51 -04:00
2016-09-01 23:10:35 -04:00
2013-05-20 15:59:41 +02:00
2017-06-26 22:18:59 -04:00
2017-06-14 02:47:26 -04:00

HexChat Build Status Build Status

HexChat is an IRC client for Windows and UNIX-like operating systems.
See IRCHelp.org for information about IRC in general.
For more information on HexChat please read our documentation:


X-Chat ("xchat") Copyright (c) 1998-2010 By Peter Zelezny. HexChat ("hexchat") Copyright (c) 2009-2014 By Berke Viktor. This program is released under the GPL v2 with the additional exemption that compiling, linking, and/or using OpenSSL is allowed. You may provide binary packages linked to the OpenSSL libraries, provided that all other requirements of the GPL are met. See file COPYING for details.
Description
Languages
C 93.2%
Python 1.7%
Perl 1.5%
Meson 1.3%
C# 0.9%
Other 1.2%