Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix perf_submit() calls with array data crashing libbcc
A perf_submit() call like: unsigned char buf[16] = ...; output.perf_submit(ctx, buf, sizeof(buf)); Passes a non-pointer arg1, so getPointeeType().getTypePtr() is invalid, and crashes libbcc. Use getTypePtrOrNull() instead to avoid it. Signed-off-by: Yonatan Goldschmidt <[email protected]>
- Loading branch information