Commit c5dd301
authored
TSCBasic: correct a use-after-free on Windows (#232)
This corrects a use-after-free caused by a pointer escape. The lifetime
of the pointer is not guaranteed, and the OS may free the pointer
early, particularly with OSSA. Push the handling into the closure to
ensure that the lifetime is extended for the duration.1 parent 4c4ad66 commit c5dd301
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
734 | | - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
735 | 740 | | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | 741 | | |
741 | 742 | | |
742 | 743 | | |
| |||
0 commit comments