From patchwork Fri Jun 19 20:23:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Randall S. Becker" X-Patchwork-Id: 11615029 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 068E3912 for ; Fri, 19 Jun 2020 20:23:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D7ADD2100A for ; Fri, 19 Jun 2020 20:23:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=rogers.com header.i=@rogers.com header.b="imHBVofC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392072AbgFSUXm (ORCPT ); Fri, 19 Jun 2020 16:23:42 -0400 Received: from sonic315-19.consmr.mail.bf2.yahoo.com ([74.6.134.193]:38786 "EHLO sonic315-19.consmr.mail.bf2.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390976AbgFSUXi (ORCPT ); Fri, 19 Jun 2020 16:23:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rogers.com; s=s2048; t=1592598217; bh=j6bQv0fckeDsvq6WLW/am5IPbQmZHrEUdWU0dHwSFPM=; h=From:To:Cc:Subject:Date:References:From:Subject; b=imHBVofCdPf0Iw5ZZEz5E4fTXrapuG4tYeItjbP3RCNpv0RxfI4twWWKUvaTmj819JOMWIuISU5XO8/oq9w5mM162zTIUkzmA8fHZ+KLpwgqseGHnxTDUPGuyqHYS7xecb5283pw45s3ie1ul1hIzngQltqERtDH1+JeFuGyaVP2gxVIcYG5tSyM5tSYHp1VGej1sOEPXN91OqBbu6DiakpdIaojybp450snn873hfdnmf/GcLljTkYZP3oNAt9Tb8vI3x9XF34m8eCxT9QVZ9RYvfnFicKcoPwgAU+1gv3rFT1k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b0E.WsDkPtca5pEQ CiupaQan6v.SpwiV8xtl5lP4YFBzctTjgFANykaNiA3wpxTjpJ0zLDcBgDecMkk02St68Ny1oqBE 3ZE4jqrb145ZEhxccU76pJJT.s9W8RpTUBfjpwHFtmALKzpvAvdG98GZQzB6LUBiqMJd6N1r52bl LdNsVLtnl5rpJ8BUCeLeSFcJZq0w1KZeS3eNQkwTXroPw7mqAffYkRYSPxakXKS03gN88x7MKOUb JytCQKLs_OOfGV3Av9USdGR9i8bEuabB2vDhO0Myp7uLqeoisYstTejT.8SWQAmIJ7ESQBcyDRkU 25dMxn7khiFLXOUEMQUY5sKaVlTl549fdkKPqICe9Yf2OWkYZ8Wnxq94aEpZ35mdfxvYLlI3JFmd Pe2BWqXcE4SKXl7SUrK6UoJWHNnRAj3WNj16fi5Mvcha7K5I- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Fri, 19 Jun 2020 20:23:37 +0000 Received: by smtp409.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f9cdc319e6c5c02f6098bff69147f340; Fri, 19 Jun 2020 20:23:34 +0000 (UTC) From: randall.s.becker@rogers.com To: git@vger.kernel.org Cc: "Randall S. Becker" Subject: [Patch v2 0/2] Replace strbuf_write_fd with write_in_full Date: Fri, 19 Jun 2020 16:23:18 -0400 Message-Id: <20200619202320.4619-1-randall.s.becker@rogers.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 References: <20200619202320.4619-1-randall.s.becker.ref@rogers.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: "Randall S. Becker" The strbuf_write_fd method does not check whether the buffer exceeds MAX_IO_SIZE on the target platform. This fix replaces the use of that method with write_in_full, which does. Since this is the only use of strbuf_write_fd, and since the method was unsafe, it has been removed from strbuf.c and strbuf.h. Randall S. Becker (2): bugreport.c: replace strbuf_write_fd with write_in_full strbuf: remove unreferenced strbuf_write_fd method. bugreport.c | 4 +++- strbuf.c | 5 ----- strbuf.h | 1 - 3 files changed, 3 insertions(+), 7 deletions(-)