This question is related to a question offsite at FATAL: MemorySanitizer can not mmap the shadow memory. The person who responded said:
Do simple tests (e.g. this one) work for you?
The link takes me to a GitHub web page at http://github.com/llvm-mirror/compiler-rt/blob/master/test/msan/stack-origin.cc, which include the HTML markup. That means I can't perform the following with wget
or curl
:
wget http://github.com/llvm-mirror/compiler-rt/blob/master/test/msan/stack-origin.cc
gcc -g2 -fsanitize=memory stack-origin.cc -o stack-origin.exe
I'm also trying to avoid the entire clone since I only need the one source file.
How do I fetch the actual source file from GitHub using wget or curl?