Skip to content

Commit 2c16b9c

Browse files
committed
Fix #66555: Always false condition in ext/gd/libgd/gdkanji.c
This issue has already been fixed in libgd[1], so we fix PHP's bundled libgd accordingly. [1] <libgd/libgd@aa1d71c>
1 parent 65abdb5 commit 2c16b9c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

NEWS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ PHP NEWS
3232
. Fixed bug #70315 (500 Server Error but page is fully rendered). (cmb)
3333
. Fixed bug #43828 (broken transparency of imagearc for truecolor in
3434
blendingmode). (cmb)
35+
. Fixed bug #66555 (Always false condition in ext/gd/libgd/gdkanji.c). (cmb)
3536

3637
- Intl:
3738
. Partially fixed #72506 (idn_to_ascii for UTS #46 incorrect for long domain
@@ -73,7 +74,7 @@ PHP NEWS
7374
applications). (CVE-2016-5385) (Stas)
7475

7576
- bz2:
76-
. Fixed bug #72447 (Type Confusion in php_bz2_filter_create()). (gogil at
77+
. Fixed bug #72447 (Type Confusion in php_bz2_filter_create()). (gogil at
7778
stealien dot com).
7879
. Fixed bug #72613 (Inadequate error handling in bzread()). (Stas)
7980

ext/gd/libgd/gdkanji.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ han2zen (int *p1, int *p2)
330330
{
331331
if ((*p2 >= 74 && *p2 <= 103) || (*p2 >= 110 && *p2 <= 122))
332332
(*p2)++;
333-
else if (*p2 == 131 && *p2 == 69)
333+
else if (*p2 == 131 || *p2 == 69)
334334
*p2 = 148;
335335
}
336336
else if (handaku && *p2 >= 110 && *p2 <= 122)

0 commit comments

Comments
 (0)