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 dereference into an empty container #75630

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Conversation

kevingranade
Copy link
Member

Summary

None

Purpose of change

A bad assumption on my part that itype::src was always populated by at least "dda" led to attempting to derference an empty container, causing a crash, but somehow only with LTO builds.

Describe the solution

Check for container population before dereferencing.

Testing

It's only exercised in the test, so just need the tests to run to completion.
I reproduced and tested with a LTO build locally, hopefully that makes the g++9 build happy again, requires #75576 to be merged as well or it will hit the OTHER LTO-specific breakage.

This was somehow only crashing on LTO builds
@github-actions github-actions bot added Items: Battery / UPS Electric power management Code: Tests Measurement, self-control, statistics, balancing. [C++] Changes (can be) made in C++. Previously named `Code` astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Aug 12, 2024
@akrieger akrieger merged commit a3d543f into master Aug 13, 2024
26 checks passed
@kevingranade kevingranade deleted the fix-src-dereference-for-lto branch August 13, 2024 05:20
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Tests Measurement, self-control, statistics, balancing. Items: Battery / UPS Electric power management json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants