Merge pull request #177120 from samueldr/fix/refind-null-hiddentools

refind: Fix possible NULL dereference
This commit is contained in:
Anderson Torres 2022-06-10 21:15:46 -03:00 committed by GitHub
commit 9b492fce93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, gnu-efi, nixosTests }:
{ lib, stdenv, fetchurl, fetchpatch, gnu-efi, nixosTests }:
let
archids = {
@ -24,6 +24,13 @@ stdenv.mkDerivation rec {
patches = [
# Removes hardcoded toolchain for aarch64, allowing successful aarch64 builds.
./0001-toolchain.patch
# Fixes issue with null dereference in ReadHiddenTags
# Upstream: https://sourceforge.net/p/refind/code/merge-requests/45/
(fetchpatch {
url = "https://github.com/samueldr/rEFInd/commit/29cd79dedabf84d5ddfe686f5692278cae6cc4d6.patch";
sha256 = "sha256-/jAmOwvMmFWazyukN+ru1tQDiIBtgGk/e/pczsl1Xc8=";
})
];
buildInputs = [ gnu-efi ];