Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Francesc_Alted
Beginner
84 Views

Safety of LZ4 codec in IPP

Hi.  I am very pleased to see a considerable boost in performance of the LZ4 codec in IPP.  However, I am a bit perplex to not find a safe version for the LZ4 decoding functions, although there are certainly safe versions for encoding, as can be seen at: https://software.intel.com/en-us/ipp-dev-reference-lz4-compression-functions.

My assumption is that the decoding functions are safe by default.  Can you confirm?

Thanks in advance

0 Kudos
2 Replies
Sergey_K_Intel
Employee
84 Views

Hi !

I cal confirm this. LZ4 decoder controls boundaries of source and destination buffers. The decoder will not step beyond limits of source/destination.

Do you have any concerns about this?

Francesc_Alted
Beginner
84 Views

Right.  So if the decoder cannot step beyond the limits of destination buffer then all my concerns are gone :)

Thanks!

Reply