Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64fdb45b authored by Andy Hung's avatar Andy Hung
Browse files

Fix stream_get_parameter_channels from overflowing on 8 ch

Test: Connect 8ch USB and no HAL audio service crash.
Bug: 114100789
Change-Id: I93c78cea1da45c8f0813aedc121ce346aa2044f6
parent 92fef5a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2701,7 +2701,7 @@ static bool stream_get_parameter_channels(struct str_parms *query,
                                          struct str_parms *reply,
                                          audio_channel_mask_t *supported_channel_masks) {
    int ret = -1;
    char value[256];
    char value[ARRAY_SIZE(channels_name_to_enum_table) * 32 /* max channel name size */];
    bool first = true;
    size_t i, j;