This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Fixed possible crash or junk data in cPerf
ClosedPublic

Authored by kpdev42 on Oct 29 2021, 1:25 AM.

Details

Summary

The return value of the first call of Dump.next() was not checked. Dump.getText() returned an uninitialized string (a junk string) if the objdump did not return an usable data for the specified address range. It caused a crash or inconsistent profile data.

OS Laboratory. Huawei Russian Research Institute. Saint-Petersburg

Diff Detail

Repository
rLNT LNT

Event Timeline

kpdev42 created this revision.Oct 29 2021, 1:25 AM
kpdev42 requested review of this revision.Oct 29 2021, 1:25 AM
kpdev42 edited the summary of this revision. (Show Details)Oct 29 2021, 1:30 AM
thopre accepted this revision.Oct 29 2021, 2:27 AM

LGTM

This revision is now accepted and ready to land.Oct 29 2021, 2:27 AM
This revision was automatically updated to reflect the committed changes.