SanitizerReportMalloc
Description
Manually reports the GM allocation information.
Prototype
void SanitizerReportMalloc(void *ptr, uint64_t size);
This interface is the encapsulation of the __sanitizer_report_malloc interface. The __sanitizer_report_malloc interface is a weak function and takes effect only when the user program is started by the detection tool.
Parameters
Option |
Input/Output |
Description |
|---|---|---|
ptr |
Input |
Allocated memory address. |
size |
Input |
Allocated memory size. |
Return
None
Example
None.
Parent topic: msSanitizer External APIs