diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-02-25 11:57:10 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-02-25 11:59:13 -0800 |
commit | c1415cc98c4bba699f870277b5311ed320df22cc (patch) | |
tree | 6c2f96166404906a96ef93390e8e314781c5a8a3 /lisp/emacs-lisp | |
parent | e65d4d3a5d7748aa742112a6065e1eeeac0275a6 (diff) | |
download | emacs-c1415cc98c4bba699f870277b5311ed320df22cc.tar.gz emacs-c1415cc98c4bba699f870277b5311ed320df22cc.tar.bz2 emacs-c1415cc98c4bba699f870277b5311ed320df22cc.zip |
Integer overflow cleanups for ports and socklen
* src/process.c (struct sockaddr_and_len, conv_sockaddr_to_lisp)
(get_lisp_to_sockaddr_size, Fset_process_datagram_address)
(connect_network_socket):
Use ptrdiff_t, not int, for signed object sizes.
This addresses only a theoretical problem, as in practice these
object sizes are less than 2**31, but we might as well use the
same style here as elsewhere in Emacs.
(string_integer_p): Remove; all uses removed.
(Fmake_network_process): Check that port number is in range.
When converting an integer-string service, rely on strtol
rather than rechecking the string by hand.
* src/process.h, src/w32.c (conv_sockaddr_to_lisp):
Adjust prototypes to match.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions