Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 512102 Details for
Bug 642756
media-gfx/fontforge-20170731-r2 on sparc - "Contextual chaining tables don't crash" crashes (SIGBUS)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix gethex()
fontforge-unaligned.patch (text/plain), 582 bytes, created by
Rolf Eike Beer
on 2017-12-30 22:18:51 UTC
(
hide
)
Description:
fix gethex()
Filename:
MIME Type:
Creator:
Rolf Eike Beer
Created:
2017-12-30 22:18:51 UTC
Size:
582 bytes
patch
obsolete
>fix unaligned access in gethex() > >--- a/fontforge/sfd.c 2017-12-30 23:11:52.799232125 +0100 >+++ b/fontforge/sfd.c 2017-12-30 23:12:27.339230966 +0100 >@@ -3393,6 +3393,7 @@ > static int gethex(FILE *sfd, uint32 *val) { > char tokbuf[100]; int ch; > char *pt=tokbuf, *end = tokbuf+100-2; >+ uint32 u; > > while ( isspace(ch = nlgetc(sfd))); > if ( ch=='#' ) >@@ -3416,7 +3417,8 @@ > } > *pt='\0'; > ungetc(ch,sfd); >- *val = strtoul(tokbuf,NULL,16); >+ u = strtoul(tokbuf,NULL,16); >+ memcpy(val, &u, sizeof(u)); > return( pt!=tokbuf?1:ch==EOF?-1: 0 ); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 642756
:
512092
|
512094
| 512102