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

Initialize reset_item_vars #70713

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

hexagonrecursion
Copy link
Contributor

@hexagonrecursion hexagonrecursion commented Jan 6, 2024

Summary

None

Purpose of change

If the migration did not explicitly set reset_item_vars to true or to false, the value remained uninitialized.

I found this via -fsanitize=undefined

reset_item_vars was introduced in 646fa4d. Based on the fact @irwiss decided to add this boolean switch and set it to true for several migrations I assume the intended default value is false.

Describe the solution

Always initialize reset_item_vars to false

Testing

-fsanitize=undefined no longer reports the error

If the migration did not explicitly set reset_item_vars to true of to
false, the value remained uninitialized.

I found this via -fsanitize=undefined

reset_item_vars was introduced in 646fa4d.
Based on the fact @irwiss decided to add this boolean switch and
set it to true for several migrations I assume the intended default
value is false.
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Jan 6, 2024
@BrettDong BrettDong added <Bugfix> This is a fix for a bug (or closes open issue) 0.H Backport PR to backport to the 0.H stable release canddiate labels Jan 7, 2024
@Maleclypse Maleclypse merged commit b459ff5 into CleverRaven:master Jan 7, 2024
65 of 73 checks passed
@hexagonrecursion hexagonrecursion deleted the sanitize-3 branch January 7, 2024 20:08
@Procyonae Procyonae mentioned this pull request May 16, 2024
dseguin added a commit that referenced this pull request May 16, 2024
@Procyonae Procyonae added 0.H Backported and removed 0.H Backport PR to backport to the 0.H stable release canddiate labels May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.H Backported astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants