Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2017 09:16:36 -0700
From:      Conrad Meyer <cem@freebsd.org>
To:        Konstantin Belousov <kib@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r322427 - in head/lib/libc: stdlib string tests/string
Message-ID:  <CAG6CVpW-1%2BLZR-4%2BQaRfWaUJdJKk9O=Rn37kkQeO6TbiOP-mtg@mail.gmail.com>
In-Reply-To: <201708121518.v7CFIHld035164@repo.freebsd.org>
References:  <201708121518.v7CFIHld035164@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 12, 2017 at 8:18 AM, Konstantin Belousov <kib@freebsd.org> wrote:
> Author: kib
> Date: Sat Aug 12 15:18:17 2017
> New Revision: 322427
> URL: https://svnweb.freebsd.org/changeset/base/322427
>
> Log:
>   Improve standard compliance for memset_s() and abort_handler_s().
>
>   abort_handler_s() currently simply calls abort(), though the standard
>   specifies more: "Writes an implementation-defined message to stderr
>   which must include the string pointed to by msg and calls abort()."
>
>   memset_s() is missing error condition "n > smax", and does not invoke
>   the constraint handler after filling the buffer: "following errors are
>   detected at runtime and call the currently installed constraint
>   handler function after storing ch in every location of the destination
>   range [dest, dest+destsz) if dest and destsz are themselves valid",
>   one of the errors is "n > smax" itself.
>
>   Submitted by: Yuri Pankov <yuripv@gmx.com>
>   MFC after:    1 week
>   Differential revision:        https://reviews.freebsd.org/D11991

PR: 221323



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpW-1%2BLZR-4%2BQaRfWaUJdJKk9O=Rn37kkQeO6TbiOP-mtg>