Bug #66555 [Opn->Csd]: Always false condition in ext/gd/libgd/gdkanji.c

From: Date: Sat, 23 Jul 2016 15:11:43 +0000
Subject: Bug #66555 [Opn->Csd]: Always false condition in ext/gd/libgd/gdkanji.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202529@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66555&edit=1 ID: 66555 Updated by: cmb@php.net Reported by: mathew1800 at gmail dot com Summary: Always false condition in ext/gd/libgd/gdkanji.c -Status: Open +Status: Closed Type: Bug Package: GD related Operating System: Irrelevant PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmb Revision: http://git.php.net/?p=php-src.git;a=commit;h=2c16b9cf62072afefb9a318f4a503bb9335f8537 Log: Fix #66555: Always false condition in ext/gd/libgd/gdkanji.c Previous Comments: ------------------------------------------------------------------------ [2014-01-22 20:08:57] mathew1800 at gmail dot com Description: ------------ See: https://github.com/php/php-src/blob/master/ext/gd/libgd/gdkanji.c#L333 You should see the lines: if (daku) { if ((*p2 >= 74 && *p2 <= 103) || (*p2 >= 110 && *p2 <= 122)) (*p2)++; else if (*p2 == 131 && *p2 == 69) *p2 = 148; } "else if (*p2 == 131 && *p2 == 69)" will always be false. Test script: --------------- Not necessary ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66555&edit=1

« previous php.bugs (#202529) next »