Evgenii Kliuchnikov
f81d6bc7f0
Modernize tests.
...
Avoid file IO.
Drive-by: drop bro.py and bro_test.py; we do not support it well and likely no one uses it.
PiperOrigin-RevId: 834206605
2025-11-19 02:56:01 -08:00
Evgenii Kliuchnikov
ea5b5c10dd
Drop Py 3.9- support
...
PiperOrigin-RevId: 830342213
2025-11-10 02:18:38 -08:00
Evgenii Kliuchnikov
1406898440
Build and test with PY2.7
...
PiperOrigin-RevId: 811352084
2025-09-25 08:00:20 -07:00
Evgenii Kliuchnikov
9686382ff3
PY: continue renovation of extension
...
Fixed unchecked malloc for "tail" input data.
Fixed inconsistencies in docstrings.
Rewritten "growable buffer" to C-code, so it could run without acquiring GIL.
Breaking changes:
- native object allocation failures now handled at object creation time
- some lower level exceptions (e.g. OOM) are not shadowed by brotli.error
PiperOrigin-RevId: 810813664
2025-09-24 03:52:44 -07:00
Robert Obryk
eb3a31e2d3
add max_length to Python streaming decompression
2025-01-07 16:28:30 +01:00
Brotli
d019271c8b
Copybara import of the project:
...
--
f1bdfaa803 by Robert Obryk <robryk@google.com >:
add size limit to buffer
--
ef8922cee7 by Robert Obryk <robryk@google.com >:
add max_length to Python streaming decompression
PiperOrigin-RevId: 712463460
2025-01-06 03:05:56 -08:00
Robert Obryk
ef8922cee7
add max_length to Python streaming decompression
2025-01-06 11:26:42 +01:00
Justin Ridgewell
5805f99a53
Ensure decompression consumes all input ( #730 )
...
* Ensure decompression consumes all input
If not, it's a corrupt stream.
* Use byte strings
2018-11-12 10:36:00 +01:00
Eugene Kliuchnikov
2c03482569
Fix "memory leak" in python tests ( #652 )
...
OOMs on RPi (1GB)
2018-03-23 02:09:00 +06:00
Alex Nicksay
019091f994
Python: Update bro_test to reference script directly ( #582 )
2017-08-08 10:25:39 +02:00
Eugene Kliuchnikov
1becbbf231
Update ( #569 )
...
* add misssing fclose in `brotli.c`
* add basic tests for python `Decompressor` type
* minor lint fixes in `_brotli.cc`
2017-06-30 13:09:50 +02:00