Skip to content

Commit

Permalink
32bit uwu
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 26, 2024
1 parent 406dcd2 commit d4dc638
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libr/util/rlz4.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ R_API ut8 *r_lz4_decompress(const ut8* input, size_t input_size, size_t *output_
r_buf_write (b, g_buf, p);
input += comp_len;
}
return (ut8*)r_buf_drain (b, output_size);
ut64 osz;
ut8 *res = r_buf_drain (b, &osz);
if (output_size) {
*output_size = osz;
}
return res;
}

R_API int r_lz4_compress(ut8 *obuf, ut8 *buf, size_t buf_size, const int max_chain) {
Expand Down

0 comments on commit d4dc638

Please sign in to comment.