Parent: a4eec99fb2af410332812f50a42ea322d842d2a0
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-08-06 15:10:19
Tree: 11149180ad9a5e80c3d23b8560bee87800a72468
audio/avrcp: Fix overflow when using UINT32_MAX When number of items is unknown the code will attempt to use the maximum possible end offset but this cause an overflow since index 0 is also valid the total of items will overflow a uint32_t.
Diffstat
| M | profiles/audio/avrcp.c | | | 12 | +++++++++- - - |
1 files changed, 9 insertions(+), 3 deletions(-)