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 stack corruption in Matrix tests #803

Merged

Conversation

darbyjohnston
Copy link
Contributor

Hi,

I was running the tests on Windows 10 with Visual Studio 2019 and getting this exception from ImathTest/testMatrix.cpp:

Run-Time Check Failure #2 - Stack around the variable 'm1' was corrupted.

It looks like this is coming from the M22 tests, there are two assignments that are out of bounds. I made a small fix and the test run now completes succesfully with no exceptions. Strangely I also tried running the test on CentOS 7 and did not get any exceptions, and even running it through Valgrind didn't turn up any errors, so I'm not quite sure what's going on there...

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 1, 2020

CLA Check
The committers are authorized under a signed CLA.

Signed-off-by: Darby Johnston <darbyjohnston@yahoo.com>
@meshula
Copy link
Contributor

meshula commented Aug 3, 2020

Sounds like an issue for the valgrind developers! Surprising such a simple overrun is undetected.

Copy link
Member

@cary-ilm cary-ilm left a comment

Choose a reason for hiding this comment

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

LGTM

@cary-ilm cary-ilm merged commit 50ad826 into AcademySoftwareFoundation:master Aug 5, 2020
@darbyjohnston darbyjohnston deleted the bugfix/matrix_test branch August 6, 2020 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants