Open ignoramous opened 3 weeks ago
If it helps, managed to grab a str(query) from a recent crash log:
;; opcode: QUERY, status: NOERROR, id: 0
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version 0; flags:; udp: 4096
; PADDING: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
;; QUESTION SECTION:
;github.com. IN HTTPS
thanks for that. This indeed needs a fix. Maybe I have the cycles this weekend
A crash report from our app points to a nil ptr whilst iterating over Extra RRs:
https://github.com/miekg/dns/blob/b77d1ed8e9282cadf21c4124f53a660fed55c8ca/defaults.go#L147-L157
Unsure if it is incorrect use of the lib by our code, or something that's indicative of other issues (as I see miekg/dns codebase accessing struct fields ex:
Extra[x].Header()
all too often).(from: https://github.com/celzero/firestack/issues/111)