[kaffe] CharToByteIconv dumps core when used for SHIFT_JIS
Ito Kazumitsu
ito.kazumitsu at hitachi-cable.co.jp
Mon May 5 17:44:01 PDT 2003
In message "Re: [kaffe] CharToByteIconv dumps core when used for SHIFT_JIS"
on 03/04/30, Ito Kazumitsu <ito.kazumitsu at hitachi-cable.co.jp> writes:
> The following patch also helps solve the problem.
I made another patch that works. IMHO, KMALLOC(0) may cause
some problem.
--- libraries/clib/native/CharToByteIconv.c.orig Tue Apr 16 04:14:50 2002
+++ libraries/clib/native/CharToByteIconv.c Tue May 6 09:32:36 2003
@@ -77,7 +77,7 @@
#endif
#ifndef WORDS_BIGENDIAN
- buffer = KMALLOC (icv_inlen);
+ buffer = KMALLOC (icv_inlen+2);
if (!buffer) {
jclass oom;
More information about the kaffe
mailing list