mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-22 22:10:54 +00:00
Treat all strings from read buffers as gc-tainted
Rule: Copies must be made before retaining the string.
This commit is contained in:
parent
fdbcfe98dd
commit
43ecbff656
6 changed files with 37 additions and 17 deletions
|
@ -27,6 +27,10 @@ func New4KByteBuffer() interface{} {
|
|||
return make([]byte, 0, 4096)
|
||||
}
|
||||
|
||||
func copyString(s string) string {
|
||||
return string([]byte(s))
|
||||
}
|
||||
|
||||
func SealRequest(form url.Values) (url.Values, error) {
|
||||
var nonce [24]byte
|
||||
var err error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue