Skip to content

Commit

Permalink
Fix ASAN violation in NormalizerKeyValueMetadata (unrelated)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrv committed Feb 9, 2024
1 parent 280a61c commit 419d7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/filesystem/azurefs_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ std::shared_ptr<const KeyValueMetadata> NormalizerKeyValueMetadata(
auto value = metadata->value(i);
if (key == "Content-Hash") {
std::vector<uint8_t> output;
output.reserve(value.size() / 2);
output.resize(value.size() / 2);
if (ParseHexValues(value, output.data()).ok()) {
// Valid value
value = std::string(value.size(), 'F');
Expand Down

0 comments on commit 419d7df

Please sign in to comment.