Opened 15 years ago

#35 closed defect (Fixed)

reassemble's output is one byte too long.

Reported by: weasel Owned by: nickm
Priority: Low Milestone:
Component: Mixminion-Client Version: unspeficied
Severity: Keywords:
Cc: weasel Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


[Moved from bugzilla]
Reporter: peter@… (Peter Palfrader)

Opened: 2004-03-25 09:45

% mixminion reassemble -o recvd-2.mp3 pApvY51NHOp4

-rw-rw-r-- 1 weasel weasel 3035637 Mar 25 09:40 recvd-2.mp3
-rw-r--r-- 1 weasel weasel 3035636 Mar 23 10:37 sent.mp3

% tail -c +2 recvd-2.mp3 > r.mp3
% md5sum r.mp3 sent.mp3
71a65570a51442355a96a9e2bdab1fbf r.mp3
71a65570a51442355a96a9e2bdab1fbf sent.mp3

In other words, there is exactly one byte at the start that is too much.

Note that the data returned by Packet.uncompressData's zobj.decompress(payload, maxLength) already is one too long.

[the packets were built with an earlier version of mixminion, the same with wich I filed #32]

To help me fix this, can you tell me _what_ the extra (prepended) byte is?

It's a linefeed.

weasel@valiant:~/mixminion$ hexdump -C r.mp3 | head -n1
00000000 ff fb 90 64 00 00 00 00 00 00 00 00 00 00 00 00 |ÿû.d............|
weasel@valiant:~/mixminion$ hexdump -C recvd-2.mp3 | head -n1
00000000 0a ff fb 90 64 00 00 00 00 00 00 00 00 00 00 00 |.ÿû.d...........|

The newline comes from headerStr which is prepended to message in ClientMain at line 1240:

message = "%s%s" % (headerStr, message)

Should be fixed in CVS; the initial newline will no longer be prepended when sending a message with --deliver-fragments.

[Automatically added by flyspray2trac: Operating System: All]

Child Tickets

Change History (1)

comment:1 Changed 15 years ago by weasel

flyspray2trac: bug closed.

Note: See TracTickets for help on using tickets.