Module: Contrast::Extension::Assess::ContrastMarshal
- Defined in:
- lib/contrast/extension/assess/marshal.rb
Overview
Used for aliasing
Instance Method Summary collapse
Instance Method Details
#cs__marshal_load(source) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/contrast/extension/assess/marshal.rb', line 65 def cs__marshal_load source # Do the protect Contrast::Extension::Assess::MarshalPropagator.cs__load_protect(source) if source # call the original result = Marshal.load(source) # rubocop:disable Security/MarshalLoad # Do the assess tracked = Contrast::Agent::Assess::Tracker::PROPERTIES_HASH.tracked?(source) if source skip = Contrast::Agent::Patching::Policy::Patch.skip_assess_analysis? if tracked Contrast::Extension::Assess::MarshalPropagator.cs__load_assess(source, result) if skip # return original result end |