Commit Graph

7 Commits

Author SHA1 Message Date
Wesley Miaw
fec0095372 Merge branch 'documentation' into memory-fixes 2019-10-07 14:40:59 -07:00
Wesley Miaw
93756a84ea Reject HTTP requests with an invalid (e.g. negative) Content-Length header value.
Make sure to allocate enough memory in buffers for the operations they are used for, and to check/enforce buffer sizes when performing those memory operations.
Properly allocate and free memory.
Make a best effort at allocating memory for the network hardware address (remove code for Apple platforms).
Try to consume all of the remaining content if a valid Content-Length header was provided.
Check for success when attempting to acquire mutexes.
2019-10-07 14:38:16 -07:00
Wesley Miaw
5dc0f40b2f Add/improve function documentation and update copyright information. 2019-10-07 14:28:40 -07:00
Chintan Parikh
fc267fac62 Fix memory leak in dial data. Thanks @vignyzheng for pointing this. 2017-12-23 16:05:33 -08:00
Chintan Parikh
e902089402 Replace unsafe strcpy with strncpy.
Valgrind is happy now.
2017-10-02 16:28:39 -07:00
Chintan Parikh
4b8f7637b1 Fix memory leak in dial_data. 2017-10-02 15:25:03 -07:00
jcli
3454a59e99 dial spec 1.7 2015-10-20 16:26:28 -07:00