Commit Graph
1 Commits
Author SHA1 Message Date
Afloat 770856d031 Validate CIL exception section framing (R3.12) (#1499)
A .NET method body's extra sections were read as an exception table whenever their kind was odd, and clauses were read before the section's whole declared size was checked, so unknown sections, cut-off sections and partial clauses could show up as real exception handlers. A section now needs its complete header and declared size, only the exception-table kind (flags masked off) is read as one, it must hold a whole number of clauses, and an unknown kind is reported and skipped while chained sections are still followed.
2026-11-10 22:27:14 +07:00