Skip to content

Commit

Permalink
libomxil-bellagio: fix stack overred
Browse files Browse the repository at this point in the history
`-DFORTIFY_SOURCE=3` managed to expose stack overread problem as:
    #212498 (comment)

The change pull fix proposed upstream to avoid stack overread.
  • Loading branch information
trofi committed Feb 20, 2023
1 parent 91625cd commit 1475f90
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/development/libraries/libomxil-bellagio/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{ lib, stdenv, fetchurl }:
{ lib
, stdenv
, fetchurl
}:

stdenv.mkDerivation rec {
pname = "libomxil-bellagio";
Expand All @@ -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:
Expand Down

0 comments on commit 1475f90

Please sign in to comment.