mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:31:58 +01:00
zstd length fix after decryption
Change-Id: I61f52e1680646c684cdc0b715b41c15599afd677 Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
parent
9ac1c69cd4
commit
b4dd591b25
@ -235,7 +235,7 @@ int retrieve_file_from_archive(char *filename, int mode, char **buffer, FILE *de
|
||||
|
||||
tlen += olen;
|
||||
|
||||
if(st.st_size > 4){
|
||||
if(tlen > 4){
|
||||
#ifdef HAVE_ZSTD
|
||||
memcpy(&magic, addr, 4);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user