Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CCBC-1610: fix invalid memory access when patching collection id
It is important to renew whole packet when patching collection id after the command has been encoded. Otherwise the packet might corrupt memory on deallocation. Change-Id: I68118133222de6129cd1b64ee08f08347bd7fc23 Reviewed-on: https://review.couchbase.org/c/libcouchbase/+/197287 Reviewed-by: Brett Lawson <brett19@gmail.com> Tested-by: Build Bot <build@couchbase.com>
- Loading branch information
Showing
3 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters