Skip to content

backend-native: Fix parsing comma-delimited response

Incoming RFCOMM string has extra end-of-command terminating character which breaks both AT+BIA= and AT+BAC= parsers which only expect a comma.

This leads to error parsing last element of response in both cases and could prevent detecting mSBC availability if mSBC codec id comes last, e.g. AT+BIA=1,2

Fix this by additionally checking for delimiters in both parsers.

Fixes: 3c63f8e6 ("backend-native: Fix stack corruption reading RFCOMM AT+BIA= response")

Merge request reports