From:             kyojee at hotmail dot com
Operating system: Solaris
PHP version:      4.3.2
PHP Bug Type:     GD related
Bug description:  imagettftext does not work

Description:
------------
because below codes

char *next is always NULL.


Reproduce code:
---------------
ext/gd/libgd/gdft.c

line: 890

#ifndef JISX0208
        if (!font->have_char_map_sjis) {
                next = string;
        } else
#endif
                tmpstr = (char *) gdMalloc(BUFSIZ);

        while (*next) {     /* segmenntation fault at here */
                ch = *next;


Expected result:
----------------
#ifndef JISX0208
        if (!font->have_char_map_sjis) {
                next = string;
        } else
#endif
                tmpstr = (char *) gdMalloc(BUFSIZ);
        next = string;  /* my fixed */
        while (*next) {
                ch = *next;



-- 
Edit bug report at http://bugs.php.net/?id=24223&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24223&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24223&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24223&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24223&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24223&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24223&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24223&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24223&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24223&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24223&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24223&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24223&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24223&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24223&r=gnused

Reply via email to