Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash due to improper memory context handling in some cases #28

Merged
merged 2 commits into from
Dec 27, 2016

Commits on Dec 19, 2016

  1. Fix crash due to improper memory context handling in some cases

    AsyncSource mechanism which uses a separate thread to read data can
    sometimes try to manipulate an address that may be invalid because of
    memory context reset or delete by the main thread.
    
    Fix that by implementing a dedicated memory context for AsyncSource,
    which is only manipulated in the reading thread.
    
    Fixes #27.
    amitlan committed Dec 19, 2016
    Configuration menu
    Copy the full SHA
    5a1bc58 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2016

  1. Allocate memory in the correct context

    Commit 5a1bc58 introduced a new context for AsyncSource's needs,
    but failed to allocate the memory for buffer during initializion in
    that context.  Fix that.
    
    Also, add some comments.
    amitlan committed Dec 20, 2016
    Configuration menu
    Copy the full SHA
    5116943 View commit details
    Browse the repository at this point in the history