aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/t1lib-CVE-2010-2642.patch
blob: cd5488958568ec4b23fb201229037b370e273ab1 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/lib/t1lib/parseAFM.c b/lib/t1lib/parseAFM.c
index 6a31d7f..ba64541 100644
--- a/lib/t1lib/parseAFM.c
+++ b/lib/t1lib/parseAFM.c
@@ -199,7 +199,9 @@ static char *token(stream)
     idx = 0;
     
     while (ch != EOF && ch != ' ' && ch != CR  && ch != LF &&
-	   ch != CTRL_Z && ch != '\t' && ch != ':' && ch != ';'){
+	   ch != CTRL_Z && ch != '\t' && ch != ':' && ch != ';'
+     && idx < (MAX_NAME -1))
+    {
       ident[idx++] = ch;
       ch = fgetc(stream);
     } /* while */
@@ -235,7 +237,7 @@ static char *linetoken(stream)
     while ((ch = fgetc(stream)) == ' ' || ch == '\t' ); 
     
     idx = 0;
-    while (ch != EOF && ch != CR  && ch != LF && ch != CTRL_Z) 
+    while (ch != EOF && ch != CR  && ch != LF && ch != CTRL_Z && idx < (MAX_NAME - 1)) 
     {
         ident[idx++] = ch;
         ch = fgetc(stream);
a4fb79dc439cc6dba69f11e6846e2450cc'>teams: Correct chemistry.scm typo....* etc/teams.scm.in (science): Change chemestry.scm to chemistry.scm. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Antero Mejr 2023-05-18etc: gitconfig: Do not enforced signed commits....This change was more invasive than initially thought, and cannot be disabled easily, as raised by a few people. Let's revert it for now. At least the pre-push hook should be deployed automatically and catch any unsigned commits attempted to be pushed to Savannah. * etc/git/gitconfig [commit]: Remove section. Maxim Cournoyer 2023-05-18news: Add entry to 'guix style -S arguments'....* etc/news.scm: Add entry. Ludovic Courtès 2023-05-18doc: Change '--with-configure-flag' example to something that works....Passing '-DBUILD_COMPLEX=OFF' to lapack would eventually lead to a link error. Reported by Florian Pelz <pelzflorian@pelzflorian.de>. * doc/guix.texi (Package Transformation Options): Change '--with-configure-flag' example. * etc/news.scm: Likewise. Ludovic Courtès 2023-05-11teams: Fix script to produce a single X-Debbugs-Cc header....Fixes <https://issues.guix.gnu.org/63378>. * etc/teams.scm.in (cc): Adjust format pattern. (sort-members, member->string): New procedures. (list-members): Refactor in terms of the above procedures. (main): Adjust the output of the 'cc-members-header-cmd' and 'cc-mentors-header-cmd' actions. Reviewed-by: Arun Isaac <arunisaac@systemreboot.net> Maxim Cournoyer 2023-05-07etc: teams: Add sequoia.scm to the rust team....* etc/teams.scm.in (rust): Add gnu/packages/sequoia.scm to the rust team module scope. Efraim Flashner