1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-02 05:32:08 -08:00
emacs/lib-src
Paul Eggert 17107bb698 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'.
2011-08-28 16:52:34 -07:00
..
.gitignore Don't ignore files that are no longer generated 2011-02-13 19:35:05 +01:00
ChangeLog Integer and memory overflow issues. 2011-08-28 16:52:34 -07:00
COPYING
ebrowse.c Assume freestanding C89 headers, string.h, stdlib.h. 2011-07-06 18:32:56 -07:00
emacsclient.c Integer and memory overflow issues. 2011-08-28 16:52:34 -07:00
etags.c Assume freestanding C89 headers, string.h, stdlib.h. 2011-07-06 18:32:56 -07:00
grep-changelog Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
hexl.c Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
make-docfile.c [ChangeLog] 2011-05-28 15:39:39 -07:00
Makefile.in * lib-src/Makefile.in (all, clean): Use $EXE_FILES. 2011-05-25 00:13:57 -07:00
makefile.w32-in Assume freestanding C89 headers, string.h, stdlib.h. 2011-07-06 18:32:56 -07:00
movemail.c Assume freestanding C89 headers, string.h, stdlib.h. 2011-07-06 18:32:56 -07:00
ntlib.c w32: Fix some warnings reported by -Wall -Wextra. 2011-03-23 17:25:38 +01:00
ntlib.h Fix the MS-Windows build broken by 2011-01-17T19:01:01Z!eggert@cs.ucla.edu and emacs-23/2010-05-21T19:51:48Z!acm@muc.de. 2011-01-29 14:36:11 +02:00
pop.c Assume freestanding C89 headers, string.h, stdlib.h. 2011-07-06 18:32:56 -07:00
pop.h Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
profile.c Declare file-scope functions and variables static if not exported. 2011-02-21 10:06:25 -08:00
rcs-checkin Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
rcs2log Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
README
test-distrib.c * test-distrib.c (buf): Make this local, to avoid shadowing. 2011-02-21 15:15:17 -08:00
testfile
update-game-score.c Merge from trunk. 2011-07-10 23:05:57 -07:00
vcdiff Refill some long/short copyright headers. 2011-01-26 00:36:39 -08:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.