mx_socket_reset_read_buf(): rbufptr=NIL to avoid bad copies (Jörg Schilling)..
commita1dbde85ab7020535ac393ced228a40d13a66059
authorSteffen Nurpmeso <steffen@sdaoden.eu>
Sat, 16 Jan 2021 19:24:11 +0000 (16 20:24 +0100)
committerSteffen Nurpmeso <steffen@sdaoden.eu>
Sat, 16 Jan 2021 19:29:46 +0000 (16 20:29 +0100)
tree3db7388b33594208a5ab0489975a8e86301599b1
parent2053bac2e14dd68a63f57d00736b82e2d649dfac
mx_socket_reset_read_buf(): rbufptr=NIL to avoid bad copies (Jörg Schilling)..

Jörg reported a bad pointer dereference on a Solaris platform, and
could convince that it is a bug of mine: old code i want to
rewrite creates stack objects in order to replace single instance
objects via bitcopy once the setup is complete.  (Instead of
having a notion of real objects.)  It happens that some newer code
does not nicely together with that pragmatic old style, which
i did not see nor think about (even though i should have and could
have).
include/mx/net-socket.h