commit | f427655e47f83757c8ca1c5a470a36407594be89 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Wed May 24 16:26:56 2017 -0700 |
committer | Christopher Ferris <cferris@google.com> | Wed May 24 17:27:27 2017 -0700 |
tree | b21496425b5a19401b60c9717c9c8b93e0be807b | |
parent | be49ee652af75a7d33a6fccb76b9f19add913860 [diff] |
Fix potential divide by zero. If there are no bytes attributable to APP, then you get a divide by zero. Modify the code to avoid doing a divide by zero. This can happen when using logwrapper to enable malloc debug. Test: Ran on a heap that had no APP bytest. Change-Id: I48f0666a92b591e4537c493c56b136e517a36c25