-
-
Notifications
You must be signed in to change notification settings - Fork 706
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 appender code that might not initialize memory that might point at huge allocations #9084
Conversation
pointers in unallocated space, thereby pinning unused memory.
Thanks for your pull request, @schveiguy! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "stable + phobos#9084" |
switching to draft, need to add a test. |
well, I guess there isn't any sane testing harnesses I can incorporate here, and I don't want to add one for this. So it will have to go in with existing tests. |
Wouldn't a test to make sure that the elements were zeroed out suffice? |
I'm inclined to agree with @jmdavis. Given the fragile nature of the proof-test and that it requires a whole-program testing framework that does not currently exist in Phobos, I would think that a test that ensures that the desired "correct state" is achieved should be sufficient for our purposes. Such a test would prevent regressions which is mostly what we're after. |
I can try and add a unittest that attempts to cause the problem to happen. Let's see if I can get it to fail with the original code though. |
OK, a test is added. I added a printout for the log in case the test isn't properly run. FWIW, when I tested locally without the fix, the test failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise looks good
edb6853
to
b0b7341
Compare
b0b7341
to
13179be
Compare
Not going to reproduce all the junk I did in the bug report. See the report.