commit | a5f2e4d421fa50c5e7fe3f7dc4a98e1e97ddfc74 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Apr 27 13:59:49 2022 -0700 |
committer | Elliott Hughes <enh@google.com> | Wed Apr 27 14:29:44 2022 -0700 |
tree | 534e950b11fe330d879039ff5eb345459cb0364f | |
parent | ee711eda88d5789d6227e0b3693104ad171cd739 [diff] |
libutils: clearer abort on overflow. Let's turn a bug into a feature... Since this code is built with intsan, anyone who caused overflow here will have had an abort, so we know no-one actually needs the BAD_INDEX return that was presumably the original author's intent. So let's just mandate that, since it's a lot harder to ignore an abort than it is to ignore an error return. Bug: http://b/179044558 Test: treehugger Change-Id: I08f1018f9da1e09de885699138b7543d55bb2a36