sndiod: Fix insufficent check of input from clients
authorratchov <ratchov@openbsd.org>
Thu, 1 Aug 2024 14:36:27 +0000 (14:36 +0000)
committerratchov <ratchov@openbsd.org>
Thu, 1 Aug 2024 14:36:27 +0000 (14:36 +0000)
commit55a46d88ddc1c5733deaabc9a5a9e53c314fbddc
treede0f9ec59ac369256c9e8caa02d80434f589a825
parent4cef13ba6bdfae3cabf0055e116780103357b80e
sndiod: Fix insufficent check of input from clients

Fixes possible sndiod(8) crashes caused by a global table overread
triggered by the client.

Found and analysed by Henry Ford <henryfordkjv at gmail.com>, thanks!

ok blumh, help from millert, mlarkin
usr.bin/sndiod/sock.c