forked from facebook/mysql-5.6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mysqldump handling of varbinary columns
Summary: https://bugs.mysql.com/bug.php?id=96053 8.0.13 added _binary tags to blobs in the mysqldump output. However, memory allocated for the insert statement did not account of the 8 bytes of the "_binary " string properly. This resulted in mysqldump writing to memory beyond the buffer allocated for the string buffer before it is reallocated with a new larger size. The fix is to account for the 8 bytes of the "_binary " string during the realloc calculation. Reviewed By: lloyd Differential Revision: D16088056 (facebook@5e15108) fbshipit-source-id: 7d8cd4398f1
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 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