7 ms·
>Format specifiers can take extra “arguments”. - "%hhn": store the number of bytes written mod 256 to the char pointer ... Oh boy. I'll put that down for my "t
by notretarded 6y ago
>Format specifiers can take extra “arguments”. - "%hhn": store the number of bytes written mod 256 to the char pointer ...
Oh boy. I'll put that down for my "thing I don't think I wanted to know" of the day.
- snerp 6y agoThere is some innocent beauty in the twistedness of printf - especially with GNU extensions.
- dfcowell 6y agoSo I can port doom to gnu printf?
- kortilla 6y agoGNU's printf specifier language is Turing complete, I believe.
- deleted 6y ago[deleted]
- deleted 6y ago[deleted]
- a1369209993 6y agoGNU's printf is Turing complete[0]... so "yes." [0] Mentioned (but not directly linked) by TFA: https://www.usenix.org/conference/usenixsecurity15/technical-sessions/presentation/carlini https://www.usenix.org/conference/usenixsecurity15/technical...
- SahAssar 6y agoGNU's printf specifier language is Turing complete, I believe.
- gu5 6y agoWhat is up with this thread? These comments are duplicated from the top thread...