From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91805 invoked by alias); 30 Jul 2018 06:52:57 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 91786 invoked by uid 89); 30 Jul 2018 06:52:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:535 X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Jul 2018 06:52:54 +0000 Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B26C8AD7E; Mon, 30 Jul 2018 06:52:52 +0000 (UTC) Date: Mon, 30 Jul 2018 06:52:00 -0000 From: Richard Biener To: Bernd Edlinger cc: "gcc-patches@gcc.gnu.org" Subject: Re: [PATCH] Avoid another non zero terminated string constant In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2018-07/txt/msg01812.txt.bz2 On Sun, 29 Jul 2018, Bernd Edlinger wrote: > Hi! > > This fixes another not NUL terminated string literal that is created > in tree-ssa-forwprop.c at simplify_builtin_call. > > src_buf is set up to contain a NUL at src_buf[src_len], thus use src_len + 1 > as length parameter to build_string_literal. All other uses of > build_string_literal do it right, as far as I can see. > > > Bootstrapped and reg-tested on x86_64-pc-linux-gnu. > Is it OK for trunk? OK. Richard.