Commit 3c22676
committed
Fix the
This also a breaking change because the `unsafe` `open` function
did not take the correct lifetime.
It think it's an acceptable breaking change because the previous behaviour was buggy
and any code that depends on it likely has a use after free.Allocation lifetime in File::open
1 parent b3a7371 commit 3c22676
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
613 | 614 | | |
614 | 615 | | |
615 | 616 | | |
| 617 | + | |
616 | 618 | | |
617 | 619 | | |
618 | 620 | | |
| |||
803 | 805 | | |
804 | 806 | | |
805 | 807 | | |
806 | | - | |
| 808 | + | |
807 | 809 | | |
808 | 810 | | |
809 | 811 | | |
| |||
820 | 822 | | |
821 | 823 | | |
822 | 824 | | |
| 825 | + | |
823 | 826 | | |
824 | 827 | | |
825 | 828 | | |
| |||
0 commit comments