Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:ARM
t1lib
t1lib-5.1.2-afm-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File t1lib-5.1.2-afm-fix.patch of Package t1lib
Index: t1lib-5.1.2/lib/t1lib/parseAFM.c =================================================================== --- t1lib-5.1.2.orig/lib/t1lib/parseAFM.c 2012-04-19 10:48:55.818038155 +0200 +++ t1lib-5.1.2/lib/t1lib/parseAFM.c 2012-04-19 10:50:08.689549026 +0200 @@ -199,7 +199,8 @@ idx = 0; while (ch != EOF && ch != ' ' && ch != CR && ch != LF && - ch != CTRL_Z && ch != '\t' && ch != ':' && ch != ';' && idx < MAX_NAME){ + ch != CTRL_Z && ch != '\t' && ch != ':' && ch != ';' && + idx < (MAX_NAME - 1)){ ident[idx++] = ch; ch = fgetc(stream); } /* while */ @@ -235,7 +236,8 @@ 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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor