[BLACKBOX] AW: [BLACKBOX] Zlib under BlackBox?

From: [at]} <Helmut>
Date: Tue, 7 Oct 2008 21:39:09 +0200

----boundary-LibPST-iamunique-693981415_-_-
Content-type: text/plain

Dear Oleg,

about the result error with data size > 32767:

If you change inside ZipInflate the line
        CONST WindowSize = ASH(1, WindowBits);
agains
        CONST WindowSize = 2 * ASH(1, WindowBits);
then it work until 65535.

Or rewritten this line for easier understanding
        CONST WindowsSize = 32768;
agains
        CONST WindowsSize = 65536;

I know that doesn't solve your problem. You need a solution which works with
any length.

It may help you to get a step further...

Please let me know how it is going on about Zlib.

Regards

Helmut Zinn
http://www.zinnamturm.eu


 

> -----Ursprüngliche Nachricht-----
> Von: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
> Cher
> Gesendet: Sonntag, 5. Oktober 2008 09:41
> An: BLACKBOX{([at]})nowhere.xy
> Betreff: [BLACKBOX] Zlib under BlackBox?
>
> Hello All,
>
> Want anyone help me to fix Zlib problems?
> I have taken Zlib sources from here:
> http://www.inf.ethz.ch/personal/felixf/WinAos/WinAos.r1575.zip
>
> Bluebottle ideology implies type LONGINT as 32 bit.
> BB has INTEGER as 32 bit. I entered new type BASEINT,
> it'is base when working with integer numbers,
> and changes of AOS type LONGINT (BB INTEGER is enough).
> And I made some several other changes.
>
> As result:
>
> ZlibDeflate.Compress works fine, on data with small and big size.
> (Tested on file = 18 Mb, all is good)
>
> ZlibInflate.Uncompress works good for data < 32768 bytes
> (= ZlibInflate.WindowSize), and stably returns Zlib.BufError (-5)
> on data > 32768 bytes) (Size of destination buffer is enough!).
>
> Maybe some of the clever people here
> will say me how to fix this problem?
>
> Sources are here: http://stefcr.mgslab.com/files/Zlib.zip
> Thank you.
>
> --
> Oleg N. Cher.
>
>
> ----
> To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-693981415_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBEZWFyIE9sZWcsXHBhcg0KXHBh
cg0KYWJvdXQgdGhlIHJlc3VsdCBlcnJvciB3aXRoIGRhdGEgc2l6ZSA+IDMyNzY3OlxwYXINClxw
YXINCklmIHlvdSBjaGFuZ2UgaW5zaWRlIFppcEluZmxhdGUgdGhlIGxpbmVccGFyDQpcdGFiIENP
TlNUIFdpbmRvd1NpemUgPSBBU0goMSwgV2luZG93Qml0cyk7IFx0YWIgXHBhcg0KYWdhaW5zXHBh
cg0KXHRhYiBDT05TVCBXaW5kb3dTaXplID0gMiAqIEFTSCgxLCBXaW5kb3dCaXRzKTtccGFyDQp0
aGVuIGl0IHdvcmsgdW50aWwgNjU1MzUuXHBhcg0KXHBhcg0KT3IgcmV3cml0dGVuIHRoaXMgbGlu
ZSBmb3IgZWFzaWVyIHVuZGVyc3RhbmRpbmdccGFyDQpcdGFiIENPTlNUIFdpbmRvd3NTaXplID0g
MzI3Njg7XHBhcg0KYWdhaW5zXHBhcg0KXHRhYiBDT05TVCBXaW5kb3dzU2l6ZSA9IDY1NTM2O1xw
YXINClxwYXINCkkga25vdyB0aGF0IGRvZXNuJ3Qgc29sdmUgeW91ciBwcm9ibGVtLiBZb3UgbmVl
ZCBh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Cj4gXHBhcg0KPiAtLVxwYXINCj4gT2xlZyBO
LiBDaGVyLlxwYXINCj4gXHBhcg0KPiBccGFyDQo+IC0tLS1ccGFyDQo+IFRvIHVuc3Vic2NyaWJl
LCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvXHBhcg0KPiBM
SVNUU0VSVkBMSVNUUy5PQkVST04uQ0hccGFyDQpccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5z
dWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8g
TElTVFNFUlZATElTVFMuT0JFUk9OLkNIXHBhcg0KfQ=
----boundary-LibPST-iamunique-693981415_-_---
Received on Tue Oct 07 2008 - 21:39:09 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:53 UTC