Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
31c286f7
Commit
31c286f7
authored
Aug 29, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* process.c (make_process): Use printmax_t, not int, to format
process-name gensyms.
parent
aca216ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/ChangeLog
src/ChangeLog
+3
-0
src/process.c
src/process.c
+3
-3
No files found.
src/ChangeLog
View file @
31c286f7
...
...
@@ -85,6 +85,9 @@
index. Don't assume hash table size fits in 'long', or that
vectorlike size fits in 'unsigned long'.
* process.c (make_process): Use printmax_t, not int, to format
process-name gensyms.
2011-08-26 Paul Eggert <eggert@cs.ucla.edu>
Integer and memory overflow issues (Bug#9196).
...
...
src/process.c
View file @
31c286f7
...
...
@@ -616,8 +616,8 @@ make_process (Lisp_Object name)
{
register Lisp_Object val, tem, name1;
register struct Lisp_Process *p;
char suffix[
10
];
register in
t i;
char suffix[
sizeof "<>" + INT_STRLEN_BOUND (printmax_t)
];
printmax_
t i;
p = allocate_process ();
...
...
@@ -651,7 +651,7 @@ make_process (Lisp_Object name)
{
tem = Fget_process (name1);
if (NILP (tem)) break;
sprintf (suffix, "<%
d
>", i);
sprintf (suffix, "<%
"pMd"
>", i);
name1 = concat2 (name, build_string (suffix));
}
name = name1;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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