You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SmartDNS crashes due to misaligned memory access in fast_ping.c.
System Information
SmartDNS Version: clone and built on 20240717 with master branch
Steps to Reproduce
Compile SmartDNS with ASan:
CC=clang CFLAGS="-g -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined" make clean
CC=clang CFLAGS="-g -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined" make all -j
cd smartdns/src
CC=clang CFLAGS="-g -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined" make clean
CC=clang CFLAGS="-g -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined" make all -j
cd smartdns/test
CC=clang CFLAGS="-g -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined" make clean
CC=clang CFLAGS="-g -fsanitize=address,undefined -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address,undefined" make all V=1 -j
The smartdns code currently does not strictly adhere to byte alignment, which may lead to degraded performance or exceptions on certain architectures during runtime.
Issue Description
SmartDNS crashes due to misaligned memory access in
fast_ping.c
.System Information
Steps to Reproduce
Logs
server side:
ASan report:
The text was updated successfully, but these errors were encountered: