diff options
author | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2022-06-09 22:27:32 -0400 |
---|---|---|
committer | Samuel Dionne-Riel <samuel@dionne-riel.com> | 2022-06-09 22:30:13 -0400 |
commit | eb900ded42e95632bcc06f3b19238c9222c2ba8c (patch) | |
tree | b9ade25509dcc5760cf5228c551adc1868548a3b /pkgs/tools/bootloaders | |
parent | e0169d7a9d324afebf5679551407756c77af8930 (diff) |
refind: Fix possible NULL dereference
This was observed with U-Boot. See the upstream change. - https://sourceforge.net/p/refind/code/merge-requests/45/
Diffstat (limited to 'pkgs/tools/bootloaders')
-rw-r--r-- | pkgs/tools/bootloaders/refind/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/bootloaders/refind/default.nix b/pkgs/tools/bootloaders/refind/default.nix index 8d46197214c07..2381402534e11 100644 --- a/pkgs/tools/bootloaders/refind/default.nix +++ b/pkgs/tools/bootloaders/refind/default.nix @@ -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 ]; |