Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f289d375
Commit
f289d375
authored
Feb 19, 2009
by
Kenichi Handa
Browse files
(detect_coding): Don't overflow coding->carryover.
parent
b691fa80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
src/ChangeLog
src/ChangeLog
+1
-0
src/coding.c
src/coding.c
+2
-0
No files found.
src/ChangeLog
View file @
f289d375
...
...
@@ -5,6 +5,7 @@
2009-02-19 Kenichi Handa <handa@m17n.org>
* coding.c (detect_coding): Preserve coding->mode.
Don't overflow coding->carryover.
2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
...
...
src/coding.c
View file @
f289d375
...
...
@@ -6805,6 +6805,8 @@ decode_coding (coding)
coding->carryover. */
unsigned char *p = coding->carryover;
if (nbytes > sizeof coding->carryover)
nbytes = sizeof coding->carryover;
coding->carryover_bytes = nbytes;
while (nbytes-- > 0)
*p++ = *src++;
...
...
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