kalibera / rchk

102 stars 10 forks source link

How to safely get raw pointer #4

Closed jeroen closed 6 years ago

jeroen commented 6 years ago

The new rchk produces a lot of these for me. I never knew that RAW() may allocate. Is there an alternative api to get the raw pointer of an object that is safe?

kalibera commented 6 years ago

Thanks for spotting this, the tool was confused by ALTREP changes. RAW() does not allocate. Should be fixed now, but it will take some time for the results to update.