diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-19 20:11:40 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-06-19 20:11:40 -0700 |
commit | 882f0d8119c9135b06ce9b291a139e4e9c6eeff8 (patch) | |
tree | d94f839b5aba81b3a9cf78554b054ef5149b63d8 /lisp/emacs-lisp/debug.el | |
parent | 93f4cf88953806d319e6ab231b4d1332a227d645 (diff) | |
download | emacs-882f0d8119c9135b06ce9b291a139e4e9c6eeff8.tar.gz emacs-882f0d8119c9135b06ce9b291a139e4e9c6eeff8.tar.bz2 emacs-882f0d8119c9135b06ce9b291a139e4e9c6eeff8.zip |
* filelock.c: Fix some buffer overrun and integer overflow issues.
(get_boot_time): Don't assume that gzip command string fits in 100 bytes.
Reformulate so as not to need the command string.
Invoke gzip -cd rather than gunzip, as it's more portable.
(lock_info_type, lock_file_1, lock_file):
Don't assume pid_t and time_t fit in unsigned long.
(LOCK_PID_MAX): Remove; we now use more-reliable bounds.
(current_lock_owner): Prefer signed type for sizes.
Use memcpy, not strncpy, where memcpy is what is really wanted.
Don't assume (via atoi) that time_t and pid_t fit in int.
Check for time_t and/or pid_t out of range, e.g., via a network share.
Don't alloca where an auto var works fine.
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
0 files changed, 0 insertions, 0 deletions