Describe the bug
The issue was found with a static analyzer:
// Parse access type [:rwx]
c = strrchr(buf, ':');
if (c != NULL && c != name && c[-1] != ':') {
^^^^^^^^^
c
will never be equal to name
; we should check c != buf
instead.
Expected vs. actual behavior
No response
Reproduction Steps
No response
Additional Information/Context
No response
Async-profiler version
master
Environment details
No response