[cmp] update Bled to latest

* Adds the provision of default buffer size in bled_init()
This commit is contained in:
Pete Batard 2023-06-30 13:05:42 +01:00
parent c717c7789b
commit c47ee4c435
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
10 changed files with 31 additions and 20 deletions

View file

@ -948,7 +948,7 @@ static DWORD WINAPI DownloadISOThread(LPVOID param)
free(sig);
uprintf("Download signature is valid ✓");
uncompressed_size = *((uint64_t*)&compressed[5]);
if ((uncompressed_size < 1 * MB) && (bled_init(uprintf, NULL, NULL, NULL, NULL, &FormatStatus) >= 0)) {
if ((uncompressed_size < 1 * MB) && (bled_init(0, uprintf, NULL, NULL, NULL, NULL, &FormatStatus) >= 0)) {
fido_script = malloc((size_t)uncompressed_size);
size = bled_uncompress_from_buffer_to_buffer(compressed, dwCompressedSize, fido_script, (size_t)uncompressed_size, BLED_COMPRESSION_LZMA);
bled_exit();