You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the raw_read function reads in the full buffer size worth of data then it may append a terminator ('\0') value beyond the end of the allocated buffer region. Below is a copy of the function with one of the original lines commented out and a 'fixed' version of the line afterwards. I just subtracted 1 from the buffer size passed in to ReadFile. I am not sure if this is the best way to handle it or if there are other spots that may have similar problems, but this seems to have fixed the bug I ran across. Thanks.
If the raw_read function reads in the full buffer size worth of data then it may append a terminator ('\0') value beyond the end of the allocated buffer region. Below is a copy of the function with one of the original lines commented out and a 'fixed' version of the line afterwards. I just subtracted 1 from the buffer size passed in to ReadFile. I am not sure if this is the best way to handle it or if there are other spots that may have similar problems, but this seems to have fixed the bug I ran across. Thanks.
The text was updated successfully, but these errors were encountered: