leveldb icon indicating copy to clipboard operation
leveldb copied to clipboard

leveldb: Fix wrong string resize in Footer::EncodeTo()

Open luyade opened this issue 2 years ago • 1 comments

The resize of dst string in Footer::EncodeTo() doesn't consider the original length. Currently the string passed to Footer::EncodeTo() is empty so it doesn't expose this problem, but this could be a potential bug.

luyade avatar May 10 '23 04:05 luyade

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar May 10 '23 04:05 google-cla[bot]