commit | 5c951495457e5ea53bf95773424723241cf8ca1a | [log] [tgz] |
---|---|---|
author | Alex Brachet <abrachet@google.com> | Fri Jun 24 20:55:17 2022 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 24 20:55:17 2022 +0000 |
tree | f6dc072ab361fa0da4f71bf6c77de68f987a22be | |
parent | 83854f31e881f0f9aa2bd848a84a94e01fb09dd9 [diff] |
[kernel] Hide version string from compiler kVersionString is filled in outside of the source file that defines this variable. The compiler during lto picked up that because it is const the size should always be 3, but this isn't actually the case. By just hiding any provenance information about the return value of version_string from the compiler we force it to actually call strlen at runtime with the real value. Fixed: 103245 Change-Id: I40291d02f29bb091c4316737b7d6b6c07efc6824 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/693800 Reviewed-by: Roland McGrath <mcgrathr@google.com> Commit-Queue: Alex Brachet <abrachet@google.com> Fuchsia-Auto-Submit: Alex Brachet <abrachet@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.