Skip to content

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

Merged
mattpag merged 1 commit intodevfrom
fix-loginuid-extract
Sep 20, 2018
Merged

Fix off-by-one error with loginuid extract#1227
mattpag merged 1 commit intodevfrom
fix-loginuid-extract

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