desauto: initialize the comment array to a sensible value #99
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If left uninitialized, the comment array is passed down to client code without being even written to, which means it contains whatever happens to be on the stack whenever the frame for
main
is created. Recent changes to glibc start code have changed said content, and the new one happens to break the test suite when propagated into some temporary files that are then fed to the main leonconv binary.That explains why using ThreadSanitizer "fixes" the test suite: presumably, the runtime initialization code happens to write in that aread of the stack and changes yet again the contents of the comment array, which happens to suit whatever expectations are in leonconv.
Fixes #98