Closed yurivict closed 1 year ago
This line would write into unallocated memory when number of bytes read (variable r) is 4096.
Child process can write out data of any kind, including lines that are over 4096 bytes in length.
That's why reproc_read() take a buffer and a size that specify the max amount of data that can be read
This line would write into unallocated memory when number of bytes read (variable r) is 4096.
Child process can write out data of any kind, including lines that are over 4096 bytes in length.