Details
Description
If buf_to_printable_buffer() is passed a source buf which is larger than
dest buf, it attempts to only process as many bytes as will fit in the
destination. However there is an off-by-one error when writing the
trailing \0 which causes it to overwrite the end of the destination
buffer.
Identified during testing of some long sub-document mutation paths.
Note this code is only executed if memcached's verbosity is set to '2' or higher (default in production is 1), hence the fact that we've not (to my knowledge) seen any production issues.
Attachments
Issue Links
- blocks
-
MB-17211 4.1.1 Minor Release
-
- Closed
-