nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated


From: Ralph Corderoy
Subject: [nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 1.7-branchpoint-751-g2f6714a
Date: Tue, 25 May 2021 09:52:24 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  2f6714a8ddd4fc24e49b0586a45300a624a6d706 (commit)
       via  1ef5c627ecfd0ea6dd2d38ba104d2069c4dcbff5 (commit)
       via  c8b56a059e067f92e9650ce5fed4e1290f46e66e (commit)
       via  17d33500d91a43162b65c1398128ec7472804714 (commit)
       via  465c71edc74318a873bf938dcc4723f2ab0478a8 (commit)
       via  e78ee9e82f0a83d108fceffb8ac1ba48449c5f1f (commit)
       via  0e81f52b70c30a49ae3fce18695f34e60949c087 (commit)
       via  cc3e862b0255124fc4183284838ae6d32ddf47bd (commit)
       via  d9cf53bbd2c1b6997a9e709e72a0712aadb67a3a (commit)
       via  2ee3201150f81bf575369d70b28abdecf4227ecb (commit)
       via  d2e954592e06af4f06a76cbf7ac9165b209ca257 (commit)
       via  79c201116776ffbb0880ca174cd8425756cb4b07 (commit)
       via  c72570fb7b5a4040f9ec28d1cc64a38d794a6292 (commit)
      from  dc432c207466f5c02442377e904d01d5996d1e33 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2f6714a8ddd4fc24e49b0586a45300a624a6d706
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 14:39:16 2021 +0100

    uip/popsbr.c: replace TRUNCCPY() with ABORTCPY() in multiline().
    
    If the full line from the server can't be returned because the buffer is
    too small then abort.  It shouldn't be possible with the current sizes
    of the two buffers involved.

commit 1ef5c627ecfd0ea6dd2d38ba104d2069c4dcbff5
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 14:36:53 2021 +0100

    uip/popsbr.c: replace trunccpy() with abortcpy() for SASL mechanisms.
    
    Don't continue if the SASL capability mechanisms can't be fully copied
    for later parsing.

commit c8b56a059e067f92e9650ce5fed4e1290f46e66e
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 14:33:17 2021 +0100

    uip/mhstoresbr.c: replace trunccpy() with abortcpy() for ‘%f’ expansion.
    
    When expanding a storage string, a truncated filename shouldn't proceed
    through the system.

commit 17d33500d91a43162b65c1398128ec7472804714
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 14:31:49 2021 +0100

    uip/mhshowsbr.c: replace trunccpy() with abortcpy() for ‘%f’ expansion.
    
    When expanding a display string, a truncated filename shouldn't proceed
    through the system.

commit 465c71edc74318a873bf938dcc4723f2ab0478a8
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 14:27:08 2021 +0100

    uip/mhbuildsbr.c: replace trunccpy() with abortcpy() for ‘%f’ expansion.
    
    When expanding a composition string, a truncated filename shouldn't
    proceed through the system.

commit e78ee9e82f0a83d108fceffb8ac1ba48449c5f1f
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 14:04:28 2021 +0100

    sbr/seq_list.c: replace trunccpy() with abortcpy() in seq_list().
    
    For truncation to occur, MAXBUFFER must be too small to hold the current
    message.

commit 0e81f52b70c30a49ae3fce18695f34e60949c087
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 11:07:02 2021 +0100

    uip/popsbr.c: replace trunccpy() in pop_init() with TRUNCCPY().
    
    Fixes 7f565b90.

commit cc3e862b0255124fc4183284838ae6d32ddf47bd
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 10:55:51 2021 +0100

    sbr/path.c: replace will-never-truncate TRUNCCPY() with memcpy().
    
    No truncation can occur because the source's length is obtained with
    strlen() before the TRUNCCPY() and explicitly checked against the
    destination's size in order to give an explicit stderr warning.  As the
    source length is known and it will fit, just memcpy the bytes rather
    than use TRUNCCPY() which will duplicate finding the string's length.

commit d9cf53bbd2c1b6997a9e709e72a0712aadb67a3a
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 10:59:35 2021 +0100

    uip/imaptest.c: replace mh_xmalloc() and trunccpy() with xmemtostr().
    
    parse_capability() takes a pointer to a run of char and their length; they
    may not be NUL-terminated.  The code was and still does copy them into
    newly malloc'd memory and appends a NUL.  The copy was using trunccpy()
    knowing it would copy all the needed source bytes before stopping as no
    source NUL was found and putting its own NUL at the end, but that's a bit
    obscure and duplicates effort as the number of bytes to copy is known.
    Instead, use the new xmemtostr() to replace both calls.  It also has
    the advantage of spotting an overflow of the length, say when pointer
    arithmetic produces -1 AKA SIZE_MAX without which the bytes would be
    copied to mh_xmalloc(0).

commit 2ee3201150f81bf575369d70b28abdecf4227ecb
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 10:16:11 2021 +0100

    sbr/utils.c: add xmemtostr() to malloc string from run of bytes.
    
    Copies the source bytes into a new destination sized for them plus a
    terminating NUL which it appends.

commit d2e954592e06af4f06a76cbf7ac9165b209ca257
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 13:53:56 2021 +0100

    sbr/escape_addresses.c: replace literal tab in string with ‘\t’.
    
    Makes it easier to observe and removes the risk of erroneous switch to
    one or more spaces.

commit 79c201116776ffbb0880ca174cd8425756cb4b07
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 13:56:34 2021 +0100

    uip/flist.c: replace literal tab in string with three spaces.
    
    A string of spaces was being printed in lieu of ‘ (private)’ to maintain
    columnar output.  This was changed, probably by a faulty editor
    configuration, to replace the initial spaces with a tab character.
    The source code's layout didn't change, but the tab isn't sufficient to
    keep the columns aligned in flist's output.
    
    Fixes e491542d.

commit c72570fb7b5a4040f9ec28d1cc64a38d794a6292
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date:   Tue May 25 14:23:11 2021 +0100

    sbr/seq_print.c: delete preprocessed-out code; no longer used.
    
    Commit 31441ee8 commented it out but it still remains in git-grep(1)'s
    output, etc., and also hides that seq_printall() and seq_print() were
    removed in the commit's diff.

-----------------------------------------------------------------------

Summary of changes:
 sbr/escape_addresses.c |  2 +-
 sbr/path.c             |  5 +++--
 sbr/seq_list.c         |  2 +-
 sbr/seq_print.c        | 49 -------------------------------------------------
 sbr/utils.c            | 21 +++++++++++++++++++++
 sbr/utils.h            |  1 +
 uip/flist.c            |  2 +-
 uip/imaptest.c         |  3 +--
 uip/mhbuildsbr.c       |  2 +-
 uip/mhshowsbr.c        |  2 +-
 uip/mhstoresbr.c       |  2 +-
 uip/popsbr.c           |  6 +++---
 12 files changed, 35 insertions(+), 62 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System



reply via email to

[Prev in Thread] Current Thread [Next in Thread]