]> jfr.im git - irc/charybdis-ircd/charybdis.git/commit
ircd: substitution: fix buffer overrun if variable name is too long
authorSimon Arlott <sa.me.uk>
Sat, 5 Aug 2017 10:27:02 +0000 (11:27 +0100)
committerSimon Arlott <sa.me.uk>
Sat, 5 Aug 2017 10:27:02 +0000 (11:27 +0100)
commit4212494106b7115eafd5d612dd91f2966ec3b71f
tree7ab8e14d0c7910004dfaf1af122fdd8f1464689a
parent6b80043ecac1826e16f06202849edb3dd59e67ac
ircd: substitution: fix buffer overrun if variable name is too long

Also fix the "ptr = ptr + (pptr - ptr)" aka "ptr = pptr" mess by
removing pptr.
ircd/substitution.c
tests/substitution1.c