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

BUG: Fixes for Undefined Behavior Sanitizer (UBSan) errors. #14043

Merged
merged 2 commits into from Jul 17, 2019

Conversation

charris
Copy link
Member

@charris charris commented Jul 17, 2019

Backport of #13590 .

When I build numpy 1.16.3 with clang version 7.0.0 (tags/RELEASE_700/final) and -fsanitize=undefined, I got 2 runtime error:

  1. numpy/core/src/multiarray/dragon4.c:877:36: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
  2. numpy/core/src/umath/reduction.c:57:19: runtime error: null pointer passed as argument 2, which is declared to never be null

@charris charris added this to the 1.16.5 release milestone Jul 17, 2019
@charris charris merged commit 2dad184 into numpy:maintenance/1.16.x Jul 17, 2019
@charris charris deleted the backport-13590 branch July 17, 2019 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants