diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/users.c | 6 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 12 insertions, 1 deletions
@@ -8,6 +8,7 @@ Provided by Anope Dev. <dev@anope.org> - 2005 07/01 A Events for channel access/xop updates. [ #00] 06/26 A New module pack module: hs_request. [ #00] 06/03 A Protocol files can now fill mod_current_buffer with custom code. [#389] +09/21 F Segfault when find_byuid() was called with a NULL argument. [ #00] 09/20 F Ident length checking when adding a bot was broken. [ #00] 09/20 F No response was giving when trying to load a non-existing module. [ #00] 09/18 F Last host was not always correctly set to a vHost if applied. [ #00] diff --git a/src/users.c b/src/users.c index 725d24a50..e3684a6b6 100644 --- a/src/users.c +++ b/src/users.c @@ -376,6 +376,12 @@ User *find_byuid(const char *uid) { User *u, *next; + if (!uid) { + if (debug) + alog("debug: find_byuid() called with NULL-value"); + return NULL; + } + u = first_uid(); while (u) { next = next_uid(); diff --git a/version.log b/version.log index 9b504f3f2..ad020ad36 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="11" VERSION_EXTRA="-rc2" -VERSION_BUILD="892" +VERSION_BUILD="893" # $Log$ # +# BUILD : 1.7.11 (893) +# BUGS : +# NOTES : Fixed a segfault in find_byuid() if it was passed with a NULL-argument +# # BUILD : 1.7.11 (892) # BUGS : # NOTES : Applied patch by Trystan to [1] strip CR/LF as well with normalizeBuffer() [2] fix various issues with hs_request (makes use of #1 in hs_request so that lines that are \n only are not processed; Adds check of tmp before allowing strtol() to get its hands on it; HSRequestDBName is set during the config load, if not by the config its sstrdup() with the default value.. so that the message at the end of the load does not read (NULL); frees the HSRequestDBName on unload; ran indent again it) |