mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
![]() After #4724, empty strings would result in nullptrs being stored in the threading::Value's string_val.data field instead of a valid pointer to an empty strings. This upsets UBSAN's nonnull check for memcpy() [01:29:45.807] ../../src/SerializationFormat.cc:80:33: runtime error: null pointer passed as argument 2, which is declared to never be null [01:29:45.807] /usr/include/string.h:44:28: note: nonnull attribute specified here [01:29:45.807] #0 0x5b2e9c933a3f in zeek::detail::SerializationFormat::WriteData(void const*, unsigned long) /zeek/build/src/../../src/SerializationFormat.cc:80:5 [01:29:45.807] #1 0x5b2e9c935184 in zeek::detail::BinarySerializationFormat::Write(char const*, int, char const*) /zeek/build/src/../../src/SerializationFormat.cc:371:40 Continue to allocate the empty string for now as a fix. |
||
---|---|---|
.. | ||
formatters | ||
BasicThread.cc | ||
BasicThread.h | ||
Formatter.cc | ||
Formatter.h | ||
Manager.cc | ||
Manager.h | ||
MsgThread.cc | ||
MsgThread.h | ||
Queue.h | ||
SerialTypes.cc | ||
SerialTypes.h |