diff options
author | leveldb Team <no-reply@google.com> | 2025-01-21 16:19:03 +0000 |
---|---|---|
committer | Victor Costan <costan@google.com> | 2025-01-24 21:05:34 +0000 |
commit | e829478c6a3a55d8e5c1227e2678dcc18d518609 (patch) | |
tree | b10a934fbd029360d7d7f96f54f01663b6993b95 /util/logging_test.cc | |
parent | 302786e211d1f2e6fd260261f642d03a91e5922c (diff) | |
download | leveldb-e829478c6a3a55d8e5c1227e2678dcc18d518609.tar.gz leveldb-e829478c6a3a55d8e5c1227e2678dcc18d518609.zip |
Fix speculatively some "placement new" issues in leveldb
cl/713346733 changed the type of some variables to pointers, but didn't adjust the placement new statements. From pkasting@: "I suspect your code is wrong and will crash. An array is a pointer, so taking its address also gives a pointer, which is why it compiles; but the value of that pointer is different. You're no longer providing the address of the storage, but rather the address of the array pointer."
PiperOrigin-RevId: 717926210
Diffstat (limited to 'util/logging_test.cc')
0 files changed, 0 insertions, 0 deletions