• Manuel Pégourié-Gonnard's avatar
    Fix potential stack buffer overflow in ecjpake · 4b20c0ee
    Manuel Pégourié-Gonnard authored
    Two causes:
    - the buffer is too short (missing 4 bytes for encoding id_len)
    - the test was wrong
    
    Would only happen when MBEDTLS_ECP_MAX_BITS == the bitsize of the curve
    actually used (does not happen in the default config).
    
    Could not be triggered remotely.
    4b20c0ee