[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-736-gfd3910e |
Date: |
Sun, 23 May 2021 10:14:26 -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 fd3910e3f5d137e0c2938d33c39effd677444419 (commit)
from 5a163d2728b4728cf4a2e0a69d992c37c0252f99 (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 fd3910e3f5d137e0c2938d33c39effd677444419
Author: Ralph Corderoy <ralph@inputplus.co.uk>
Date: Sun May 23 14:32:39 2021 +0100
sbr/utils.c: add abortcpy() which prefers to abort than to overflow.
This is the partner to trunccpy(). If truncation is valid, e.g. passing
on the first part of a long string in an error message, then trunccpy()
should be used instead of strncpy(3). Else abortcpy() should be used
as it will abort(3) rather than overflow the destination or leave the
destination not terminated.
(strncpy() is rarely wanted as its NUL-padding is only useful to pad
fixed-width fields, e.g. an old 14-byte filename which sits alongside
the 16-bit inode number in a directory entry.)
The creation of abortcpy() and its environment-variable workaround was
discussed on nmh-workers around 2016-10-29, in particular message-ID
<20161029214059.1046247BE8@pb-smtp2.pobox.com> at 21:40:58 UTC.
-----------------------------------------------------------------------
Summary of changes:
sbr/utils.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++---------
sbr/utils.h | 8 +++++--
2 files changed, 65 insertions(+), 12 deletions(-)
hooks/post-receive
--
The nmh Mail Handling System
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 1.7-branchpoint-736-gfd3910e,
Ralph Corderoy <=