From c61bb295f8ecde9a8dfb922aad56c58f1b8008e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 10 Mar 2026 12:49:49 +0100 Subject: New d/p/0605-man.patch; Remove old patches --- debian/patches/0155-use_read_file.patch | 43 --------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 debian/patches/0155-use_read_file.patch (limited to 'debian/patches/0155-use_read_file.patch') diff --git a/debian/patches/0155-use_read_file.patch b/debian/patches/0155-use_read_file.patch deleted file mode 100644 index 18b1fb3..0000000 --- a/debian/patches/0155-use_read_file.patch +++ /dev/null @@ -1,43 +0,0 @@ -Description: Use read_file() instead of mem_chunk() -Origin: upstream, https://git.savannah.gnu.org/cgit/dmidecode.git/commit/?id=c76ddda0ba0aa99a55945e3290095c2ec493c892 -Forwarded: not-needed -Last-Update: 2023-07-15 ---- -This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ -Index: trunk/dmidecode.c -=================================================================== ---- trunk.orig/dmidecode.c -+++ trunk/dmidecode.c -@@ -6025,15 +6025,23 @@ int main(int argc, char * const argv[]) - pr_comment("dmidecode %s", VERSION); - - /* Read from dump if so instructed */ -+ size = 0x20; - if (opt.flags & FLAG_FROM_DUMP) - { - if (!(opt.flags & FLAG_QUIET)) - pr_info("Reading SMBIOS/DMI data from file %s.", - opt.dumpfile); -- if ((buf = mem_chunk(0, 0x20, opt.dumpfile)) == NULL) -+ if ((buf = read_file(0, &size, opt.dumpfile)) == NULL) - { - ret = 1; - goto exit_free; -+ } -+ -+ /* Truncated entry point can't be processed */ -+ if (size < 0x20) -+ { -+ ret = 1; -+ goto done; - } - - if (memcmp(buf, "_SM3_", 5) == 0) -@@ -6059,7 +6067,6 @@ int main(int argc, char * const argv[]) - * contain one of several types of entry points, so read enough for - * the largest one, then determine what type it contains. - */ -- size = 0x20; - if (!(opt.flags & FLAG_NO_SYSFS) - && (buf = read_file(0, &size, SYS_ENTRY_FILE)) != NULL) - { -- cgit v1.2.3