about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-04-16 01:16:43 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-04-16 01:18:01 +0530
commit70601b8da249c789883725950ddf046070909095 (patch)
tree6d5d2e6c8fdcac432daffab3ea7c71330e473f36 /src/rustllvm/ExecutionEngineWrapper.cpp
parent6a0cfbcac294faab2b8bcd95a04cda042101a2d8 (diff)
parente0f997d3477fe28c2c5d99229bd1cd0de81604b4 (diff)
downloadrust-70601b8da249c789883725950ddf046070909095.tar.gz
rust-70601b8da249c789883725950ddf046070909095.zip
Rollup merge of #32926 - caipre:rustbuild-verify-download, r=alexcrichton
rustbuild: Verify sha256 of downloaded tarballs

Here's a quick first pass at this.

I don't use Python often enough to claim that this is totally Pythonic. I've left off some (almost certainly unnecessary) error handling regarding opening and processing files. The whole tarball is read into memory to calculate the hash, but the file isn't *so* large so that should be fine. I don't care for the output from `raise RuntimeError`, but that's how `run()` does it so I'm following precedent.

Tested by manually changing the value of `expected`, and by modifying the tarball then forcing `rustc_out_of_date()`. Both cases tripped the error.

Closes https://github.com/rust-lang/rust/issues/32902
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions