Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Safety of LZ4 codec in IPP

Francesc_Alted
Beginner
123 Views

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
123 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
123 Views

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

Thanks!

Reply