]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2750 in SNORT/snort3 from ~SVLASIUK/snort3:pcre_relative to master
authorBhagya Tholpady (bbantwal) <bbantwal@cisco.com>
Tue, 23 Feb 2021 19:59:35 +0000 (19:59 +0000)
committerBhagya Tholpady (bbantwal) <bbantwal@cisco.com>
Tue, 23 Feb 2021 19:59:35 +0000 (19:59 +0000)
Squashed commit of the following:

commit c23a528787f8a0f9d7052e6e0dba7c84b17473ae
Author: Serhii Vlasiuk <svlasiuk@cisco.com>
Date:   Thu Feb 11 18:29:10 2021 +0200

    ips_options: update cursor position for relative pcre

src/ips_options/ips_pcre.cc

index b5812f99a8f29fd2d13158f9f3b079002c1b78e6..eb3abbb638a1174d9b9e10057736fedea93b40bc 100644 (file)
@@ -573,6 +573,7 @@ IpsOption::EvalStatus PcreOption::eval(Cursor& c, Packet* p)
     {
         if ( found_offset > 0 )
         {
+            found_offset += adj;
             c.set_pos(found_offset);
             c.set_delta(found_offset);
         }