Skip to content
  • Daniel Elstner's avatar
    :Pattern): Let's be paranoid and use g_new0() rather than plain g_new() to · fc04185d
    Daniel Elstner authored
    * src/pcreshell.cc (Pattern::Pattern): Let's be paranoid and
    use g_new0() rather than plain g_new() to allocate ovector_.
    (Pattern::get_substring_bounds): More paranoia: assert that
    the index argument is within the allowed range.
    (Pattern::get_substring): Call get_substring_bounds() to get the
    boundary offsets in order to take advantage of the error checking.
    fc04185d
To find the state of this project's repository at the time of any of these versions, check out the tags.