Project

General

Profile

« Previous | Next » 

Revision c626c201

Added by NARUSE, Yui about 1 year ago

merge revision(s) 01bfd1a2bf013a9ed92a9722ac5228187e05e6a8,1c120efe02d079b0a1dea573cf0fd7978d9cc857,31378dc0969f4466b2122d730b7298dd7004acdf: [Backport #20228] (#10301)

Fix memory leak in OnigRegion when match raises

    [Bug #20228]

    rb_reg_onig_match can raise a Regexp::TimeoutError, which would cause
    the OnigRegion to leak.

    Fix memory leak in stk_base when Regexp timeout

    [Bug #20228]

    If rb_reg_check_timeout raises a Regexp::TimeoutError, then the stk_base
    will leak.

    Add memory leak test for Regexp timeout

    [Bug #20228]