File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ particular when it is serialized.
135
135
136
136
25. Remove a duplication typo in pcre2_tables.c
137
137
138
+ 26. Correct an incorrect cast in pcre2_valid_utf.c
139
+
138
140
139
141
Version 10.23 14-February-2017
140
142
------------------------------
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language.
7
7
8
8
Written by Philip Hazel
9
9
Original API code Copyright (c) 1997-2012 University of Cambridge
10
- New API code Copyright (c) 2016 University of Cambridge
10
+ New API code Copyright (c) 2016-2017 University of Cambridge
11
11
12
12
-----------------------------------------------------------------------------
13
13
Redistribution and use in source and binary forms, with or without
@@ -142,20 +142,20 @@ for (p = string; length > 0; p++)
142
142
143
143
if (c < 0xc0 ) /* Isolated 10xx xxxx byte */
144
144
{
145
- * erroroffset = (int )(p - string );
145
+ * erroroffset = (PCRE2_SIZE )(p - string );
146
146
return PCRE2_ERROR_UTF8_ERR20 ;
147
147
}
148
148
149
149
if (c >= 0xfe ) /* Invalid 0xfe or 0xff bytes */
150
150
{
151
- * erroroffset = (int )(p - string );
151
+ * erroroffset = (PCRE2_SIZE )(p - string );
152
152
return PCRE2_ERROR_UTF8_ERR21 ;
153
153
}
154
154
155
155
ab = PRIV (utf8_table4 )[c & 0x3f ]; /* Number of additional bytes (1-5) */
156
156
if (length < ab ) /* Missing bytes */
157
157
{
158
- * erroroffset = (int )(p - string );
158
+ * erroroffset = (PCRE2_SIZE )(p - string );
159
159
switch (ab - length )
160
160
{
161
161
case 1 : return PCRE2_ERROR_UTF8_ERR1 ;
You can’t perform that action at this time.
0 commit comments