Repository navigation
Commit 2951dba
committed
tests: copy the resolver address pointer out
build_addr() copies the pointer out of entry->h_addr_list with memcpy
before dereferencing it. The resolver's array is not pointer aligned on
macOS, so loading the char* in place is undefined behavior and UBSan
flags it on any run that reaches the gethostbyname() path.1 parent 04d4feb commit 2951dba
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
497 | 500 | | |
498 | 501 | | |
499 | 502 | | |
| |||
0 commit comments