On 2011-12-09 stompdagg...@yahoo.com wrote:
> I'm writing a c++ program that takes a sql text file compressed in
> lzma (created by running lzma -9 <file>) and unlzma it. but for some
> reason the result file is different, see here:
> http://paste.pocoo.org/show/518724/ one of the line is cut and a 1
> char is has been added to some other ones. the relevant code can be
> found here: http://paste.pocoo.org/show/518725/

Maybe the problem happens if the output buffer is filled partially and
the input buffer becomes empty. After getting more input, the contents
of the partially filled output buffer is lost.

There is also a problem that the code doesn't check that the decoding
ends with LZMA_STREAM_END. This means that you won't detect if the file
is truncated.

The code may read past the end of the output output buffer (dDataArr)
when writing the data to the file on line 38. It could be better to
omit the memset on line 27 and use mystream.write instead of operator<<.

> OT: the list's registering procedure is very unclear, it would be
> wise to make the return make more clearer as it took me few mails to
> get registered and understand I'm registered, I'm registered to
> another few lists so I can say it can be done.

I'm sorry to hear that. I cannot affect how the actual subscribing is
done over email. My hosting provider has Majordomo and that's what I
have to use (or move the list elsewhere). I can improve the
instructions on tukaani.org web site if you can explain what should be
clarified. Thanks.

-- 
Lasse Collin  |  IRC: Larhzu @ IRCnet & Freenode

Reply via email to