Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0fd11aa5
Commit
0fd11aa5
authored
Oct 24, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*print.c (Fexternal_debugging_output): Use more-conservative overflow fix.
parent
ee780401
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/ChangeLog
src/ChangeLog
+1
-2
src/print.c
src/print.c
+2
-2
No files found.
src/ChangeLog
View file @
0fd11aa5
...
...
@@ -554,8 +554,7 @@
Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
(PRINTPREPARE): Use int, not ptrdiff_t, where int is wide enough.
(printchar, strout): Use xpalloc to catch size calculation overflow.
(Fexternal_debugging_output): Use CHECK_CHARACTER, not CHECK_NUMBER,
to avoid mishandling large integers.
(Fexternal_debugging_output): Don't overflow EMACS_INT->int conversion.
(print_error_message): Use SAFE_ALLOCA, not alloca.
(print_object): Use int, not EMACS_INT, where int is wide enough.
* process.c (Fdelete_process): Don't assume pid fits into EMACS_INT.
...
...
src/print.c
View file @
0fd11aa5
...
...
@@ -716,8 +716,8 @@ You can call print while debugging emacs, and pass it this function
to make it write to the debugging output. */
)
(
Lisp_Object
character
)
{
CHECK_
CHARACT
ER
(
character
);
putc
(
(
int
)
XINT
(
character
),
stderr
);
CHECK_
NUMB
ER
(
character
);
putc
(
XINT
(
character
)
&
0xFF
,
stderr
);
#ifdef WINDOWSNT
/* Send the output to a debugger (nothing happens if there isn't one). */
...
...
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