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

Don't memcpy the contents of an empty fragment #6223

Closed
wants to merge 1 commit into from

Commits on May 11, 2018

  1. Don't memcpy the contents of an empty fragment

    In DTLS if we have buffered a fragment for a zero length message (e.g.
    ServerHelloDone) then, when we unbuffered the fragment, we were attempting
    to memcpy the contents of the fragment which is zero length and a NULL
    pointer. This is undefined behaviour. We should check first whether we
    have a zero length fragment.
    
    Fixes a travis issue.
    
    [extended tests]
    mattcaswell committed May 11, 2018
    Configuration menu
    Copy the full SHA
    11776a8 View commit details
    Browse the repository at this point in the history