MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / detectSQLInjectionOne

Function detectSQLInjectionOne

internal/waf/injectionutils/utils_sqli.go:95–106  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

93}
94
95func detectSQLInjectionOne(input string) bool {
96 if len(input) == 0 {
97 return false
98 }
99
100 var fingerprint [8]C.char
101 var fingerprintPtr = (*C.char)(unsafe.Pointer(&fingerprint[0]))
102 var cInput = C.CString(input)
103 defer C.free(unsafe.Pointer(cInput))
104
105 return C.libinjection_sqli(cInput, C.size_t(len(input)), fingerprintPtr) == 1
106}

Callers 1

DetectSQLInjectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected