Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
evince
Commits
efadec4f
Commit
efadec4f
authored
Mar 20, 2011
by
Scott Reeves
Committed by
Carlos Garcia Campos
Mar 20, 2011
Browse files
dvi: Another fix for buffer overwrite in dvi-backend
https://bugzilla.gnome.org/show_bug.cgi?id=643882
parent
019c902c
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/dvi/mdvi-lib/afmparse.c
View file @
efadec4f
...
...
@@ -160,7 +160,7 @@ static char *token(FILE *stream)
idx
=
0
;
while
(
ch
!=
EOF
&&
ch
!=
' '
&&
ch
!=
lineterm
&&
ch
!=
'\t'
&&
ch
!=
':'
&&
ch
!=
';'
&&
idx
<
MAX_NAME
)
&&
ch
!=
'\t'
&&
ch
!=
':'
&&
ch
!=
';'
&&
idx
<
(
MAX_NAME
-
1
)
)
{
ident
[
idx
++
]
=
ch
;
ch
=
fgetc
(
stream
);
...
...
@@ -190,7 +190,7 @@ static char *linetoken(FILE *stream)
while
((
ch
=
fgetc
(
stream
))
==
' '
||
ch
==
'\t'
);
idx
=
0
;
while
(
ch
!=
EOF
&&
ch
!=
lineterm
&&
idx
<
MAX_NAME
)
while
(
ch
!=
EOF
&&
ch
!=
lineterm
&&
idx
<
(
MAX_NAME
-
1
)
)
{
ident
[
idx
++
]
=
ch
;
ch
=
fgetc
(
stream
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment