diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2026-04-21 16:27:44 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-04-22 09:36:32 +0900 |
| commit | a53f3d57d1c70f35534c457de2c471d84a55956a (patch) | |
| tree | a26ea9c427d24674852195befd2cbb7732eea307 /test/objspace | |
| parent | b7eb96eca73f65ec38324b68a645b2841c6a354e (diff) | |
[ruby/erb] Prohibit def_method on marshal-loaded ERB instances
Extends the @_init guard to def_method so that an ERB object created
via Marshal.load (which bypasses initialize) raises ArgumentError
instead of evaluating arbitrary source. def_module and def_class both
delegate to def_method and are covered by the same check.
Co-authored-by: Tristan Madani <TristanInSec@gmail.com>
Diffstat (limited to 'test/objspace')
0 files changed, 0 insertions, 0 deletions
