From 1475f90ab220f69cb06e16a33adb1f43de1875e2 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 20 Feb 2023 22:20:06 +0000 Subject: [PATCH] libomxil-bellagio: fix stack overred `-DFORTIFY_SOURCE=3` managed to expose stack overread problem as: https://github.com/NixOS/nixpkgs/pull/212498#issuecomment-1435357971 The change pull fix proposed upstream to avoid stack overread. --- .../libraries/libomxil-bellagio/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libomxil-bellagio/default.nix b/pkgs/development/libraries/libomxil-bellagio/default.nix index 67d9ec29b207c..b8f8feb5ddc88 100644 --- a/pkgs/development/libraries/libomxil-bellagio/default.nix +++ b/pkgs/development/libraries/libomxil-bellagio/default.nix @@ -1,4 +1,7 @@ -{ lib, stdenv, fetchurl }: +{ lib +, stdenv +, fetchurl +}: stdenv.mkDerivation rec { pname = "libomxil-bellagio"; @@ -15,6 +18,12 @@ stdenv.mkDerivation rec { patches = [ ./fedora-fixes.patch ./fno-common.patch + # Fix stack overread: https://sourceforge.net/p/omxil/patches/8/ + (fetchurl { + name = "no-overread.patch"; + url = "https://sourceforge.net/p/omxil/patches/8/attachment/0001-src-base-omx_base_component.c-fix-stack-overread.patch"; + hash = "sha256-ElpiDxU0Ii4Ou8ebVx4Ne9UnB6mesC8cRj77N7LdovA="; + }) ]; # Disable parallel build as it fails as: