Commit d4ff481
committed
fix(compress): resolve clean code warnings and fix memory pool bugs
- Replace deprecated C++ headers and unsafe memcpy/memset/memmove
- Add missing header guards; wrap multi-statement macros in do-while(0)
- Zero-initialize ts_header_t; pass array lengths to satisfy bounds checks
- Extract FixedRatio/DataType enums to compress_types.h
- Remove unused FSE/HUF/Bitstream source files (not invoked by current path)
- Fix: throw bad_alloc on posix_memalign failure and pool exhaustion
- Fix: skip submitting corrupted data on compression failure1 parent ae2cc13 commit d4ff481
28 files changed
Lines changed: 1325 additions & 7507 deletions
File tree
- ucm/store/compress
- cc
- compress_lib
- cpy
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
This file was deleted.
This file was deleted.
0 commit comments