aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2010-06-26 20:47:35 +0200
committerAndreas Schwab2010-06-26 20:47:35 +0200
commitb1feb9b4ec2622788f3a68d041fb2a086e452f1a (patch)
tree1bfdc812fc7a5fea9a970515d74342aefd091873 /src
parentaca54191748018f741c8fdd274df142f20a8d2a0 (diff)
downloademacs-b1feb9b4ec2622788f3a68d041fb2a086e452f1a.tar.gz
emacs-b1feb9b4ec2622788f3a68d041fb2a086e452f1a.zip
* alloc.c (Fmake_byte_code): Don't access undefined argument (Bug#6517).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/alloc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4d80761d7d6..5ba3f0e12a2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-06-26 Andreas Schwab <schwab@linux-m68k.org>
2
3 * alloc.c (Fmake_byte_code): Don't access undefined argument
4 (Bug#6517).
5
12010-06-25 Chong Yidong <cyd@stupidchicken.com> 62010-06-25 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * xdisp.c (next_element_from_image): Ensure that after-strings are 8 * xdisp.c (next_element_from_image): Ensure that after-strings are
diff --git a/src/alloc.c b/src/alloc.c
index 9a935cc8952..da63fe0f82b 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -3094,7 +3094,7 @@ usage: (make-byte-code ARGLIST BYTE-CODE CONSTANTS DEPTH &optional DOCSTRING INT
3094 else 3094 else
3095 val = Fmake_vector (len, Qnil); 3095 val = Fmake_vector (len, Qnil);
3096 3096
3097 if (STRINGP (args[1]) && STRING_MULTIBYTE (args[1])) 3097 if (nargs > 1 && STRINGP (args[1]) && STRING_MULTIBYTE (args[1]))
3098 /* BYTECODE-STRING must have been produced by Emacs 20.2 or the 3098 /* BYTECODE-STRING must have been produced by Emacs 20.2 or the
3099 earlier because they produced a raw 8-bit string for byte-code 3099 earlier because they produced a raw 8-bit string for byte-code
3100 and now such a byte-code string is loaded as multibyte while 3100 and now such a byte-code string is loaded as multibyte while