From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8978 invoked by alias); 1 Dec 2019 15:33:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 8965 invoked by uid 89); 1 Dec 2019 15:33:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=2.1 required=5.0 tests=BAYES_00,BODY_8BITS,GARBLED_BODY,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy==d0=b0=d0=bb, H*x:iPhone, H*UA:iPhone, =d0=bd=d0=b0=d0=bf=d0=b8=d1?= X-HELO: mail-lf1-f65.google.com Received: from mail-lf1-f65.google.com (HELO mail-lf1-f65.google.com) (209.85.167.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 01 Dec 2019 15:33:32 +0000 Received: by mail-lf1-f65.google.com with SMTP id b15so1783278lfc.4 for ; Sun, 01 Dec 2019 07:33:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=frtk-ru.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=OgNVXUZt+pOb7GDfLCgs4e4DQSQIe8q7H6OzU5llIlo=; b=rOKSgNsHoj7jMm1g5bmvZvVFuA+LJciSiAtAEub7972htF4ZftMpbIsYHMg1MbE7Fn +MpTMB9HkuICsaoB19N2PYFlph6KSorUy/qagHQLwQJs0cILoNMU9Ndta2xAgysr/V9S k58sz53WF3rwBz4eVPHf/vDIL2UtTahUYSHZdXQTurKc4RXNdwoglDYuQoIHiDxOOf0f 5yp6grGhBuQ+ueZwEFBbU0shRWajIXs+xE8HwBSvv7E6EAOrgH9/uIHYMowKkvENTwcC 6q4oUt45EGGdI3OhQalIgMnufOGQS3IEJpB+86t8GS6kmf57u4fKRx7kdUugu0Zvo8sA 0iow== Return-Path: Received: from [192.168.1.34] ([91.219.24.115]) by smtp.gmail.com with ESMTPSA id b85sm13350887lfg.25.2019.12.01.07.33.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Dec 2019 07:33:29 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: =?utf-8?B?0J/QsNCy0LXQuyDQmtGA0Y7QutC+0LI=?= Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] sim-utils.c: prevent buffer overflow. Date: Sun, 01 Dec 2019 15:33:00 -0000 Message-Id: <3BB98D48-787F-49C4-81F4-736AFFF3516C@frtk.ru> References: <969988fa-470f-9013-9948-dfff11922067@simark.ca> Cc: gdb-patches@sourceware.org, Andrew Burgess In-Reply-To: <969988fa-470f-9013-9948-dfff11922067@simark.ca> To: Simon Marchi X-SW-Source: 2019-12/txt/msg00008.txt.bz2 No, simulators are built in C. Probably they may be switched to C++, but th= at would require more effort; plus, there may be external C simulators. Thanks, -- Pavel > 1 =D0=B4=D0=B5=D0=BA. 2019 =D0=B3., =D0=B2 17:46, Simon Marchi =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0): >=20 > =EF=BB=BFOn 2019-11-30 5:53 p.m., Pavel I. Kryukov wrote: >=20 > Is the sim built in C++ like GDB? If so, maybe this function could return > an std::string, so there's no more concerns of allocating a static buffer > with sufficient space?