diff options
| author | Paul Eggert | 2011-06-19 20:11:40 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-19 20:11:40 -0700 |
| commit | 882f0d8119c9135b06ce9b291a139e4e9c6eeff8 (patch) | |
| tree | d94f839b5aba81b3a9cf78554b054ef5149b63d8 /src/ChangeLog | |
| parent | 93f4cf88953806d319e6ab231b4d1332a227d645 (diff) | |
| download | emacs-882f0d8119c9135b06ce9b291a139e4e9c6eeff8.tar.gz 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 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3687da81fbb..fd17f85f1e1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2011-06-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * filelock.c: Fix some buffer overrun and integer overflow issues. | ||
| 4 | (get_boot_time): Don't assume that gzip command string fits in 100 bytes. | ||
| 5 | Reformulate so as not to need the command string. | ||
| 6 | Invoke gzip -cd rather than gunzip, as it's more portable. | ||
| 7 | (lock_info_type, lock_file_1, lock_file): | ||
| 8 | Don't assume pid_t and time_t fit in unsigned long. | ||
| 9 | (LOCK_PID_MAX): Remove; we now use more-reliable bounds. | ||
| 10 | (current_lock_owner): Prefer signed type for sizes. | ||
| 11 | Use memcpy, not strncpy, where memcpy is what is really wanted. | ||
| 12 | Don't assume (via atoi) that time_t and pid_t fit in int. | ||
| 13 | Check for time_t and/or pid_t out of range, e.g., via a network share. | ||
| 14 | Don't alloca where an auto var works fine. | ||
| 15 | |||
| 1 | 2011-06-19 Paul Eggert <eggert@cs.ucla.edu> | 16 | 2011-06-19 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 17 | ||
| 3 | * fileio.c: Fix some integer overflow issues. | 18 | * fileio.c: Fix some integer overflow issues. |