X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/7bdede3f5e21e94de5ec26b73971c3a9697cc99b..9250f758254937f43a621a2371e3433ce7daa573:/lib-src/ChangeLog diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 7d4a19fedc..8d46a37ce5 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,5 +1,93 @@ +2011-08-28 Paul Eggert + + Integer and memory overflow issues. + + * emacsclient.c (xmalloc): Accept size_t, not unsigned int, to + avoid potential buffer overflow issues on typical 64-bit hosts. + Return void *, not long *. + (get_current_dir_name): Report a failure, instead of looping + forever, if buffer size calculation overflows. Treat malloc + failures like realloc failures, as that has better behavior and is + more consistent. Do not check whether xmalloc returns NULL, as + that's not possible. + (message): Do not arbitrarily truncate message to 2048 bytes when + sending it to stderr; use vfprintf instead. + (get_server_config, set_local_socket) + (start_daemon_and_retry_set_socket): Do not alloca + arbitrarily-large buffers; that's not safe. + (get_server_config, set_local_socket): Do not use sprintf when its + result might not fit in 'int'. + (set_local_socket): Do not assume uid fits in 'int'. + + * etags.c (xmalloc, xrealloc): Accept size_t, not unsigned int, + to avoid potential buffer overflow issues on typical 64-bit hosts. + (whatlen_max): New static var. + (main): Avoid buffer overflow if subsidiary command length is + greater than BUFSIZ or 2*BUFSIZ + 20. Do not use sprintf when its + result might not fit in 'int'. + +2011-07-28 Paul Eggert + + Assume freestanding C89 headers, string.h, stdlib.h. + * ebrowse.c: Include stdlib.h unconditionally. + * etags.c, update-game-score.c: + Include string.h and stdlib.h unconditionally. + * makefile.w32-in (LOCAL_CFLAGS): Don't define STDC_HEADERS. + * movemail.c, pop.c: Include string.h unconditionally. + * update-game-score.c: No need to include stdarg.h; not used. + + Assume support for memcmp, memcpy, memmove, memset. + * etags.c (absolute_filename): Assume memmove exists. + +2011-07-09 Andreas Schwab + + * update-game-score.c (usage): Update usage line. + +2011-07-02 Jason Rumney + + * emacsclient.c (decode_options) [WINDOWSNT]: Avoid tty mode on + Windows (Bug#5486). + +2011-06-25 Glenn Morris + + * emacsclient.c (decode_options) : Add `F:'. + (print_help_and_exit): Mention --frame-parameters. + +2011-06-25 Andreas Rottmann + + * emacsclient.c (longopts, decode_options, main): Add frame-parameters. + +2011-06-10 Paul Eggert + + * movemail.c: Fix race condition and related bugs (Bug#8836). + (main) [!MAIL_USE_SYSTEM_LOCK]: Prefer mkstemp to mktemp, as this + fixes some race conditions. Report mkstemp/mktemp errno rather + than a possibly-garbage errno. Reinitialize the template each + time through the loop, as earlier mkstemp/mktemp calls could have + trashed it. Pass 0600 (not 0666) to mktemp, for consistency + with mkstemp; the permissions don't matter anyway. + +2011-06-01 Dan Nicolaescu + + * emacsclient.c (socket_status): Use constant pointer. + +2011-05-28 Paul Eggert + + Use 'inline', not 'INLINE'. + * etags.c (hash): Now inline unconditionally. + * make-docfile.c (put_char): inline, not INLINE. + 2011-05-25 Glenn Morris + * Makefile.in (.c.o): Remove (every .o file has an explicit rule). + (insrcdir): New. + (stamp-rcs2log, stamp-rcs-checkin, stamp-grep-changelog, stamp-vcdiff): + Use $insrcdir to suppress unaesthetic ignored errors. + (clean): Simplify list of things to delete. + (all, clean): Use $EXE_FILES. + + * Makefile.in (movemail${EXEEXT}): Build in one step, not via .o file. + * Makefile.in (REGEXPOBJ, REGEXPDEPS): Remove. Replace by expansion. (etags${EXEEXT}): Just depend on regex.o, not regex.h as well.