Skip to content
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

cleanup(libsinsp,libscap,libpman): cleanups, fixes for return values, memory management, allocations #888

Merged
merged 12 commits into from
Feb 16, 2023

Conversation

LucaGuerra
Copy link
Contributor

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug
/kind cleanup

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area libscap

/area libpman

/area libsinsp

Does this PR require a change in the driver versions?

No

What this PR does / why we need it:

This PR cumulates a number of stability fixes to check the following:

  • Return values
  • Memory allocation functions
  • Potential invalid pointer access

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

cleanup(libsinsp,libscap,libpman): cleanups, fixes for return values, memory management, allocations

@LucaGuerra
Copy link
Contributor Author

/hold

accidentally a commit

… memory management, allocations

Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
Co-authored-by: Federico Di Pierro <nierro92@gmail.com>
@LucaGuerra LucaGuerra force-pushed the cleanup/edge-case-cleanups branch from fc74890 to af2946a Compare February 16, 2023 09:54
@LucaGuerra
Copy link
Contributor Author

/unhold

@LucaGuerra
Copy link
Contributor Author

/milestone 0.10.4

@poiana poiana added this to the 0.10.4 milestone Feb 16, 2023
Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Federico Di Pierro <nierro92@gmail.com>
Co-authored-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
@LucaGuerra LucaGuerra force-pushed the cleanup/edge-case-cleanups branch from d914079 to b6a1dc3 Compare February 16, 2023 10:40
LucaGuerra and others added 2 commits February 16, 2023 10:45
… cleaned by the destructor

Signed-off-by: Luca Guerra <luca@guerra.sh>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Federico Di Pierro <nierro92@gmail.com>
Co-authored-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
Copy link
Contributor

@jasondellaluce jasondellaluce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor suggestions! Superb work!

@LucaGuerra
Copy link
Contributor Author

@jasondellaluce thanks for the comments, extra assertions wouldn't hurt, going to accept them

Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Luca Guerra <luca@guerra.sh>
LucaGuerra and others added 6 commits February 16, 2023 13:16
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
@LucaGuerra LucaGuerra force-pushed the cleanup/edge-case-cleanups branch from ad066ea to 6e67935 Compare February 16, 2023 13:22
Signed-off-by: Luca Guerra <luca@guerra.sh>
Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
@poiana
Copy link
Contributor

poiana commented Feb 16, 2023

LGTM label has been added.

Git tree hash: 106db72af068de086b976d937efbe5915d551a90

Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Contributor

poiana commented Feb 16, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, jasondellaluce, LucaGuerra

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Andreagit97,LucaGuerra,jasondellaluce]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit a3889f6 into falcosecurity:master Feb 16, 2023
@alacuku alacuku mentioned this pull request Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants