We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 048a7b8 commit b2410d0Copy full SHA for b2410d0
1 file changed
dnscrypt-proxy/oblivious_doh.go
@@ -79,6 +79,9 @@ func parseODoHTargetConfigs(configs []byte) ([]ODoHTargetConfig, error) {
79
}
80
configVersion := binary.BigEndian.Uint16(configs[offset : offset+2])
81
configLength := binary.BigEndian.Uint16(configs[offset+2 : offset+4])
82
+ if offset+4+int(configLength) > len(configs) {
83
+ break
84
+ }
85
if configVersion == odohVersion || configVersion == odohTestVersion {
86
if configVersion != odohVersion {
87
dlog.Debugf("Server still uses the legacy 0x%x ODoH version", configVersion)
0 commit comments