Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnslookup crashes on some DNSCrypt reuqests #79

Open
ameshkov opened this issue Sep 11, 2024 · 0 comments
Open

dnslookup crashes on some DNSCrypt reuqests #79

ameshkov opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ameshkov
Copy link
Owner

dnslookup example.org sdns://AQcAAAAAAAAAEjQ1LjE1My4xODcuOTY6NDM0MyAwkzvlkzabRkYs-RrxrcuyTjr9R73mBsx1Y-Ud2o-Whx8yLmRuc2NyeXB0LWNlcnQuc3RoLWRuc2NyeXB0LXNl
dnslookup 1.9.1
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x4 pc=0x104b621a0]

goroutine 1 [running]:
github.com/ameshkov/dnscrypt/v2.(*Client).DialStamp(0x14000154090?, {{0x14000026168, 0x12}, {0x1400003019d, 0x20, 0x40}, {0x0, 0x0, 0x0}, {0x140000225c0, ...}, ...})
        github.com/ameshkov/dnscrypt/[email protected]/client.go:78 +0x1c0
github.com/ameshkov/dnscrypt/v2.(*Client).Dial(0x14000152000?, {0x14000154090?, 0x140a1a1c7dc?})
        github.com/ameshkov/dnscrypt/[email protected]/client.go:54 +0xfc
github.com/AdguardTeam/dnsproxy/upstream.(*dnsCrypt).resetClient(0x1400001fc20)
        github.com/AdguardTeam/[email protected]/upstream/upstream_dnscrypt.go:93 +0xf4
github.com/AdguardTeam/dnsproxy/upstream.(*dnsCrypt).exchangeDNSCrypt(0x1400001fc20, 0x14000152090)
        github.com/AdguardTeam/[email protected]/upstream/upstream_dnscrypt.go:67 +0x14c
github.com/AdguardTeam/dnsproxy/upstream.(*dnsCrypt).Exchange(0x1400001fc20, 0x16b49b432?)
        github.com/AdguardTeam/[email protected]/upstream/upstream_dnscrypt.go:34 +0x24
main.main()
        github.com/ameshkov/dnslookup/main.go:150 +0xbc4
@ameshkov ameshkov added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant