cosmopolitan/tool
Justine Tunney a033b65a33
Fix apelink shell script corruption bug
We were using a shell heredoc value '@' to terminate the dos stub, but
that's not sufficiently safe. We found out sh doesn't consider control
characters as contributing to the start of a line, and had the unlucky
chance of the linker choosing the number 2624 for e_lfanew, and that's
"@\n" in ASCII, which compromised the APE shell script.

We now use the heredoc 'justineXXXXXX' with 31 bits of entropy, that's
determistically generated by hashing apelink inputs w/ crc32 / blake2b
2023-08-13 17:42:11 -07:00
..
args Move zipos into runtime package 2023-08-11 23:14:02 -07:00
build Fix apelink shell script corruption bug 2023-08-13 17:42:11 -07:00
curl Move zipos into runtime package 2023-08-11 23:14:02 -07:00
decode Further improve fatcosmocc 2023-08-13 01:51:39 -07:00
emacs Make fatcosmocc good enough to build ncurses 6.4 2023-08-12 22:30:05 -07:00
hello Move zipos into runtime package 2023-08-11 23:14:02 -07:00
lambda Switch public headers to getopt_long() entirely 2023-07-02 19:57:43 -07:00
net Move zipos into runtime package 2023-08-11 23:14:02 -07:00
plinko Move zipos into runtime package 2023-08-11 23:14:02 -07:00
scripts Make cosmocc capable of cross compilation 2023-08-13 14:40:22 -07:00
viz Further improve fatcosmocc 2023-08-13 01:51:39 -07:00
tool.mk Make fatcosmocc good enough to build Lua 5.4.6 2023-08-12 16:44:04 -07:00