Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pkgs/development/libraries/silgraphite/CVE-2026-50593.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/inc/opcodes.h
+++ b/src/inc/opcodes.h
@@ -76,6 +76,7 @@ of the License or (at your option) any later version.

#define push(n) { *++sp = n; }
#define pop() (*sp--)
-#define slotat(x) (map[(x)])
+#define slotat(x) ((map + (x) >= &smap[-1] && map + (x) < smap.end()) ? \
+ map[(x)] : (status = Machine::slot_offset_out_bounds, nullptr))
#define DIE { is=seg.last(); status = Machine::died_early; EXIT(1); }
#define POSITIONED 1
1 change: 1 addition & 0 deletions pkgs/development/libraries/silgraphite/graphite2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ stdenv.mkDerivation (finalAttrs: {
url = "https://src.fedoraproject.org/rpms/graphite2/raw/deba28323b0a3b7a3dcfd06df1efc2195b102ed7/f/graphite2-1.3.14-gcc15.patch";
hash = "sha256-vkkGkHkcsj1mD3OHCHLWWgpcmFDv8leC4YQm+TsbIUw=";
})
./CVE-2026-50593.patch
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ ./macosx.patch ];
postPatch = ''
Expand Down