Repository navigation
Merged
Conversation
added 2 commits
November 9, 2026 00:34
… store into a global The call-evidence walker knew a body's parameters but not its locals, so `str = buf` (zlib's gzgets: the output cursor) read as the parameter stored into a global and the function stayed raw: 'retains param 1 (stored in a global)', 187 functions in 14 libraries of the #3116 survey. The walker now carries the body's locals (ci_own_collect_locals, as the ownership walk does) and only a name that is neither a parameter nor a local is a global. Fixture: conan_facade_local_alias_not_global_test (a local alias is no store; a true file-scope store still is).
zlib's crc32_z walks the buffer through an alias (`words = (z_word_t const *)buf`) and at the end writes the alias back into the parameter (`buf = (const unsigned char *)words`). The ownership walk recorded the right-hand local as stored, so the parameter read as retained 'through local words' and crc32 and crc32_z stayed raw (165 functions in 13 libraries read 'stored through a local' in the #3116 survey; this is one of its shapes). A parameter variable is the callee's frame: a value written into it outlives nothing. Fixture: conan_facade_local_alias_not_global_test's thing_fill rebinds buf from its alias.
2 of 51 tasks
Contributor
Author
|
Battery GREEN on a10f581 ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of #3175 (two of its shapes). The call-evidence walker now knows the body's locals, so
str = bufis an alias, not a store into a global ('stored in a global', 187 functions); and the ownership walk records nothing for a write into a parameter's own variable (buf = (const unsigned char *)words, 'stored through local words'). Fixture conan_facade_local_alias_not_global_test. Gate and internals lane green on the first commit; the full chain on both is running.