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
a0241d01
Commit
a0241d01
authored
Nov 07, 2011
by
Kenichi Handa
Browse files
Set members of the struct coding_system before accessing them (bug#9910,9911,9912).
parent
56c31147
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletion
+14
-1
src/ChangeLog
src/ChangeLog
+11
-0
src/callproc.c
src/callproc.c
+1
-0
src/coding.c
src/coding.c
+1
-1
src/process.c
src/process.c
+1
-0
No files found.
src/ChangeLog
View file @
a0241d01
2011-11-07 Kenichi Handa <handa@m17n.org>
* coding.c (coding_set_destination): Check coding->src_pos only
when coding->src_object is a buffer (bug#9910).
* process.c (send_process): Set the member src_multibyte of coding
to 0 (bug#9911) when sending a unibyte text.
* callproc.c (Fcall_process): Set the member src_multibyte of
process_coding to 0 (bug#9912).
2011-11-03 Eli Zaretskii <eliz@gnu.org>
2011-11-03 Eli Zaretskii <eliz@gnu.org>
* xdisp.c (note_mouse_highlight): Initialize `area'. (Bug#9947)
* xdisp.c (note_mouse_highlight): Initialize `area'. (Bug#9947)
...
...
src/callproc.c
View file @
a0241d01
...
@@ -748,6 +748,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
...
@@ -748,6 +748,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
val
=
raw_text_coding_system
(
val
);
val
=
raw_text_coding_system
(
val
);
setup_coding_system
(
val
,
&
process_coding
);
setup_coding_system
(
val
,
&
process_coding
);
}
}
process_coding
.
src_multibyte
=
0
;
immediate_quit
=
1
;
immediate_quit
=
1
;
QUIT
;
QUIT
;
...
...
src/coding.c
View file @
a0241d01
...
@@ -1043,7 +1043,7 @@ coding_set_destination (struct coding_system *coding)
...
@@ -1043,7 +1043,7 @@ coding_set_destination (struct coding_system *coding)
{
{
if (BUFFERP (coding->dst_object))
if (BUFFERP (coding->dst_object))
{
{
if (coding->src_pos < 0)
if (
BUFFERP (coding->src_object) &&
coding->src_pos < 0)
{
{
coding->destination = BEG_ADDR + coding->dst_pos_byte - BEG_BYTE;
coding->destination = BEG_ADDR + coding->dst_pos_byte - BEG_BYTE;
coding->dst_bytes = (GAP_END_ADDR
coding->dst_bytes = (GAP_END_ADDR
...
...
src/process.c
View file @
a0241d01
...
@@ -5387,6 +5387,7 @@ send_process (volatile Lisp_Object proc, const char *volatile buf,
...
@@ -5387,6 +5387,7 @@ send_process (volatile Lisp_Object proc, const char *volatile buf,
}
}
else
else
{
{
coding->src_multibyte = 0;
/* For sending a unibyte text, character code conversion should
/* For sending a unibyte text, character code conversion should
not take place but EOL conversion should. So, setup raw-text
not take place but EOL conversion should. So, setup raw-text
or one of the subsidiary if we have not yet done it. */
or one of the subsidiary if we have not yet done it. */
...
...
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