diff options
author | infirit <[email protected]> | 2014-12-10 00:58:36 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-10 00:58:36 +0100 |
commit | a828cb1a5c0835d08a17c86f64d571436f93f980 (patch) | |
tree | 6ad1a50b5854ffe240a46f2572b170c599efbfd1 /backend/dvi/mdvi-lib/afmparse.c | |
parent | b2d02d6471176fdb0e42dbe05ffaee90a933a239 (diff) | |
download | atril-a828cb1a5c0835d08a17c86f64d571436f93f980.tar.bz2 atril-a828cb1a5c0835d08a17c86f64d571436f93f980.tar.xz |
backends: Fix several security issues in the dvi-backend.
See CVE-2010-2640, CVE-2010-2641, CVE-2010-2642 and CVE-2010-2643.
Taken from evince commit: d4139205b010ed06310d14284e63114e88ec6de2
From: José Aliste <[email protected]>
Diffstat (limited to 'backend/dvi/mdvi-lib/afmparse.c')
-rw-r--r-- | backend/dvi/mdvi-lib/afmparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/dvi/mdvi-lib/afmparse.c b/backend/dvi/mdvi-lib/afmparse.c index 164366b0..361e23d6 100644 --- a/backend/dvi/mdvi-lib/afmparse.c +++ b/backend/dvi/mdvi-lib/afmparse.c @@ -160,7 +160,7 @@ static char *token(FILE *stream) idx = 0; while (ch != EOF && ch != ' ' && ch != lineterm - && ch != '\t' && ch != ':' && ch != ';') + && ch != '\t' && ch != ':' && ch != ';' && idx < MAX_NAME) { ident[idx++] = ch; ch = fgetc(stream); |