Open MageWeiG opened 2 months ago
Closures can leak memory if they are constructed such that they refer to themselves. In other words, it is possible to create "memory loops" in Rhai that cannot be automatically collected.
This is one of the problems with closures that usually require a GC to solve, as in many scripting languages.
Not very sure if this case falls under this scenario, so I'm labeling it as a bug. Otherwise it is a known problem.
The vulnerThe vulnerability error information is as followsability error information is as follows:
This vulnerability was found when using ossfuzz to test scripting fuzzer, the crash sample is attached. leak-86acaf06bf0e14a5179c477b3b2189df823ba940.zip