forked from mysql/mysql-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug#35812604 heap-use-after-free after read() fail
ASAN reports a use-after-free when handling queries larger than 16 Mbyte. Background ========== The use-after-free happens when using the read_buffer_view() after - Channel::read_to_plain() grew the read-buffer - the socket-read() failed - the read-buffer was resized to its original size. Change ====== - sync the read_buffer_view() even if the read() failed as it may have moved the read-buffer to a new memory area. Change-Id: I2511052394e83d217e4349557ec00664472b48da
- Loading branch information
1 parent
d71a96a
commit dd2f070
Showing
2 changed files
with
10 additions
and
7 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