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
When compiling with beast from the boost 1.70 distribution, I noted that the copy constructor of flat_buffer does not correctly copies a buffer that had some bytes consumed.
After looking at the source code it seems that the error comes from the flat_buffer::copy_from method: std::memcpy(begin_, other.begin_, n); should probably be std::memcpy(begin_, other.in_, n);
When compiling with beast from the boost 1.70 distribution, I noted that the copy constructor of
flat_buffer
does not correctly copies a buffer that had some bytes consumed.After looking at the source code it seems that the error comes from the
flat_buffer::copy_from
method:std::memcpy(begin_, other.begin_, n);
should probably bestd::memcpy(begin_, other.in_, n);
Version of Beast
Version 248 (included in boost 1.70)
Steps necessary to reproduce the problem
prints:
All relevant compiler information
Tested with MSVC 2019.1 and GCC 8.3.0 (linux x64)
The text was updated successfully, but these errors were encountered: