lol

refind: Fix possible NULL dereference

This was observed with U-Boot.

See the upstream change.

- https://sourceforge.net/p/refind/code/merge-requests/45/

+8 -1
+8 -1
pkgs/tools/bootloaders/refind/default.nix
··· 1 - { lib, stdenv, fetchurl, gnu-efi, nixosTests }: 1 + { lib, stdenv, fetchurl, fetchpatch, gnu-efi, nixosTests }: 2 2 3 3 let 4 4 archids = { ··· 24 24 patches = [ 25 25 # Removes hardcoded toolchain for aarch64, allowing successful aarch64 builds. 26 26 ./0001-toolchain.patch 27 + 28 + # Fixes issue with null dereference in ReadHiddenTags 29 + # Upstream: https://sourceforge.net/p/refind/code/merge-requests/45/ 30 + (fetchpatch { 31 + url = "https://github.com/samueldr/rEFInd/commit/29cd79dedabf84d5ddfe686f5692278cae6cc4d6.patch"; 32 + sha256 = "sha256-/jAmOwvMmFWazyukN+ru1tQDiIBtgGk/e/pczsl1Xc8="; 33 + }) 27 34 ]; 28 35 29 36 buildInputs = [ gnu-efi ];