Received: by mail.netbsd.org (Postfix, from userid 605) id 4A8FD84D73; Mon, 27 Nov 2017 22:43:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A0F4C84CE2 for ; Mon, 27 Nov 2017 22:43:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id RVfUoJFYWXdT for ; Mon, 27 Nov 2017 22:43:08 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 4584B84CE1 for ; Mon, 27 Nov 2017 22:43:08 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 7A336FB40; Mon, 27 Nov 2017 22:43:07 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Mon, 27 Nov 2017 17:43:07 -0500 From: "Christos Zoulas" Subject: CVS commit: src/lib/libc/stdlib To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20171127224307.7A336FB40@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Christos Zoulas" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: christos Date: Mon Nov 27 22:43:07 UTC 2017 Modified Files: src/lib/libc/stdlib: strfmon.c Log Message: Fix various bugs with strfmon: - Avoid out of bounds access for the currency_symbol[3] when the symbol is shorter (as it happens with the C locale where it is empty) - Don't compare pointers to NUL, it is not helpful. - Make the default sep_by_space 1 as suggested in: https://ftp.gnu.org/old-gnu/Manuals/glibc-2.2.3/html_node/libc_111.html - Use the correct number of bytes for memmove(3) XXX: pullup-8 To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/lib/libc/stdlib/strfmon.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.