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
The string constructor being invoked will read up until the null character, but input_buf doesn't contain a null character. This means that the string constructor will read past the end of input_buf until it comes across a null terminator. The call to std_input.resize removes the garbage at the end of string, but the string constructor may not run in to a null character for a long time.
The text was updated successfully, but these errors were encountered:
The issue occurs here: https://github.com/openmpf/openmpf/blob/master/trunk/detection/executor/cpp/batch/main.cpp#L648
The string constructor being invoked will read up until the null character, but
input_buf
doesn't contain a null character. This means that the string constructor will read past the end ofinput_buf
until it comes across a null terminator. The call tostd_input.resize
removes the garbage at the end of string, but the string constructor may not run in to a null character for a long time.The text was updated successfully, but these errors were encountered: