API change: change uint16_t to size_t for user-controlled buffer sizes.
This eliminates the possibility of infinite loops caused by counters overflowing and preventing the output buffer full or input exhausted conditions from being reached.
Showing
- heatshrink.c 6 additions, 6 deletionsheatshrink.c
- heatshrink_decoder.c 3 additions, 3 deletionsheatshrink_decoder.c
- heatshrink_decoder.h 2 additions, 2 deletionsheatshrink_decoder.h
- heatshrink_encoder.c 3 additions, 5 deletionsheatshrink_encoder.c
- heatshrink_encoder.h 2 additions, 2 deletionsheatshrink_encoder.h
- test_heatshrink_dynamic.c 48 additions, 48 deletionstest_heatshrink_dynamic.c
- test_heatshrink_static.c 5 additions, 5 deletionstest_heatshrink_static.c
Please register or sign in to comment