mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 17:33:13 +02:00
c32ff22a3e
Without CMD_BIGLINES: parameters to commands can be 510 bytes max (but eg. strlen(parv[1])+strlen(parv[2]) can be >510, like 510*2, when received from servers with BIGLINES support). If someone does set CMD_BIGLINES in their CommandAdd() then the parameter(s) size is not limited an can be up to 16k. This is a bit more risky than previous but i think most command handlers can handle parameters of max BUFSIZE/512 just fine and care less about the grand total. Also, the risk is only from server traffic and not from user traffic. Still, we will keep going through the source to check for issues.