Unverified Commit 2de11a76 authored by Nick Cao's avatar Nick Cao
Browse files

qt6.qtsvg: add patch for QTBUG-117944

parent 864c11de
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
, libmng
, zlib
, pkg-config
, fetchpatch2
}:

qtModule {
@@ -12,4 +13,13 @@ qtModule {
  qtInputs = [ qtbase ];
  buildInputs = [ libwebp jasper libmng zlib ];
  nativeBuildInputs = [ pkg-config ];
  patches = [
    # Fix nullptr dereference with invalid SVG
    # https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-117944
    (fetchpatch2 {
      name = "QTBUG-117944.patch";
      url = "https://code.qt.io/cgit/qt/qtsvg.git/patch/?id=edc8ca7f";
      hash = "sha256-kBQYlQqPb0QkRhatQyaGdxE1Y5zHd6/ZEd5zn0gRVoM=";
    })
  ];
}