News for hackers. Stuff that matters.
Re:Simple Dynamic Strings library for C, compatible with nul... by reza_n on Tuesday December 03, 2019 @10:24AM (#21693040)
This is a bit on the unsafe side since it blindly trusts user input. At minimum, there needs to be some kind of magic number in the struct header to validate its looking at the right memory. Best case, some kind of pointer accounting. Unfortunately, magic doesn't come for free.
Re:Simple Dynamic Strings library for C, compatible with nul... by vardump on Tuesday December 03, 2019 @10:46AM (#21693317)
We can optimize that, just put a function pointer in the beginning that's called every time to validate the string... /s