Re:OpenBSD now enforcing no invalid NUL characters in shell ...
by oguz-ismail on Tuesday September 24, 2024 @12:20PM
(#41638169)
It is. Binaries generated by cosmocc have NUL in the middle.
[ Parent
| on HN ]
Re:OpenBSD now enforcing no invalid NUL characters in shell ...
by comex on Tuesday September 24, 2024 @04:05PM
(#41640331)
Ah, indeed. Here are the first 16 bytes of one:
4d 5a 71 46 70 44 3d 27 0a 00 00 10 00 f8 00 00 |MZqFpD='........|
There are already nul bytes here, and there are a lot more before the single quote gets closed at offset 0x200.