Skip to content

Fix off-by-one error with loginuid extract #1227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2018
Merged

Conversation

mstemm
Copy link
Contributor

@mstemm mstemm commented Sep 19, 2018

The number of params for the execve event is 19 with the loginuid being
the last param, so the check should be > 18. Extracting param 18 (which
is 0-based indexing into the array of params) is still correct.

An example of a trace file that crashes sysdig/falco without this fix is system-binaries-network-activity.scap in the traces-positive tarball for falco.

@mattpag can you take a look?

The number of params for the execve event is 19 with the loginuid being
the last param, so the check should be > 18. Extracting param 18 (which
is 0-based indexing into the array of params) is still correct.
@mattpag mattpag force-pushed the fix-loginuid-extract branch from 819b21e to cee2b96 Compare September 20, 2018 09:09
@mattpag
Copy link
Contributor

mattpag commented Sep 20, 2018

The fix is right.
I rebased the commit just to fix also the comment just above.

@mattpag mattpag merged commit a336f6b into dev Sep 20, 2018
@mattpag mattpag deleted the fix-loginuid-extract branch September 20, 2018 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants