Skip to content

spa: pod: Fix subtraction underflow error when deserializing

Tom Wagner requested to merge ryuukyu/pipewire-rs:pod-panic-padding into main

This fixes an issue where for string and byte pods with a body size larger than 8 bytes, the remaining padding was calculated incorrectly due to placement of brackets, resulting in a panic caused by integer underflow during subtraction.

The tests were also adapted to use pods larger than 8 bytes.

Fixes #31 (closed).

Edited by Tom Wagner

Merge request reports