Commit Graph

2 Commits

Author SHA1 Message Date
Lorenz Junglas
2956af789e Fix AmbiguousMatch Exception when grabbing Gen2GcCallback (#4215)
Explicitly, specifying the signature types fixes it.
Also make sure this is no longer a silent error, if this fails after a .NET update we want to know and fix immediately.
2026-03-04 10:39:17 +00:00
Lorenz Junglas
bc36ace71e Fix array pool use after free exploit (#4161)
* ! Reimplement SharedArrayPool because it is internal in .net runtime

* ! Expose PublicArrayPool that maps to our copy of SharedArrayPool

* ! CodeGenerator that remaps System.Buffers.ArrayPool.Shared calls to Sandbox.PublicArrayPool

* ! Don't run ArrayPoolUpgrader in full engine builds

* ! Add tests that verifies ArrayPool.Shared replacements

* ! Remove ArrayPool.Shared from whitelist

* ! Build AST from nodes instead of parsing text

* ! Use Reflection to grab Gen2GcCallback instead of event polling
2026-03-03 19:34:26 +00:00