Commit abd1d7d
committed
This closes issue #30. Thanks to [Arron](https://github.com/boxerab) for highlighting this issue.
Now there is additional 8 bytes in front of the codeblock buffer at the decoder. This extra buffer is a protection against the VLC decoder reading from before the start of the cleanup pass, which can happen because we are reading 4 bytes from the VLC segment at a time.
Additional improvements:
1. Bug fix in ojph_block_encoder.
2. Hardened the code by not decoding incomplete codeblocks.1 parent a27e7d6 commit abd1d7d
File tree
4 files changed
+22
-12
lines changed- src/core
- codestream
- coding
- common
4 files changed
+22
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2939 | 2939 | | |
2940 | 2940 | | |
2941 | 2941 | | |
2942 | | - | |
2943 | 2942 | | |
2944 | 2943 | | |
2945 | | - | |
2946 | | - | |
2947 | | - | |
2948 | 2944 | | |
2949 | 2945 | | |
2950 | 2946 | | |
| |||
3019 | 3015 | | |
3020 | 3016 | | |
3021 | 3017 | | |
3022 | | - | |
3023 | | - | |
3024 | | - | |
| 3018 | + | |
| 3019 | + | |
| 3020 | + | |
| 3021 | + | |
3025 | 3022 | | |
3026 | | - | |
| 3023 | + | |
| 3024 | + | |
3027 | 3025 | | |
3028 | 3026 | | |
3029 | 3027 | | |
| |||
3270 | 3268 | | |
3271 | 3269 | | |
3272 | 3270 | | |
3273 | | - | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
3274 | 3279 | | |
3275 | 3280 | | |
3276 | 3281 | | |
| |||
3689 | 3694 | | |
3690 | 3695 | | |
3691 | 3696 | | |
3692 | | - | |
| 3697 | + | |
3693 | 3698 | | |
3694 | | - | |
| 3699 | + | |
| 3700 | + | |
3695 | 3701 | | |
3696 | 3702 | | |
3697 | 3703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| 716 | + | |
716 | 717 | | |
717 | 718 | | |
718 | 719 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments