Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ptr overflow warning in filter_ar.c
In this code, the problem was that the ptr could sometimes point outside of the allocated arrays, in particular before the array, causing a pointer overflow warning. However, the memory pointed to was never read or written while the pointer was off. With this change, we keep an index instead of a pointer, which avoids warnings for pointer overflow. The index might be negative at times, but the index will not be used to address the arrays while negative. Bug: webrtc:9166 Change-Id: I3a32d8e814660f43be9d4c94889d00ac3f8403a5 Reviewed-on: https://webrtc-review.googlesource.com/71165 Reviewed-by: Artem Titov <[email protected]> Commit-Queue: Henrik Lundin <[email protected]> Cr-Commit-Position: refs/heads/master@{#22951}
- Loading branch information