Commit e9607db
authored
Rollup merge of rust-lang#155774 - joboet:cstring_array_null, r=jhpratt
std: maintain `CStringArray` null-termination even if `Vec::push` panics
Fixes rust-lang#155748 by performing the `push` of the new null terminator before overwriting the previous one.1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments