aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2013-07-20 08:33:00 -0700
committerPaul Eggert2013-07-20 08:33:00 -0700
commit6496aec9e948e0e5e6646aff408391d78f3516cc (patch)
treed3e3afc92e5189ef1b1a8d2814965f003c13f96f /src/ChangeLog
parentb2a069c2f80cb2fdd683f5e044642b058c4d2326 (diff)
downloademacs-6496aec9e948e0e5e6646aff408391d78f3516cc.tar.gz
emacs-6496aec9e948e0e5e6646aff408391d78f3516cc.zip
Fix array bounds violation when pty allocation fails.
* configure.ac (PTY_TTY_NAME_SPRINTF): Use PTY_NAME_SIZE, not sizeof pty_name, since pty_name is now a pointer to the array. * src/process.c (PTY_NAME_SIZE): New constant. (pty_name): Remove static variable; it's now auto. (allocate_pty): Define even if !HAVE_PTYS; that's simpler. Take pty_name as an arg rather than using a static variable. All callers changed. (create_process): Recover pty_flag from process, not from volatile local. (create_pty): Stay inside array even when pty allocation fails. (Fmake_serial_process): Omit unnecessary initializaiton of pty_flag.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c88951f9422..4c6bfaa2b1a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,15 @@
12013-07-20 Paul Eggert <eggert@cs.ucla.edu> 12013-07-20 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Fix array bounds violation when pty allocation fails.
4 * process.c (PTY_NAME_SIZE): New constant.
5 (pty_name): Remove static variable; it's now auto.
6 (allocate_pty): Define even if !HAVE_PTYS; that's simpler.
7 Take pty_name as an arg rather than using a static variable.
8 All callers changed.
9 (create_process): Recover pty_flag from process, not from volatile local.
10 (create_pty): Stay inside array even when pty allocation fails.
11 (Fmake_serial_process): Omit unnecessary initializaiton of pty_flag.
12
3 * lread.c (Fload): Avoid initialization only when lint checking. 13 * lread.c (Fload): Avoid initialization only when lint checking.
4 Mention that it's needed only for older GCCs. 14 Mention that it's needed only for older GCCs.
5 15