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] SEGV when passing NULL buf_addr to fpgaPrepareBuffer() #3077

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

michael-adler
Copy link
Member

@michael-adler michael-adler commented Jan 16, 2024

Description

Mistaken pointer dereference. buf_addr is allowed to be NULL when testing the fpgaPrepareBuffer() capabilities.

Resolves a regression introduced in commit 4d757b6.

Collateral (docs, reports, design examples, case IDs):

  • Document Update Required? (Specify FIM/AFU/Scripts)

Tests added:

Tests run:

Mistaken pointer dereference. buf_addr is allowed to be NULL
when testing the fpgaPrepareBuffer() capabilities.
Copy link

@boelkrug-intel boelkrug-intel left a comment

Choose a reason for hiding this comment

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

Looks good to me. Ship it!

Copy link
Contributor

@pcolberg pcolberg left a comment

Choose a reason for hiding this comment

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

Thanks @michael-adler! Could you extend the commit message to point out that this resolves a regression introduced in commit 4d757b6?

@michael-adler michael-adler merged commit a53d5e0 into OFS:master Jan 16, 2024
18 of 19 checks passed
@michael-adler michael-adler deleted the mcadler/null_buf_addr branch January 16, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants