diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-11-25 13:42:31 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-11-25 13:42:31 +0900 |
| commit | 2d7b896a8c90a591e0670cf269472a415ee6479b (patch) | |
| tree | 4b761da5c93246ccb90c01b850d3b1eb37276ed3 /internal/pipewire | |
| parent | a0eb010aaba24e4cf20aedc04a2dc5fea5ec140c (diff) | |
internal/pipewire: bounds check against wire size
This covers cases where wire size is not known ahead of time.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/pipewire')
| -rw-r--r-- | internal/pipewire/pod.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/pipewire/pod.go b/internal/pipewire/pod.go index 0faada2d..815ae621 100644 --- a/internal/pipewire/pod.go +++ b/internal/pipewire/pod.go @@ -349,7 +349,7 @@ func unmarshalCheckTypeBounds(data *[]byte, t Word, sizeP *Word) error { if wantSize != 0 && gotSize != wantSize { return &InconsistentSizeError{gotSize, wantSize} } - if len(*data)-8 < int(wantSize) { + if len(*data)-8 < int(gotSize) { return io.ErrUnexpectedEOF } |
