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

lws_b64_decode_stateful truncates response #2856

Closed
wants to merge 1 commit into from

Commits on Mar 23, 2023

  1. lws_b64_decode_stateful truncates response

    Addresses issue warmcat#2855 by allowing the parsing of the final byte when there are at least 3 bytes remaining in the buffer.
    
    For every 4 bytes of input, a maximum of 3 bytes of output are generated when decoding the base64 string. The buffer space, therefore, only requires an additional 3 bytes of space. The code checks for space in the buffer before adding null termination.
    darhaywa authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    70d41ec View commit details
    Browse the repository at this point in the history