PHP :: Bug #24223 :: imagettftext does not work
| Bug #24223 | imagettftext does not work | ||||
|---|---|---|---|---|---|
| Submitted: | 2003-06-17 08:12 UTC | Modified: | 2003-06-17 08:38 UTC | ||
| From: | kyojee at hotmail dot com | Assigned: | iliaa (profile) | ||
| Status: | Closed | Package: | GD related | ||
| PHP Version: | 4.3.2 | OS: | Solaris | ||
| Private report: | No | CVE-ID: | None | ||
[2003-06-17 08:12 UTC] kyojee at hotmail dot com
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;
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-06-17 08:38 UTC] iliaa@php.net