Skip to content

Memory Fixes#25

Merged
wmiaw merged 7 commits into
masterfrom
memory-fixes
Oct 8, 2019
Merged

Memory Fixes#25
wmiaw merged 7 commits into
masterfrom
memory-fixes

Conversation

@Caleb-An
Copy link
Copy Markdown

@Caleb-An Caleb-An commented Oct 7, 2019

  • 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.

wmiaw added 7 commits October 7, 2019 14:28
…eader 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.
@wmiaw wmiaw requested a review from kemorrisnf October 8, 2019 00:48
@wmiaw wmiaw self-assigned this Oct 8, 2019
@wmiaw wmiaw requested a review from mdaftari October 8, 2019 00:48
Copy link
Copy Markdown
Contributor

@kemorrisnf kemorrisnf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed earlier, looks good.

@wmiaw wmiaw merged commit 6d4cd0f into master Oct 8, 2019
@wmiaw wmiaw deleted the memory-fixes branch October 8, 2019 20:56
yongjunj added a commit to yongjunj/dial-reference that referenced this pull request Sep 18, 2020
don't clear app->dial_data again after setting it
chintan09 pushed a commit that referenced this pull request Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants