
TL;DR
Wpd is a new WebP decoder that enhances both speed and memory safety compared to libwebp, addressing critical vulnerabilities like CVE-2023-4863. Built in Rust, it offers superior performance while ensuring safer image processing.
✦ Why It Matters
Consider switching to wpd for safer and faster WebP image decoding in your applications.
Key Takeaways
Full Summary
Wpd is a WebP decoder designed to improve both safety and performance compared to libwebp, which has been associated with serious memory safety vulnerabilities like CVE-2023-4863. Written in Rust, wpd incorporates handwritten assembly for performance while allowing compilation without unsafe code, enhancing memory safety.
Benchmarking results show wpd is 1.19x faster for single-threaded lossy decoding and up to 3.19x faster for multi-threaded lossless decoding. It also offers feature parity with libwebp, plus additional capabilities such as raw animation subframe decoding and configurable output strides.
The project aims to contribute to open source and enhance cybersecurity partnerships, encouraging widespread adoption of wpd. With a permissive BSD 2-Clause license, it invites developers to engage and improve the software.
Related