[Bug 273614] archivers/rpm4: Backport upstream patch to fix segfaults in 4.18.1

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 07 Sep 2023 13:21:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273614

            Bug ID: 273614
           Summary: archivers/rpm4: Backport upstream patch to fix
                    segfaults in 4.18.1
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rodrigo@FreeBSD.org
          Reporter: markj@FreeBSD.org
          Assignee: rodrigo@FreeBSD.org
             Flags: maintainer-feedback?(rodrigo@FreeBSD.org)

Created attachment 244693
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=244693&action=edit
proposed patch

The patch is a backport of this upstream commit:
https://github.com/rpm-software-management/rpm/commit/ea3187cfcf9cac87e5bc5e7db79b0338da9e355e

We've observed that this fixes occasional crashes in dnf, which uses
librpmio.so:

#0  0x000000080083c884 in strlen () at /lib/libc.so.7
#1  0x00000008007ddb9e in __vfprintf () at /lib/libc.so.7
#2  0x00000008007507d9 in vsnprintf () at /lib/libc.so.7
#3  0x0000000801f8f248 in rpmlog () at /usr/local/lib/librpmio.so.9
#4  0x0000000801ffd824 in sqlite3_log () at /usr/local/lib/libsqlite3.so.0
#5  0x00000008020235a7 in  () at /usr/local/lib/libsqlite3.so.0

-- 
You are receiving this mail because:
You are the assignee for the bug.