matchBinaries Prefix
operator fails to match path longer than 256 chars
#2758
Labels
kind/bug
Something isn't working
The matchBinaries
Prefix
operator fails to match a path longer than 256 chars because of the way we read the binary path. We use theexe
of the process and walk the dentry from end to beginning. Thus if the path is too long, the buffer contains an incorrect start.A good situation looks like this:
A bad situation looks like this:
A permanent solution would be to increase the length
prepend_name
can work on. On a first attempt, it does not seem to be an issue. However, what is blocking is thatmemcpy
andmemset
will fail on the larger struct (above 1K) even though we make sure those struct are not allocated on the stack (which is 512K).The text was updated successfully, but these errors were encountered: