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 check tool.
Parameters
Option |
Input/Output |
Description |
|---|---|---|
ptr |
Input |
Allocated memory address. |
size |
Input |
Allocated memory size. |
Return
None
Example
None.
Parent topic: sanitizer APIs