Skip to content

aeslib: Fix use-after-free in aeslib

Bastien Nocera requested to merge wip/hadess/aeslib-crash into master

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 (closed)

Merge request reports