If the value indicating the number of ABOs is very large, the current tests were not sufficient to insure out-of-range array access, because the integer subtraction might overflow. Check the actual number of ABOs too to avoid this. Fixes #160 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Lepton Wu <lepton@chromium.org>macos/master
parent
4df12ad51f
commit
5bc1a77c0e
Loading…
Reference in new issue