Bugzilla – Attachment 72050 Details for
Bug 154848
kakasi-2.3.4-392: array subscript out of range
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
bugzilla-154848-array-subscript-out-of-range.patch
bugzilla-154848-array-subscript-out-of-range.patch (text/plain), 1.15 KB, created by
Mike Fabian
on 2006-03-09 16:57:13 UTC
(
hide
)
Description:
bugzilla-154848-array-subscript-out-of-range.patch
Filename:
MIME Type:
Creator:
Mike Fabian
Created:
2006-03-09 16:57:13 UTC
Size:
1.15 KB
patch
obsolete
>diff -ru kakasi-2.3.4.orig/lib/libk2.c kakasi-2.3.4/lib/libk2.c >--- kakasi-2.3.4.orig/lib/libk2.c 2001-01-16 08:51:47.000000000 +0100 >+++ kakasi-2.3.4/lib/libk2.c 2006-03-09 17:48:06.000000000 +0100 >@@ -127,7 +127,7 @@ > "^", "\"", "_", "(maru)", "", ""}; > > >-#define k2rom_buflen 10 >+#define k2rom_buflen 11 > > static int > k2rom(c, n, type) >@@ -154,7 +154,7 @@ > index_made = 1; > } > >- buffer[k2rom_buflen] = '\0'; clen = k2rom_buflen; >+ buffer[k2rom_buflen-1] = '\0'; clen = k2rom_buflen-1; > for (i = 0; i < k2rom_buflen; ++ i) { > c1 = c[i].c1; > if ((0 < c1) && (c1 < 0x20)) >diff -ru kakasi-2.3.4.orig/src/k2.c kakasi-2.3.4/src/k2.c >--- kakasi-2.3.4.orig/src/k2.c 2001-01-16 08:51:47.000000000 +0100 >+++ kakasi-2.3.4/src/k2.c 2006-03-09 17:51:18.000000000 +0100 >@@ -127,7 +127,7 @@ > "^", "\"", "_", "(maru)", "", ""}; > > >-#define k2rom_buflen 10 >+#define k2rom_buflen 11 > > static int > k2rom(c, n, type) >@@ -154,7 +154,7 @@ > index_made = 1; > } > >- buffer[k2rom_buflen] = '\0'; clen = k2rom_buflen; >+ buffer[k2rom_buflen-1] = '\0'; clen = k2rom_buflen-1; > for (i = 0; i < k2rom_buflen; ++ i) { > c1 = c[i].c1; > if ((0 < c1) && (c1 < 0x20))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 154848
: 72050