MCPcopy Create free account
hub / github.com/Hackmanit/Web-Cache-Vulnerability-Scanner / compareLengths

Function compareLengths

pkg/requests.go:187–197  ·  view source on GitHub ↗
(len1 int, len2 int, limit int)

Source from the content-addressed store, hash-verified

185}
186
187func compareLengths(len1 int, len2 int, limit int) bool {
188
189 var diff int
190 if len1 >= len2 {
191 diff = len1 - len2
192 } else {
193 diff = len2 - len1
194 }
195
196 return diff > limit
197}
198
199/* Check if the second response makes sense or the continuation shall be stopped. Stop if body, status code and headers are equal to the default response */
200func stopContinuation(body []byte, statusCode int, headers map[string][]string) bool {

Callers 2

checkPoisoningIndicatorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected