Skip to content

gh-96678: A few asserts to demonstrate undefined behaviour#18

Open
matthiasgoergens wants to merge 1 commit intomainfrom
matthias/test-ub-audioop
Open

gh-96678: A few asserts to demonstrate undefined behaviour#18
matthiasgoergens wants to merge 1 commit intomainfrom
matthias/test-ub-audioop

Conversation

@matthiasgoergens
Copy link
Copy Markdown
Owner

@matthiasgoergens matthiasgoergens commented Sep 8, 2022

@matthiasgoergens matthiasgoergens changed the title Test for UB in audioop A few asserts to demonstrate undefined behaviour Sep 8, 2022
@matthiasgoergens matthiasgoergens changed the title A few asserts to demonstrate undefined behaviour gh-96678: A few asserts to demonstrate undefined behaviour Sep 8, 2022
Comment thread Modules/_struct.c
Py_ssize_t i = f->size;
const unsigned char *bytes = (const unsigned char *)p;
do {
assert(0 <= x);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These are addressed in python#96739. Any feedback you have on that PR would be welcome.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Thanks, I'll have a look.

The PR description already sounds exactly like the approach I had in mind for fixing these issues.

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