|
|
|
|
|
by DannyBee
4272 days ago
|
|
You did miss one fun rabbit hole with printf in glibc: Search for register_printf_function, and realize that printf is now a function that can have whatever side-effects you like (which really sucks for optimization around logging code) |
|
So you can register new format specifiers for printf, but it seems you'll then have to disable warnings about bad format specifiers during compilation. Those warnings have very few false positives and catch real bugs in real code.