mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 19:14:46 +02:00
1068960b9a
This adds __attribute__((format(printf,X,Y))) to several functions. It also adds checking only for the non-literal case to some functions such as unreal_log/unreal_do_log. This so we can more easily detect format string issues. Especially now with the recoding of the logger and with possible future mistakes in this area in UnrealIRCd 6 itself or in third party modules. The check is currently disabled in these files, which are TODO items: * src/send.c: still much work to do * src/socket.c: due to report_error and report_baderror(). I want to get rid of these functions and integrate them in the new logger anyway. * src/serv.c: only disable for hunt_server()