[fix](be-ut) AddressSanitizer detects container-overflow issues (#14255)

* [chore] Fix the container-overflow errors detected by address sanitizer

* Fix compilation errors
This commit is contained in:
Adonis Ling
2022-11-15 15:49:55 +08:00
committed by GitHub
parent a45685d028
commit 333c6390ee
5 changed files with 8 additions and 8 deletions

View File

@ -259,7 +259,7 @@ bool ForDecoder<T>::init() {
}
}
_out_buffer.reserve(_max_frame_size);
_out_buffer.resize(_max_frame_size);
_parsed = true;
return true;