cras: Validate length of bt player identity.

The bluetooth player identity has a max length of 128 so enforce the
length limit.

BUG=chromium:1320917
TEST=Check for the syslog message (see the bug).

Change-Id: Ieff1fb6fe50b3e1bff8f7996862a35a3e37be788
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/3617129
Reviewed-by: Jorge Lucangeli Obes <[email protected]>
Reviewed-by: Hsinyu Chao <[email protected]>
Tested-by: Allen Webb <[email protected]>
Commit-Queue: Allen Webb <[email protected]>
(cherry picked from commit abba3b27864aec87044c09f8ef314e7da895fc9c)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/3630519
Reviewed-by: Li-Yu Yu <[email protected]>
Commit-Queue: Li-Yu Yu <[email protected]>
Auto-Submit: Allen Webb <[email protected]>
Reviewed-by: Mattias Nissler <[email protected]>
1 file changed