[pcre-dev] [Bug 1295] add 32-bit library

Kezdőlap
Üzenet törlése
Szerző: Zoltan Herczeg
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1295] add 32-bit library
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1295




--- Comment #23 from Zoltan Herczeg <hzmester@???> 2012-10-20 17:49:15 ---
I fixed the issue in study:

 #if defined SUPPORT_UTF || !defined COMPILE_PCRE8
     case OP_XCLASS:
-    cc += GET(cc, 1) - PRIV(OP_lengths)[OP_CLASS];
+    cc += GET(cc, 1);
+    cc -= PRIV(OP_lengths)[OP_CLASS];
     /* Fall through */
 #endif


If GET(cc, 1) < PRIV(OP_lengths)[OP_CLASS], the result overflows in 64 bit mode
(both are unsigned values). Unfortunately I still see crashes in 64 bit mode
(when 32 bit tests are running). Perhaps a similar issue.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email