Skip to content

Conversation

@sinclairjw
Copy link
Contributor

There are 2 bugs in the findUserPersonalCertsOnDisk method:-

  • The return from CertCreateCertificateContext is not checked, which leads to a subsequent crash in addCertRow etc. should the call fail
  • The certificate context, if created, is not freed after use

@sinclairjw sinclairjw requested review from a team as code owners September 10, 2024 10:55
directionless
directionless previously approved these changes Sep 10, 2024
@directionless
Copy link
Member

@sinclairjw The code looks reasonable to me, but the linter has some style changes.

@zwass
Copy link
Member

zwass commented Sep 25, 2024

@directionless I fixed the lint. I think it's ready to merge with your re-approval.

@directionless directionless changed the title Check and free cert context creation Fix: Check and free cert context creation in windows certificates table Oct 8, 2024
@directionless directionless merged commit 64d2ebe into osquery:master Oct 8, 2024
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.

3 participants