• Bastien Nocera's avatar
    aeslib: Fix use-after-free in aeslib · 1ced652a
    Bastien Nocera authored
    If a USB transfer is started but not completed in one go, the wdata we
    pass to continue_write_regv() will already be freed by the time we try
    to use it again.
    
    Only free() the wdata on error, or when the USB transfer is completed.
    
    Closes: #180
    1ced652a
aeslib.c 4.89 KB