-
Notifications
You must be signed in to change notification settings - Fork 573
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
drmodtrack offset field has uninitialized values on Windows #4777
Comments
derekbruening
added a commit
that referenced
this issue
Mar 10, 2021
PR #2940 and #2973 added an offset field to drmodtrack for #2939, but they ifdef-ed the field in some places but not others, resulting in uninitialized output. Since it's already locked into the interface, we always set it to 0 here and include it in internal structures to fix the problem. Tested on drmodtrack-test where the fields were manually confirmed to no longer contain bogus values, and where the test doesn't fail when that masked this bug before. Issue: #2939, #4474, #4777 Fixes #4777
derekbruening
added a commit
that referenced
this issue
Mar 10, 2021
PR #2940 and #2973 added an offset field to drmodtrack for #2939, but they ifdef-ed the field in some places but not others, resulting in uninitialized output. Since it's already locked into the interface, we always set it to 0 here and include it in internal structures to fix the problem. Tested on drmodtrack-test where the fields were manually confirmed to no longer contain bogus values, and where the test doesn't fail when that masked this bug before. Issue: #2939, #4474, #4777 Fixes #4777
derekbruening
added a commit
that referenced
this issue
Mar 10, 2021
PR #2940 and #2973 added an offset field to drmodtrack for #2939, but they ifdef-ed the field in some places but not others, resulting in uninitialized output. Since it's already locked into the interface, we always set it to 0 here and include it in internal structures to fix the problem. Tested on drmodtrack-test where the fields were manually confirmed to no longer contain bogus values, and where the test doesn't fail when i#4474 adds a new field that shifts the test buffer to avoid the happens-to-match scenario that masked this bug in that test before. Issue: #2939, #4474, #4777 Fixes #4777
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For #2939 an offset field was added to drmodtrack in PR #2940 (and PR #2973). However, it is ifdef-ed out for Windows in some places but not in others. Now, I'm adding a new field for #4474, and drmodtrack-test is failing with uninit bogus printed offset values differing bet online and offline. Not sure how it passed before: probably just got lucky and the uninit values matched.
It's too late to ifdef it out of the interface so maybe the best solution is to set it to 0 on Windows.
The text was updated successfully, but these errors were encountered: