The ipc messages get truncated with binary data

Bug #603409 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rootin Tootin
Fix Released
Critical
Unassigned

Bug Description

When sending binary data over ipc, it sometimes gets truncated.

Revision history for this message
Matt Jones (workhorsy) wrote :

This was caused by us using tango.stdc.stringz.toStringz to convert from a D string to a C string. The C Stringz is terminated by a null character "\0". The problem is that binary data can have "\0" anywhere is wants. So it would see these and think the string was shorter than it actually was.

The solution is to use .prt to convert char[] to char*, and send the length.

Matt Jones (workhorsy)
Changed in rester:
status: Confirmed → Fix Committed
Matt Jones (workhorsy)
Changed in rester:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.