nmh-workers
[Top] [All Lists]

Re: Crash in 'post' after recent commit - patch in next mail...

2021-05-11 19:58:45
Valdis wrote:

I originally put "patch in next mail" in the subject because the fix to not 
use
a static char[] seemed obvious.

I went the other way, so all the other callers of etcpath() wouldn't
have to change:

commit 03a0dd21
Author: David Levine <levinedl@acm.org>
Date:   Tue May 11 19:48:15 2021 -0400

    Don't free the result of an etcpath() call.

    Instead, changed etcpath() to always return its static storage
    rather than sometimes returning dynamically allocated memory.

    Fix to commit 85aebdf30.  Thanks to Valdis for tripping over it,
    investigating it, and providing a detailed report.

:100644 100644 464de8f5 e9dd91af M      sbr/path.c
:100644 100644 093b73eb c52fd18d M      uip/aliasbr.c
:100755 100755 0928fe94 971ec8c4 M      test/whom/test-whom

David

<Prev in Thread] Current Thread [Next in Thread>