mirror of https://github.com/google/oss-fuzz.git
burntsushi-toml: Fixes out-of-memory crash (#8297)
This commit is contained in:
parent
0b8040e9be
commit
444a4feafe
|
@ -3,6 +3,11 @@ package toml
|
|||
import "bytes"
|
||||
|
||||
func FuzzToml(data []byte) int {
|
||||
|
||||
if len(data) >= 10240 {
|
||||
return 0
|
||||
}
|
||||
|
||||
buf := make([]byte, 0, 2048)
|
||||
|
||||
var m interface{}
|
||||
|
|
Loading…
Reference in New Issue