]> arthur.barton.de Git - ngircd-alex.git/commit
Fix use-after-free on Lists_CheckReason()
authorFederico G. Schwindt <fgsch@lodoss.net>
Fri, 19 Apr 2013 22:51:42 +0000 (23:51 +0100)
committerFederico G. Schwindt <fgsch@lodoss.net>
Fri, 19 Apr 2013 23:43:35 +0000 (00:43 +0100)
commitcde2e8a2775e8b01266627a60a08e2560eac42c8
tree9a4217c7d36ce572b55de17ac239cb3ab62782da
parent528c8fc244cb689d83d10203330718ba6b593458
Fix use-after-free on Lists_CheckReason()

Change Lists_CheckReason() to receive a buffer where the reason
will be stored and its length.  Change callers accordingly.

Change Class_GetMemberReason() (and its callers) in a similar way
so it doesn't rely on a global buffer for the rejected reason.
src/ngircd/class.c
src/ngircd/class.h
src/ngircd/lists.c
src/ngircd/lists.h