commit | 6ed5b87f24e00d36c11ceb2f2894417a56dcd69c | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Tue Jul 25 16:47:19 2017 -0700 |
committer | George Burgess IV <gbiv@google.com> | Wed Jul 26 11:53:16 2017 -0700 |
tree | 58fab1bc0853a4e11dc40fd7df3d818c4ca4f34c | |
parent | dfdc080699f1bf92978b45e8e87649bde239a874 [diff] |
dexdump: fix a static analyzer complaint Clang's static analyzer was complaining that the size in strncat(buf + bufUsed - 1, param, bufSize - (bufUsed - 1)); was greater than the number of bytes available in the buffer. I don't see why it thinks that. If we refactor the code slightly, this warning goes away. Bug: 27101951 Test: mma. Warning is gone. Change-Id: Id1619ec6d80e20f0c157dbb43d72ac861b8f8064