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

fix CVE-2022-45188 #240

Merged
merged 1 commit into from Mar 28, 2023
Merged

fix CVE-2022-45188 #240

merged 1 commit into from Mar 28, 2023

Conversation

dgsga
Copy link
Contributor

@dgsga dgsga commented Mar 26, 2023

This commit fixes the heap-based buffer overflow in afp_getappl()

@dgsga dgsga closed this Mar 26, 2023
@dgsga dgsga deleted the prtest branch March 26, 2023 14:21
@dgsga dgsga restored the prtest branch March 26, 2023 14:21
@dgsga dgsga reopened this Mar 26, 2023
@rdmark
Copy link
Member

rdmark commented Mar 26, 2023

FYI I'm trying to figure out why Sonar scanning is failing.

Update: It's a Sonar permission issue.

Update 2: I've disabled Sonar scanning for PRs originating from forks. This is a github limitation / security measure.

@dgsga
Copy link
Contributor Author

dgsga commented Mar 27, 2023

Just to double-check I setup SonarCloud on the prtest branch of my fork (which has the CVE fix applied) and it passes analysis.

@rdmark
Copy link
Member

rdmark commented Mar 27, 2023

@dgsga Thank you for running the tests, and for preparing this patch in the first place!

May I ask you to squash your commits and force push to this PR, so that we get a clean commit log? I'm sure you're well familiar with git, but we have some advice in the FAQ here https://github.com/Netatalk/netatalk/wiki/Developer-Notes#user-content-FAQ

This commit fixes the heap-based buffer overflow in afp_getappl()
@dgsga
Copy link
Contributor Author

dgsga commented Mar 28, 2023

Have rebased the prtest branch on my fork on upstream main so you should have the clean log now...

@rdmark rdmark merged commit dfab568 into Netatalk:main Mar 28, 2023
1 check passed
@rdmark
Copy link
Member

rdmark commented Mar 28, 2023

Looks great. Merged. Thanks again for your contribution!

@dgsga dgsga deleted the prtest branch March 28, 2023 18:56
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.

None yet

2 participants