The check needs to validate a counter offset before performing pointer
arithmetic with the (potentially corrupt) offset.
Found by UBSan's pointer overflow check.
rdar://54843625
|  Differential  D66979  
[InstrProf] Tighten a check for malformed data records in raw profiles Authored by vsk on Aug 29 2019, 3:41 PM. 
Details The check needs to validate a counter offset before performing pointer Found by UBSan's pointer overflow check. rdar://54843625 
Diff Detail 
 Event Timeline
 Comment Actions Pardon my ignorance, but what does rdar://54843625 mean? I guess it's not http://openradar.appspot.com/54843625 ? Is it something I can access? :) 
 
 Comment Actions Thanks for your feedback. I will address review comments and continue investigating on Tuesday. 
 
 
 
 Comment Actions Hi @vsk can you provide a description/script on how to recreate the malformed-ptr-to-counter-array.profraw file when someone is changing the profile layout (for example by adding new value profiling kinds). | |||||||||||||||||||||||||||||||||||||||||||||||||||