o Fixed a segmentation fault in Nsock which occurred when calling nsock_write()

with a data length of -1 (which means the data is a NULL-terminated string
  and Nsock should take the length itself) and the Nsock trace level was at
  least 2. [Kris]

This occurs because memcpy() is called with datalen as it's length argument and
then fails.

Another noticable change is that instead of saying a write request of -1 bytes
was registered, it now prints the correct length.
This commit is contained in:
kris 2008-07-29 21:02:30 +00:00
parent d01c5071cd
commit de4a980a39

View file

@ -57,6 +57,11 @@ o Fixed host discovery probe matching when looking at the returned TCP data in
and the debugging error message: "Bogus trynum or sequence number in ICMP
error message" [Kris]
o Fixed a segmentation fault in Nsock which occurred when calling nsock_write()
with a data length of -1 (which means the data is a NULL-terminated string
and Nsock should take the length itself) and the Nsock trace level was at
least 2. [Kris]
o Nsock now supports binding to a local address and setting IPv4 options
with nsi_set_localaddr() and nsi_set_ipoptions(), respectively. [Kris]