Non zero-terminated char buffer / Zero-copy / Input buffer length
Created by: ilyary
I'm parsing data from ssl_read. The data is char sequence but not zero-terminated, though length is known. I use zero-copying. There is a threat to go out of buffer range when braces are not closed or JSON corrupted. How to make use of known input buffer length?