Remembering (ok, not really Sarah) Marshal
summary
A safer Marshal reader parses the tag/length/value stream into an AST and uses a visitor to transform nodes into Ruby objects while enforcing permits class/symbol/ivar checks and denying unknown constants or instance variables before any user code runs. It handles links, compact integer encodings (up to 32‑bit in five bytes), and frozen string sharing, is slower and intentionally incomplete, and is parser + visitor inspired by Psych and included in rubygems 3.5 (Ruby 3.3).
AI-written summary · about
chapters (5)
- 0:00Introduction and Marshall overview
- 6:46Binary format deep dive
- 14:05Security risks of Marshall
- 19:47Making Marshall safer
- 27:17Conclusion and Q&A








