Skip to content
  • Bastien Nocera's avatar
    aeslib: Fix use-after-free in aeslib · 1ced652a
    Bastien Nocera authored and Peter J. Mello's avatar Peter J. Mello committed
    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