Commit b9d1432
authored
[flang-rt][device] Use snprintf result for length (llvm#172239)
The buffer might not be null terminated on the device and result in 1
byte invalid read when trying to get the length.1 parent adaca13 commit b9d1432
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
0 commit comments