]> git.eshelyaron.com Git - emacs.git/commit
Fix address violation found by AddressSanitizer
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2017 01:44:36 +0000 (18:44 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 15 May 2017 01:48:59 +0000 (18:48 -0700)
commitd23a486ba27405acfda67a4dc387ade5e399a29b
tree6e7a2dc2d896e78194d049c4a54eae832a3b0040
parente6f64df9c2b443d3385c2c25c29ccd5283d37e3f
Fix address violation found by AddressSanitizer

* src/process.c (connect_network_socket):
Use struct sockaddr_storage, not struct sockaddr_in, to store info
about a socket address.  Problem reported by Philipp Stephani in:
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00314.html
This fix is based on a patch by Philipp in:
http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00357.html
src/process.c