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

Critical bugfix: Fix UB in JsProxy_Call #1335

Merged
merged 1 commit into from
Mar 14, 2021

Conversation

hoodmane
Copy link
Member

@hoodmane hoodmane commented Mar 14, 2021

The C compiler hates me. This was introduced in #1033.

@rth
Copy link
Member

rth commented Mar 14, 2021

Well the issue is that, particularly after doing a bit of Rust, that the compiler is not very helpful there. Is there a way we could enable more static analysis, or use third party tools to do that?

I think at the very least we should compile core with -Wall (possibly -Wextra) and maybe enable a few more warnings as errors.

@rth rth merged commit 75e003f into pyodide:master Mar 14, 2021
@rth
Copy link
Member

rth commented Mar 14, 2021

Yes, this should have been caught as -Wsometimes-uninitialized warning / error by the compiler I think. Cf #1336

@hoodmane hoodmane deleted the undefined-behavior-fix branch March 14, 2021 18:12
tytgatlieven pushed a commit to tytgatlieven/pyodide that referenced this pull request Apr 7, 2021
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