diff -Nru macutils-2.0b3/debian/changelog macutils-2.0b3/debian/changelog --- macutils-2.0b3/debian/changelog 2018-04-03 13:33:51.000000000 +0100 +++ macutils-2.0b3/debian/changelog 2024-03-29 14:16:10.000000000 +0000 @@ -1,3 +1,9 @@ +macutils (2.0b3-16ubuntu0.1) focal; urgency=medium + + * Fix segfault with binhex, frommac and tomac. (LP: #1892558) + + -- Sudip Mukherjee Fri, 29 Mar 2024 14:16:10 +0000 + macutils (2.0b3-16build1) bionic; urgency=high * No change rebuild to pick up -fPIE compiler default diff -Nru macutils-2.0b3/debian/patches/fix-segfault.patch macutils-2.0b3/debian/patches/fix-segfault.patch --- macutils-2.0b3/debian/patches/fix-segfault.patch 1970-01-01 01:00:00.000000000 +0100 +++ macutils-2.0b3/debian/patches/fix-segfault.patch 2024-03-29 14:15:54.000000000 +0000 @@ -0,0 +1,41 @@ +Description: Fix segfault by including a missing header file + Without the header file, the compiler had no way of knowing what the + functions get_rdfileopt() and get_wrfileopt() looks like and as a result + it did an implicit declaration and assumed they returns an integer + instead of a pointer. +Origin: backport, https://sources.debian.org/src/macutils/2.0b3-17/debian/patches/warnings-2.0b3-17.diff +Bug-Ubuntu: https://launchpad.net/bugs/1892558 +Forwarded: no +Last-Update: 2024-03-29 +--- + +--- macutils-2.0b3.orig/binhex/binhex.c ++++ macutils-2.0b3/binhex/binhex.c +@@ -2,6 +2,7 @@ + #include "../fileio/machdr.h" + #include "../fileio/rdfile.h" + #include "../util/patchlevel.h" ++#include "../fileio/rdfileopt.h" + + extern char *malloc(); + extern char *realloc(); +--- macutils-2.0b3.orig/comm/frommac.c ++++ macutils-2.0b3/comm/frommac.c +@@ -5,6 +5,7 @@ + #include "globals.h" + #include "../fileio/fileglob.h" + #include "../fileio/wrfile.h" ++#include "../fileio/wrfileopt.h" + + #define LOCALOPT "lmxyzoTVH" + +--- macutils-2.0b3.orig/comm/tomac.c ++++ macutils-2.0b3/comm/tomac.c +@@ -2,6 +2,7 @@ + #include "comm.h" + #include "../fileio/machdr.h" + #include "../fileio/rdfile.h" ++#include "../fileio/rdfileopt.h" + #include "../util/patchlevel.h" + #include "globals.h" + diff -Nru macutils-2.0b3/debian/patches/series macutils-2.0b3/debian/patches/series --- macutils-2.0b3/debian/patches/series 2010-03-31 15:29:07.000000000 +0100 +++ macutils-2.0b3/debian/patches/series 2024-03-29 14:14:35.000000000 +0000 @@ -1 +1,2 @@ debian-changes-2.0b3-16 +fix-segfault.patch