projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf9b972
)
Fix buffer overflow in fontname conversion (Bug#29523)
author
Yuuki Harano
<masm-emacs@masm11.ddo.jp>
Fri, 1 Dec 2017 19:31:16 +0000
(19:31 +0000)
committer
Alan Third
<alan@idiocy.org>
Sat, 2 Dec 2017 13:45:51 +0000
(13:45 +0000)
* src/nsterm.m (ns_xlfd_to_fontname): Fix sscanf format.
Copyright-paperwork-exempt: yes
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index 59a42eed8878adca8bdbe088e95f58d429cc2d29..50e06c94d45a4d5f52618066726e81aecfd645d4 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-9152,9
+9152,9
@@
ns_xlfd_to_fontname (const char *xlfd)
const char *ret;
if (!strncmp (xlfd, "--", 2))
- sscanf (xlfd, "--%*[^-]-%
[^-]179
-", name);
+ sscanf (xlfd, "--%*[^-]-%
179[^-]
-", name);
else
- sscanf (xlfd, "-%*[^-]-%
[^-]179
-", name);
+ sscanf (xlfd, "-%*[^-]-%
179[^-]
-", name);
/* stopgap for malformed XLFD input */
if (strlen (name) == 0)