summaryrefslogtreecommitdiff
path: root/app-text/chasen/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/chasen/files
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/chasen/files')
-rw-r--r--app-text/chasen/files/chasen-2.4.4-cve-2011-4000.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-text/chasen/files/chasen-2.4.4-cve-2011-4000.patch b/app-text/chasen/files/chasen-2.4.4-cve-2011-4000.patch
new file mode 100644
index 000000000000..61480622e40a
--- /dev/null
+++ b/app-text/chasen/files/chasen-2.4.4-cve-2011-4000.patch
@@ -0,0 +1,21 @@
+diff --git a/lib/chalib.c b/lib/chalib.c
+index 5d79e13..cddf51b 100644
+--- a/lib/chalib.c
++++ b/lib/chalib.c
+@@ -306,9 +306,14 @@ chasen_sparse_main(char *input, FILE *output)
+ */
+ while (*input) {
+ int c = 0, len, cursor;
+- if ((crlf = strpbrk(input, "\r\n")) == NULL)
++ if ((crlf = strpbrk(input, "\r\n")) == NULL) {
+ len = strlen(input);
+- else {
++ if (len >= CHA_INPUT_SIZE) {
++ len = CHA_INPUT_SIZE - 1;
++ crlf = input + CHA_INPUT_SIZE - 2;
++ c = 0;
++ }
++ } else {
+ len = crlf - input;
+ c = *crlf;
+ *crlf = '\0';