by codedokode · 9y ago · 0 comments
> This function receives a configuration response buffer in the rsp argument, and its length in the len argument
> Each element it unpacks from the configuration response is validated and then packed back onto a response buffer, which is pointed to by the data argument.
> However, the size of this response buffer is not passed into the function
C developers are repeating the same mistake for years. Why don't they invent some type or class for safe work with memory buffers?
https://github.com/Microsoft/checkedc
https://github.com/Microsoft/checkedc/releases/download/v0.6...