mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-10-28 15:02:28 +00:00
2612c8bfa1
Currently, if the value of the l= tag is larger than the body, that causes an out-of-bound access and the server crashes. The RFC is clear that the value should be <= the size of the canonicalized body. This patch fixes the problem by validating the length appropriately, and returning a permanent failure if it's invalid. Thanks to John JEAN <john@wargan.com> who reported a similar issue (fixed in a previous patch), which led to finding this bug.