Fix type-ids check in load_data for Message#1614
Conversation
the first 'id' in the `type_id_list_builder` is the placeholder for the actual size of the `type_id_list` which is always zero.
781d2db to
4886323
Compare
|
Wow, thanks a lot for hunting this down!
Our of curiosity: how? 🙂 If I read this correctly, there are two bugfixes here:
These are very subtle bugs, so how did you find them? Memory profiling? |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1614 +/- ##
==========================================
+ Coverage 66.65% 67.27% +0.61%
==========================================
Files 644 652 +8
Lines 27538 27774 +236
Branches 2925 3013 +88
==========================================
+ Hits 18356 18684 +328
+ Misses 7686 7541 -145
- Partials 1496 1549 +53
☔ View full report in Codecov by Sentry. |
|
I explored how the The segfault occured at becausesrc was NULL with the "distributed_calculator" when the client connects to the server
|
Hi,
i discovered that the
load_datahttps://github.com/actor-framework/actor-framework/blob/0.19.4/libcaf_core/caf/message.cpp#L73 iterates over the placeholder for the actual-size of thetype_id_list.