-
- Downloads
ciolib_puttext: free() is not reachable
As far as I can tell, this free() in ciolib_puttext() is not reachable given the current logic in the function; and, the value of buf is not modified by any called functions. Also, this function is invoked with stack allocated buffers, so it isn't safe to assume a free() is valid in this context. Better to let the owner of the buffer manage the lifecycle.
Please register or sign in to comment