Skip to content

Fix null-pointer-dereference in yasm_section_bcs_append#263

Merged
PeterJohnson merged 2 commits intoyasm:masterfrom
haruki3hhh:fix-null-deref-yasm_section_bcs_append
Jun 24, 2024
Merged

Fix null-pointer-dereference in yasm_section_bcs_append#263
PeterJohnson merged 2 commits intoyasm:masterfrom
haruki3hhh:fix-null-deref-yasm_section_bcs_append

Conversation

@haruki3hhh
Copy link
Contributor

Fix a Null dereference bug in #247

yasm_error_set(YASM_ERROR_VALUE, "Attempt to append bytecode to a NULL section or with a NULL bytecode");
return NULL;
}

Copy link
Member

Choose a reason for hiding this comment

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

Needs indentation fixed to match following code. It's also not possible for bc to be null here, since it's inside of a if (bc) block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Dear PeterJohnson,

Could you check the file I updated?

Thanks!

@PeterJohnson PeterJohnson merged commit 121ab15 into yasm:master Jun 24, 2024
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request May 29, 2025
yasm is fixed with yasm/yasm#263 AKA
yasm/yasm@121ab15 but
no stable release with that commit.
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