Commit c344bd6
committed
port fix for a segfault: stefan11111/kdrive@0aa5ca4
This fixed an incorrect loop condtion, as it is possible to skip over NUM_PROT when incrementing
This causes a segfault in kdrive, when km->i_prot would have to loop, instead continuing to read out of bounds.
I couldn't get tinyx to also segfault, but that doesn't mean it's impossible. It might happen on different hardware.1 parent feab72c commit c344bd6
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
732 | 735 | | |
733 | 736 | | |
734 | 737 | | |
| |||
754 | 757 | | |
755 | 758 | | |
756 | 759 | | |
757 | | - | |
| 760 | + | |
758 | 761 | | |
759 | 762 | | |
760 | 763 | | |
| |||
0 commit comments