mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-27 13:26:39 +02:00
b46c0f20ab
And the defines are more clear now (if .max_size is not set by caller. DOWNLOAD_MAX_SIZE_MEMORY_BACKED: 1M DOWNLOAD_MAX_SIZE_FILE_BACKED: 50M The file-backed is mostly a defense-in-depth measure, so we don't store infinite amounts of data in a download. Even though, in practice, these - at least at the moment in unrealircd itself - all come from trusted paths like remote includes. In url_unreal.c we do the counting ourselves. In url_curl.c we use the option CURLOPT_MAXFILESIZE_LARGE but this does not ensure it in all cases so we still do our own counting as well in that file as well.