Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 49253 Details for
Bug 78227
Apache 2.0.52-r2 & 2.0.52-r1 crash during ebuild when is installed gawk 3.1.4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix DFA cache buggery..
gawk-3.1.4-dfacache.patch (text/plain), 1.79 KB, created by
Elfyn McBratney
on 2005-01-22 20:53:24 UTC
(
hide
)
Description:
Patch to fix DFA cache buggery..
Filename:
MIME Type:
Creator:
Elfyn McBratney
Created:
2005-01-22 20:53:24 UTC
Size:
1.79 KB
patch
obsolete
># Taken from Fedora SRPM gawk-3.1.4-4: ># http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS/gawk-3.1.4-4.src.rpm ># ># * Tue Nov 9 2004 Karel Zak <kzak@redhat.com> 3.1.4-2 ># - add dfacache.patch for fix LC_ALL=de_DE.UTF-8 ./gawk '/^[ \t]/ { print }', ># (by Aharon Robbins), #135210, #131498 > >--- gawk-3.1.4/dfa.c.dfacache 2004-11-09 14:42:53.594099744 +0100 >+++ gawk-3.1.4/dfa.c 2004-11-09 14:45:38.661005760 +0100 >@@ -2871,6 +2871,14 @@ > if (MB_CUR_MAX > 1) > { > int remain_bytes, i; >+#if 0 >+ /* >+ * This caching can get things wrong: >+ >+ printf "ab\n\tb\n" | LC_ALL=de_DE.UTF-8 ./gawk '/^[ \t]/ { print }' >+ >+ * should print \tb but doesn't >+ */ > buf_begin -= buf_offset; > if (buf_begin <= (unsigned char const *)begin && (unsigned char const *) end <= buf_end) { > buf_offset = (unsigned char const *)begin - buf_begin; >@@ -2878,6 +2886,7 @@ > buf_end = end; > goto go_fast; > } >+#endif > > buf_offset = 0; > buf_begin = begin; >@@ -2916,7 +2925,9 @@ > mblen_buf[i] = 0; > inputwcs[i] = 0; /* sentinel */ > } >+#if 0 > go_fast: >+#endif > #endif /* MBS_SUPPORT */ > > for (;;) >@@ -2930,7 +2941,7 @@ > s1 = s; > if (d->states[s].mbps.nelem != 0) > { >- /* Can match with a multibyte character( and multi character >+ /* Can match with a multibyte character (and multi character > collating element). */ > unsigned char const *nextp; > >@@ -3668,9 +3679,9 @@ > done: > if (strlen(result)) > { >- dm = (struct dfamust *) malloc(sizeof (struct dfamust)); >+ MALLOC(dm, struct dfamust, 1); > dm->exact = exact; >- dm->must = malloc(strlen(result) + 1); >+ MALLOC(dm->must, char, strlen(result) + 1); > strcpy(dm->must, result); > dm->next = dfa->musts; > dfa->musts = dm;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 78227
:
49252
| 49253