mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
For broken metadata BITLK format parsing can cause crash or out of memory on several places. Add better size checks to avoid parsing such a metadata. Also be aware that entry_size can be smalle (so minus operation can underflow). Also fix memory leak if FVEK entry is more than once in metadata (just use the first entry and ignore others).