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);
>Mathieu Othacehe 2022-01-20gnu: pulseview: Fix build...* gnu/packages/patches/pulseview-glib-2.68.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/electronics.scm (pulseview): Register it. Also disable the tests which are failing and remove a trailing #t. Mathieu Othacehe 2022-01-20gnu: libsigrok: Fix build....* gnu/packages/electronics.scm (libsigrok)[propagated-inputs]: Use glibmm-2.64 instead of glibmm. Mathieu Othacehe 2022-01-15gnu: libsigrokdecode: Fix build with python 3.9....* gnu/packages/patches/libsigrokdecode-python3.9-fix.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/electronics.scm (libsigrokdecode)[native-inputs]: Add automake, autoconf. [source](patches): New field. Danny Milosavljevic 2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès 2021-06-14gnu: Rename qtbase to qtbase-5....This change was automated via the following command: $ git ls-files | xargs sed -i 's/,qtbase)/,qtbase-5)/g' $ git ls-files | xargs sed -i 's/inherit qtbase)/inherit qtbase-5)/g' $ git ls-files | xargs sed -i 's/package-version qtbase)/package-version qtbase-5)/g' $ git checkout etc # to clear some spurious changes This is done so the qtbase package can be upgraded to version 6 in the following commit. Maxim Cournoyer 2021-04-20gnu: xoscope: Update to 2.3....* gnu/packages/electronics.scm (xoscope): Update to 2.3. [native-inputs]: Add m4. [inputs]: Substitute gtk+ for gtk+-2. Tobias Geerinckx-Rice 2021-03-09gnu: sigrok-cli: Update to 0.7.2....* gnu/packages/electronics.scm (sigrok-cli): Update to 0.7.2. Tobias Geerinckx-Rice 2021-02-19gnu: Add xoscope....* gnu/packages/electronics.scm (xoscope): New variable. Leo Famulari 2021-02-19gnu: Add comedilib....* gnu/packages/electronics.scm (comedilib): New variable. Leo Famulari