[pcre-dev] [Bug 2365] New: check_wordboundary does not expli…

Αρχική Σελίδα
Delete this message
Συντάκτης: admin
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: [pcre-dev] [Bug 2365] New: check_wordboundary does not explicitly set zero flag
https://bugs.exim.org/show_bug.cgi?id=2365

            Bug ID: 2365
           Summary: check_wordboundary does not explicitly set zero flag
           Product: PCRE
           Version: N/A
          Hardware: Other
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: mike.munday@???
                CC: pcre-dev@???


Created attachment 1166
--> https://bugs.exim.org/attachment.cgi?id=1166&action=edit
Fix

The OP_WORD_BOUNDARY/OP_NOT_WORD_BOUNDARY implementation calls the fast
function check_wordboundary expecting it to set the zero flag (SLJIT_SET_Z).
The function never explicitly sets the flag though. I presume this works on
x86_64 because the xor instruction sets the zero flag regardless of whether it
is requested or not.

I've attached a patch that fixes the issue for me on the architecture I am
trying to port the PCRE2 JIT to (IBM Z).

--
You are receiving this mail because:
You are on the CC list for the bug.