From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04F8EC43334 for ; Thu, 16 Jun 2022 20:11:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231494AbiFPULN (ORCPT ); Thu, 16 Jun 2022 16:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbiFPULM (ORCPT ); Thu, 16 Jun 2022 16:11:12 -0400 Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B783C4476A for ; Thu, 16 Jun 2022 13:11:10 -0700 (PDT) Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 62D6C12A6CA; Thu, 16 Jun 2022 16:11:09 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=hU64GV1Ba/XTPPhP3OS1uOxs2WDZh6kH0TiTvz 5W+xQ=; b=Cnght4xIzwo9JZdllmir5TmSWKx8dBJbZHyJiZr3g+Vuvt0OTDykLX 4zFLjpDwdSKiXJIIKN2TgDgdjqEvj6NqFmMqcdslfdgNgWDJkHrxqn5pL4Yu5E1J Uqf1sJnKCK3jNA1yIo0Ao39ZKtVUl9iePtvQlvgqGaYQ1kfdbVmeA= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id B5D2712A6C9; Thu, 16 Jun 2022 16:11:08 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [34.82.80.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id EA95212A6C7; Thu, 16 Jun 2022 16:11:05 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: Jeff King Cc: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , Johannes Schindelin via GitGitGadget , git@vger.kernel.org, Johannes Schindelin Subject: Re: [PATCH 11/11] bug_fl(): add missing `va_end()` call References: <220616.86o7yswyek.gmgdl@evledraar.gmail.com> Date: Thu, 16 Jun 2022 13:11:03 -0700 In-Reply-To: (Jeff King's message of "Thu, 16 Jun 2022 15:20:08 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 74255BC4-EDB0-11EC-ACEE-CB998F0A682E-77302942!pb-smtp2.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Jeff King writes: > Being the curious sort, I ran it in a debugger. And indeed, "cp" is > filled with uninitialized garbage. The reason it works is that the test > calls bug() with a format string that does not contain any placeholders. > And thus our eventual call to vsnprintf() does not ever look at "cp" at > all! ;-) Thanks.