Crash when using repeated string

28 views
Skip to first unread message

mario heindl

unread,
Aug 18, 2022, 3:52:04 AMAug 18
to Protocol Buffers
Hello all,

we are currently encountering a crash when using repeated strings. The proto file is used from the sparkplug repository https://github.com/Cirrus-Link/Sparkplug/blob/master/sparkplug_b/sparkplug_b.proto

In the program code we call:
        Payload_PropertySet properties;
        properties.add_keys("blabla");

The error we get is:
      free: invalid pointer: 0xb6b88630

Whenever we set another repeated field, it is working perfectly fine, so this seems to be an issue with repeated strings.

We are using the latest protobuf version.

Does anybody have an idea about that?
Thanks!

Matthew Fowles Kulukundis

unread,
Aug 18, 2022, 9:33:59 AMAug 18
to mario heindl, Protocol Buffers
Mario~

With reasonable probability, there is a bug somewhere else in your program causing UB.  You should run your program under ASAN and MSAN to see if they turn up anything.


Matt

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/292dc53e-1895-447e-b244-6febff9bdef8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages