News for hackers. Stuff that matters.
Re:Banned C standard library functions in Git source code by saagarjha on Sunday August 25, 2019 @10:55AM (#20793321)
I see zero use of those in the codebase, so perhaps they should be banned too. Or maybe they’re not on this list because nobody was using them already?
Re:Banned C standard library functions in Git source code by susam on Sunday August 25, 2019 @11:11AM (#20793402)
I have worked in large code bases (RSA NetWitness, Oracle Database, etc.) where setjmp/longjmp were used to create macros for exception handling using TRY-CATCH-ENDTRY blocks in C.
Re:Banned C standard library functions in Git source code by saagarjha on Sunday August 25, 2019 @11:14AM (#20793416)
Personally, I feel like wrapping exception handlers in macros makes it easy for people to do unsafe things with it like dynamically allocating memory or calling system functions that can’t handle it correctly.