2 ms·
The threat is not that the cache contains builds of untrusted code but that it contains builds that do not match the code that they are associated with.
by account42 4y ago
The threat is not that the cache contains builds of untrusted code but that it contains builds that do not match the code that they are associated with.
- Tobu 4y agoAs far as I'm aware (ICEs…) compilers aren't hardened against untrusted code, and a sufficiently capable exploit could be used to poison the cache.
- jonstewart 4y agoccache uses cryptographic hashing of file contents, in addition to matching compiler arguments, so you can be sure that the code matches.
- slavik81 4y agoIt uses a cryptographic hash of the _inputs_ to the compiler, but there is no way to verify that the cached artifact matches the _output_ of the compiler without actually compiling it yourself.