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
a498d7f4
Commit
a498d7f4
authored
Jun 18, 2011
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fns.c (concat): Catch string overflow earlier.
Do not rely on integer wraparound.
parent
e39e811e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/ChangeLog
src/ChangeLog
+3
-0
src/fns.c
src/fns.c
+2
-2
No files found.
src/ChangeLog
View file @
a498d7f4
2011-06-18 Paul Eggert <eggert@cs.ucla.edu>
* fns.c (concat): Catch string overflow earlier.
Do not rely on integer wraparound.
* dispextern.h (struct it.overlay_strings_charpos): EMACS_INT, not int.
2011-06-17 Paul Eggert <eggert@cs.ucla.edu>
...
...
src/fns.c
View file @
a498d7f4
...
...
@@ -565,8 +565,8 @@ concat (ptrdiff_t nargs, Lisp_Object *args,
}
result_len
+=
len
;
if
(
result_len
<
0
)
error
(
"S
tring
overflow
"
);
if
(
STRING_BYTES_BOUND
<
result_len
)
s
tring
_
overflow
(
);
}
if
(
!
some_multibyte
)
...
...
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