Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
liblk: Fix partition parsing for legacy LK images
* In legacy LK images, typically only a single, primary partition exists, identified as 'lk'. These images don't feature additional partitions with external headers, making it hard to guess when we should stop the parsing loop. * To address this limitation, the parsing process should include a check to ascertain if the most recently extracted partition is 'lk'. This way, if we hit an invalid magic, we'll break out of the loop if the current LK is a legacy image.
- Loading branch information