Commit 425a4bc
authored
Fix missing null termination of a string in Getaddrinfo() in websocket_to_posix_proxy utility. (emscripten-core#25829)
`strncpy()` is evil that if the string length exceeds the copy length,
the destination string is left null-terminated. So null terminate
manually.1 parent db7c761 commit 425a4bc
File tree
1 file changed
+1
-0
lines changed- tools/websocket_to_posix_proxy/src
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
| 1497 | + | |
1497 | 1498 | | |
1498 | 1499 | | |
1499 | 1500 | | |
| |||
0 commit comments