Can not decompress files created with BrotliCompressBuffer from source larger than 0x800000 bytes #59

Closed
opened 2026-01-29 20:30:37 +00:00 by claunia · 1 comment
Owner

Originally created by @MacGritsch on GitHub (Oct 27, 2015).

Hi,

as title says, if I compress a allocated (zeroed) buffer of (0x800000 + 1) bytes, the result of BrotliCompressBuffer can not be decompressed using BrotliDecompressBuffer.
As there are no error-codes or messages, I dont know what the problem is.

testing under OS X 10.10.5

thank you

Originally created by @MacGritsch on GitHub (Oct 27, 2015). Hi, as title says, if I compress a allocated (zeroed) buffer of (0x800000 + 1) bytes, the result of BrotliCompressBuffer can not be decompressed using BrotliDecompressBuffer. As there are no error-codes or messages, I dont know what the problem is. testing under OS X 10.10.5 thank you
Author
Owner

@MacGritsch commented on GitHub (Oct 27, 2015):

ok, now I see that only BrotliDecompressedSize does not work. Compressing itself works fine if I manually set the size.

@MacGritsch commented on GitHub (Oct 27, 2015): ok, now I see that only BrotliDecompressedSize does not work. Compressing itself works fine if I manually set the size.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#59