News for hackers. Stuff that matters.
Re:Banned C standard library functions in Git source code by jasonhansel on Sunday August 25, 2019 @01:57PM (#20794409)
If I had time, I'd make a library (perhaps musl-based?) that implements "libc but without all the parts you're not actually supposed to use."
Re:Banned C standard library functions in Git source code by bakpakin on Sunday August 25, 2019 @05:55PM (#20795853)
Re:Banned C standard library functions in Git source code by Gibbon1 on Sunday August 25, 2019 @03:34PM (#20794995)
That make me wonder how hard it would be to just strip the bad functions out of the library.
Re:Banned C standard library functions in Git source code by anfilt on Sunday August 25, 2019 @07:47PM (#20796438)
Well your std c library is generally just a collection of .o, .a, .lib files. So you could use gnu bin tools to remove symbols of your choosing. However good luck getting your system to build software because that would modify the stdlib for all things compiled on your system. You could also tell gcc or clang not to link to the std library and providr your own with just a few switches on invocation of the compiler
Re:Banned C standard library functions in Git source code by Gibbon1 on Sunday August 25, 2019 @08:30PM (#20796627)
Other thought would be to put the dlls with unsafe functions in different location than the safer ones and throw up a warning when an application loads them.