• Bug#1075067: hfsutils: ftbfs with GCC-14

    From Adrian Bunk@21:1/5 to John Paul Adrian Glaubitz on Fri Apr 11 01:20:01 2025
    Control: tags -1 patch

    On Fri, Nov 29, 2024 at 02:48:21PM +0100, John Paul Adrian Glaubitz wrote:
    Hello,

    On Fri, 2024-11-29 at 14:28 +0100, Michael Prokop wrote:
    I'm not sure how relevant hfsutils is those days, but due to this
    FTBFS issue, hfsutils is no longer present in Debian unstable
    nor testing, so it won't be shipped with Debian/trixie unless
    someone takes care of this. :)

    I am going to take care of this during the holidays. I'm just currently overloaded.

    The Ubuntu diff has this fixed.

    A minimal-ish change (without the debian/rules rewrite in the Ubuntu diff) based on that is attached.

    Thanks,
    Adrian

    cu
    Adrian

    diff -Nru hfsutils-3.2.6/debian/patches/0006-Fix-memory-corruption.patch hfsutils-3.2.6/debian/patches/0006-Fix-memory-corruption.patch
    --- hfsutils-3.2.6/debian/patches/0006-Fix-memory-corruption.patch 1970-01-01 02:00:00.000000000 +0200
    +++ hfsutils-3.2.6/debian/patches/0006-Fix-memory-corruption.patch 2024-04-14 14:46:37.000000000 +0300
    @@ -0,0 +1,57 @@
    +Description: Fix memory corruption in hfssh
    + This was caused by mismatched alloc/free functions.
    + Memory allocated by Tcl must be freed by TclFree and memory transferred to
    + Tcl must be allocated using TclAlloc.
    +Author: Zixing Liu <[email protected]>
    +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421457 +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/hfsutils/+bug/493273 +Forwarded: no
    +Last-Update: 2024-06-11
    +---
    +Index: hfsutils/tclhfs.c +===================================================================
    +--- hfsutils.orig/tclhfs.c
    ++++ hfsutils/tclhfs.c
    +@@ -378,7 +378,7 @@ int file_cmd(ClientData clientData, Tcl_
    + return TCL_ERROR;
    + }
    +
    +- mem = ALLOC(char, bytes + 1);
    ++ mem = Tcl_Alloc(bytes + 1);
    + if (m
  • From John Paul Adrian Glaubitz@21:1/5 to Adrian Bunk on Fri Apr 11 07:10:01 2025
    Hello Adrian,

    On Fri, 2025-04-11 at 02:09 +0300, Adrian Bunk wrote:
    Control: tags -1 patch

    On Fri, Nov 29, 2024 at 02:48:21PM +0100, John Paul Adrian Glaubitz wrote:
    Hello,

    On Fri, 2024-11-29 at 14:28 +0100, Michael Prokop wrote:
    I'm not sure how relevant hfsutils is those days, but due to this
    FTBFS issue, hfsutils is no longer present in Debian unstable
    nor testing, so it won't be shipped with Debian/trixie unless
    someone takes care of this. :)

    I am going to take care of this during the holidays. I'm just currently overloaded.

    The Ubuntu diff has this fixed.

    A minimal-ish change (without the debian/rules rewrite in the Ubuntu diff) based on that is attached.

    OK, thank you. Would be good if this could be upstreamed, for example here [1].

    Adrian

    [1] https://github.com/targetdisk/hfsutils

    --
    .''`. John Paul Adrian Glaubitz
    : :' : Debian Developer
    `. `' Physicist
    `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)