untrusted comment: verify with openbsd-77-base.pub
RWSbCCUoGpcxVVa1FHoaUJpo+zXbfwJQqUMsFHljg13328KLR6JZeS5Xz9aAReNhKdDr0ssZCi549LMfpKZymlIp9kkEe0MdCgc=

OpenBSD 7.7 errata 026, March 10, 2026:

Prevent an integer overflow leading to out-of-bounds read in FreeType.
CVE-2026-23865

Apply by doing:
    signify -Vep /etc/signify/openbsd-77-base.pub -x 026_freetype.patch.sig \
        -m - | (cd /usr/xenocara && patch -p0)

And then rebuild and install freetype:
    cd /usr/xenocara/lib/freetype
    make obj
    make build

Index: lib/freetype/src/truetype/ttgxvar.c
===================================================================
RCS file: /cvs/xenocara/lib/freetype/src/truetype/ttgxvar.c,v
diff -u -p -r1.31 ttgxvar.c
--- lib/freetype/src/truetype/ttgxvar.c	9 Mar 2025 15:12:55 -0000	1.31
+++ lib/freetype/src/truetype/ttgxvar.c	5 Mar 2026 17:39:51 -0000
@@ -666,11 +666,9 @@
       if ( long_words )
         per_region_size *= 2;
 
-      if ( FT_NEW_ARRAY( varData->deltaSet, per_region_size * item_count ) )
+      if ( FT_QALLOC_MULT( varData->deltaSet, item_count, per_region_size ) )
         goto Exit;
-      if ( FT_Stream_Read( stream,
-                           varData->deltaSet,
-                           per_region_size * item_count ) )
+      if ( FT_STREAM_READ( varData->deltaSet, item_count * per_region_size ) )
       {
         FT_TRACE2(( "deltaSet read failed." ));
         error = FT_THROW( Invalid_Table );
