Skip to content

Commit

Permalink
Fix #66555: Always false condition in ext/gd/libgd/gdkanji.c
Browse files Browse the repository at this point in the history
This issue has already been fixed in libgd[1], so we fix PHP's bundled
libgd accordingly.

[1] <libgd/libgd@aa1d71c>
  • Loading branch information
cmb69 committed Jul 23, 2016
1 parent 65abdb5 commit 2c16b9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ PHP NEWS
. Fixed bug #70315 (500 Server Error but page is fully rendered). (cmb)
. Fixed bug #43828 (broken transparency of imagearc for truecolor in
blendingmode). (cmb)
. Fixed bug #66555 (Always false condition in ext/gd/libgd/gdkanji.c). (cmb)

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

- bz2:
. Fixed bug #72447 (Type Confusion in php_bz2_filter_create()). (gogil at
. Fixed bug #72447 (Type Confusion in php_bz2_filter_create()). (gogil at
stealien dot com).
. Fixed bug #72613 (Inadequate error handling in bzread()). (Stas)

Expand Down
2 changes: 1 addition & 1 deletion ext/gd/libgd/gdkanji.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ han2zen (int *p1, int *p2)
{
if ((*p2 >= 74 && *p2 <= 103) || (*p2 >= 110 && *p2 <= 122))
(*p2)++;
else if (*p2 == 131 && *p2 == 69)
else if (*p2 == 131 || *p2 == 69)
*p2 = 148;
}
else if (handaku && *p2 >= 110 && *p2 <= 122)
Expand Down

0 comments on commit 2c16b9c

Please sign in to comment.