mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Fix asan/msan bug
PiperOrigin-RevId: 780237506
This commit is contained in:
committed by
Copybara-Service
parent
6a5d39eb59
commit
a2bcb2db27
@@ -99,7 +99,7 @@ std::optional<DataElement> DataElement::FromStreamReader(StreamReader& reader) {
|
||||
|
||||
std::optional<DataElement> DataElement::FromData(const std::string& data) {
|
||||
ByteArray bytes(data);
|
||||
StreamReader reader(bytes);
|
||||
StreamReader reader(&bytes);
|
||||
return FromStreamReader(reader);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user