summaryrefslogtreecommitdiff
path: root/media-gfx/fontforge/files/20170731-gethex-unaligned.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-05-14 11:09:11 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-05-14 11:09:11 +0100
commitdeba8115d2c2af26df42966b91ef04ff4dd79cde (patch)
tree9a48f42594e1a9e6b2020d5535a784314434d7a7 /media-gfx/fontforge/files/20170731-gethex-unaligned.patch
parent38423c67c8a23f6a1bc42038193182e2da3116eb (diff)
gentoo resync : 14.05.2020
Diffstat (limited to 'media-gfx/fontforge/files/20170731-gethex-unaligned.patch')
-rw-r--r--media-gfx/fontforge/files/20170731-gethex-unaligned.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/media-gfx/fontforge/files/20170731-gethex-unaligned.patch b/media-gfx/fontforge/files/20170731-gethex-unaligned.patch
deleted file mode 100644
index 812f7a444721..000000000000
--- a/media-gfx/fontforge/files/20170731-gethex-unaligned.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-fix unaligned access in gethex()
-
---- a/fontforge/sfd.c
-+++ b/fontforge/sfd.c
-@@ -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 );
- }
-