Fix potential int overflow
EXPECT_FALSE(CFRangeToNSRange(CFRangeMake(LONG_MAX, LONG_MAX), &range_out)); is failing with a new clang roll, there may be some existing undefined behavior due to signed integer overflow. Bug: 1133974 Change-Id: I5a1de0db2753fcb9f325e0dfaa2c228268417e9f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2441736 Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by:Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#812707}
Showing
Please register or sign in to comment