Remix.run Logo
▲ jessa0 9 hours ago

Related is Signal Messenger's webpsan crate, which validates webp container syntax before it is passed to libwebp. It stops just short of decoding actual pixel data, however, as the way webp works requires the entire canvas to be allocated in order to fully decode pixel data, which would have just made webpsan a full-on decoder anyway..

https://docs.rs/webpsan/latest/webpsan/

▲thereisno 4 hours ago | parent | next [-]

Validators separate from parsers have led to many vulnerabilities in the past. There's always something the validator didn't catch that crashed the parser anyway.

▲computerbuster 9 hours ago | parent | prev [-]

Nice, I didn't know about this!