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 usbmux to return any received data. #3134

Merged
merged 2 commits into from
Jul 1, 2022

Commits on Jun 20, 2022

  1. Fix usbmux to return any received data.

    When receiving data from the other end in usbmux mode, we need to return any
    data we get, not wait to fill the input buffer.
    
    Otherwise any clients waiting for data will wait forever: in fact the initial
    handshake would fail to complete, because we wouldn't pass along the 28-byte
    success response because we were trying to fill the 1028-byte buffer with
    data.
    
    Also add some input validation to make sure we don't write data into random
    memory + take the requested offset into account when writing data into the
    output array.
    rolfbjarne committed Jun 20, 2022
    Configuration menu
    Copy the full SHA
    3fc33ba View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2022

  1. Configuration menu
    Copy the full SHA
    b2c2f87 View commit details
    Browse the repository at this point in the history