mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-10 21:43:48 +08:00
Be more strict about message size mismatches.
This commit is contained in:
parent
ef91427a2e
commit
c4596b6ceb
@ -1128,6 +1128,11 @@ static gboolean client_cb(GIOChannel *chan, GIOCondition cond, gpointer data)
|
||||
|
||||
debug("Audio API: %s <- %s", type, name);
|
||||
|
||||
if (msghdr->length != len) {
|
||||
error("Invalid message: length mismatch");
|
||||
goto failed;
|
||||
}
|
||||
|
||||
switch (msghdr->name) {
|
||||
case BT_GET_CAPABILITIES:
|
||||
handle_getcapabilities_req(client,
|
||||
|
Loading…
Reference in New Issue
Block a user