nixpkgs/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 stdenvs: Distinguish between extraBuildInputs and extraNativeBuildInputs 2017-08-18 12:02:13 -04:00
check-meta.nix stdenv: Validate meta.outputsToInstall 2018-09-18 10:38:44 -04:00
default-builder.sh * "." -> "source". 2005-12-05 14:11:09 +00:00
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