Comments (3)
Woot! I have little time this weekend, but I hope to take a peek soon.
On 4 Apr 2014 17:47, "Marek" [email protected] wrote:
Here's a packet causing a panic in the parsing routine:
package main
import (
"github.com/cloudflare/dns"
"encoding/hex"
)func main() {
packet := "00441553000000010000000000010563646e6a730a636c6f7564666c61726503636f6d0363646e0a636c6f7564666c617265036e657400001c00010000291000000080000000"
data, _ := hex.DecodeString(packet)var msg dns.Msg msg.Unpack(data)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/89
.
from dns.
Does it actually look like a packet or just garbage?
On 4 Apr 2014 17:47, "Marek" [email protected] wrote:
Here's a packet causing a panic in the parsing routine:
package main
import (
"github.com/cloudflare/dns"
"encoding/hex"
)func main() {
packet := "00441553000000010000000000010563646e6a730a636c6f7564666c61726503636f6d0363646e0a636c6f7564666c617265036e657400001c00010000291000000080000000"
data, _ := hex.DecodeString(packet)var msg dns.Msg msg.Unpack(data)
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/89
.
from dns.
Hard to say. Anyway, it looks like it's pretty simple to fix.
On Fri, Apr 4, 2014 at 5:52 PM, Miek Gieben [email protected]:
Does it actually look like a packet or just garbage?
On 4 Apr 2014 17:47, "Marek" [email protected] wrote:Here's a packet causing a panic in the parsing routine:
package main
import (
"github.com/cloudflare/dns"
"encoding/hex"
)func main() {
packet :=
"00441553000000010000000000010563646e6a730a636c6f7564666c61726503636f6d0363646e0a636c6f7564666c617265036e657400001c00010000291000000080000000"data, _ := hex.DecodeString(packet)
var msg dns.Msg
msg.Unpack(data)
—
Reply to this email directly or view it on GitHub<
https://github.com/miekg/dns/issues/89>
.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/89#issuecomment-39586544
.
from dns.
Related Issues (20)
- singleInFlight can cause all future DNS requests to fail HOT 2
- Question: Can this library be used to script DNS changes on a Windows DNS server? HOT 1
- IsFqdn performance issues HOT 3
- `(*dns.OPT).SetDo` ignores several arguments HOT 2
- Potential goroutine leak in server.go HOT 1
- Consider using `netip.Addr` and `netip.Prefix`? HOT 1
- upstream message helper that return overflow errors is not using any of the exported defined errors HOT 1
- Error QUERYDNS read udp 127.0.0.1:49630->127.0.0.1:53: i/o timeout
- Vulnerability of dependency "golang.org/x/net" HOT 1
- $INCLUDE and relative paths HOT 2
- Some question on rndc command
- Decoding of some "special" characters results in \DDD+ HOT 1
- Optional interface for a ResponseWriter to expose Conns HOT 3
- Expose SVCB Service Params fully to clients HOT 2
- Corner case where offset is equal to len(msg), response is truncated without TC bit set and no error is raised HOT 1
- Method for creating wire-format dns.Header from *dns.Msg? HOT 2
- [Query] Type65 aka HTTPS HOT 2
- RFC 2136: Dynamic updates HOT 3
- Add isdn record HOT 1
- Message pack and unpack fails with an empty name in a RR header HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dns.