Commit c705bec
committed
Fix cram_encode fuzzer issue caused by negative reference lengths.
Introduced in 24e4e31 with the cache of the LN_length field. We now
validate this as positive. The check in cram_encode.c should now not
be necessary, but it's fixed in two places incase we ever get this
cropping up via another route.
Credit to OSS_Fuzz
Fixes oss-fuzz issue 3829222411 parent a662866 commit c705bec
3 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3247 | 3247 | | |
3248 | 3248 | | |
3249 | 3249 | | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
3250 | 3254 | | |
3251 | 3255 | | |
3252 | 3256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3691 | 3691 | | |
3692 | 3692 | | |
3693 | 3693 | | |
3694 | | - | |
| 3694 | + | |
| 3695 | + | |
3695 | 3696 | | |
3696 | 3697 | | |
3697 | 3698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2790 | 2790 | | |
2791 | 2791 | | |
2792 | 2792 | | |
2793 | | - | |
| 2793 | + | |
2794 | 2794 | | |
2795 | 2795 | | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
2796 | 2800 | | |
2797 | 2801 | | |
2798 | 2802 | | |
| |||
5818 | 5822 | | |
5819 | 5823 | | |
5820 | 5824 | | |
| 5825 | + | |
| 5826 | + | |
5821 | 5827 | | |
5822 | 5828 | | |
5823 | 5829 | | |
| |||
0 commit comments