nixpkgs-suyu/pkgs/stdenv/generic
aszlig b25b6e0c75
stdenv: Improve ELF detection for isELF
The isELF function only checks whether ELF is contained within the first
4 bytes of the file, which is a bit fuzzy and will also return
successful if it's a text file starting with ELF, for example:

  ELF headers
  -----------

  Some text here about ELF headers...

So instead, we're now doing a precise match on \x7fELF.

Signed-off-by: aszlig <aszlig@nix.build>
Acked-by: @Ericson2314
Closes: https://github.com/NixOS/nixpkgs/pull/47244
2018-09-25 06:55:18 +02:00
..
builder.sh
check-meta.nix stdenv: Validate meta.outputsToInstall 2018-09-18 10:38:44 -04:00
default-builder.sh
default.nix top-level, stdenv: Make system and stdenv.system describe the hostPlatform. 2018-09-06 08:33:51 -04:00
make-derivation.nix Merge remote-tracking branch 'upstream/master' into staging 2018-09-18 16:55:42 -04:00
setup.sh stdenv: Improve ELF detection for isELF 2018-09-25 06:55:18 +02:00