Delivery-date: Fri, 28 Jun 2024 19:02:50 -0700 Received: from mail-qv1-f62.google.com ([209.85.219.62]) by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sNNQP-0004Qm-Ra for bitcoindev@gnusha.org; Fri, 28 Jun 2024 19:02:50 -0700 Received: by mail-qv1-f62.google.com with SMTP id 6a1803df08f44-6b07ef34bfcsf23021676d6.1 for ; Fri, 28 Jun 2024 19:02:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1719626563; cv=pass; d=google.com; s=arc-20160816; b=xLBgsEsRpeL3/M/2yanRplJCNqeOoThw3/60HfplvOKtItVyKiKGUnaHdR7blQ+2hx Xa5YM4M5VnAeX1lmHIHMPEPpaH87bk4K41eKwlWgyN3GF0BakJYYnlLxfT2BFbjYkB6T r7XikVTzRGaGyVh/Gw9c+ct+3Tsoz0RAteo8XPFLGXqvDTwTNEjib9JASux06KhBzD8U bpHOibHtOmcYTw0W/nEiQwjD6WH/9lr8v87Gv759k/fKNVpYoWGrD0IFEaibPcBd18EF op7Kg7lpB6U2chUCV4JT/jf4v+1APA6R2vtvQN36LWhXkSxdZVGAzN/i6WC95BeRZD5K SgXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=vuu3K/2o//6n0q52CsYTvXj/9qUSaxPNDbCcqgdT7LA=; fh=n1xsuqsXXw0TLucgHO3wNE81Aez41jHrWSCMmXenwQw=; b=i+qJmSL1iJJD0pN9RBdx0+PVV424TAbT4TR/pyhR7yPrNTU5daT4xiI2EI3/ENUsgw sSSLjRcK8yLuhmxRYQex/+FyYYjeHYUlI9yITOOG5Rz/NhCCfVFwFQw425Esns7s+PkO mjoFhfi2TZ6oCFfdy6se/TFhAezF+i312Ym6o+Hzjp0UlMaRLKKNFcu19gH0Ik9wE9bU ua7uUo7pJbxrL2zBWPyQbMMtWzp0lAa5A7Fv1tRYXSOTWWRCr+2VtcOoLOYXh7gwd4x9 m3UDf0rQtuZedEl1gsrQVpCTLFvlkjmU6JXgBm7LGgxCdnmupWN6oYOvRwFF9ZH8ksKn /zRQ==; darn=gnusha.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WpJYnj9a; spf=pass (google.com: domain of antoine.riard@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=antoine.riard@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1719626563; x=1720231363; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:sender:from:to:cc:subject:date:message-id :reply-to; bh=vuu3K/2o//6n0q52CsYTvXj/9qUSaxPNDbCcqgdT7LA=; b=PHhY9U8XXySTchsEEN00T6eNEmT2HnSS3080BeY9TEnWeNRVykLHH8oUWIX7hNNAZP I0nnmAWEdKfse16qxYXngu0dmGeHPHxrP5HXWe3iMmcz8qeAEpcNCnJixgEnGj/T6CyX czKvyuTcWqZ6xa+OW98In1zqAp6MenHTlr3phxEy4bnz4/ocqd4ZLUTkNc1KRPONyYTt O/QzfIz5Gc1MQJb3lqF4LxEGmXrQaZhvEJ2T2ReEO6oLmRBdkgZIgkbGzFrVWqPETdi5 dQqNOrrNrJuDUyR6CNwQTDtUVK+ZGbjmMEQ/bg9uohFkQMDqNS1knhWkmuqMK/x06aBQ 0TUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719626563; x=1720231363; darn=gnusha.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vuu3K/2o//6n0q52CsYTvXj/9qUSaxPNDbCcqgdT7LA=; b=aTI5uOE7nuK2ntd5z2Yg5ZezgcmUcJQ3AJWUyIlQdvX3PABEoas6J0ae8rqc4VdSGc SCVx/QA34zJAAn/7qM8P3q749pz+2tlHu8b9cdkaCePl89SAdN4ccOPIVbBLd9GEV4eG 2gWKSerZxzf4dXysx3ngNlyHG2UR1NxhimRuP0/YFeRhTqlC81dUabhAL90WY7yKJX5k xwMjWz2XyIYuTcsca6PNCjrdKPx/iVLrz9HaIYO4AD4aADhwDjFgeQLTzHgAcDz46dFP 6xYIKpyqHoTk2MqJlSZk5NjPMsLH+SfICfPDKotaKB5i3oI7xUe9Xz0VIaEItdIN8w0c gSXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719626563; x=1720231363; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=vuu3K/2o//6n0q52CsYTvXj/9qUSaxPNDbCcqgdT7LA=; b=fPMavhKujTHSIrJ47A6AgCLSJJXJF8XFCwLjj6NmarJd8st+p+u6JD1JS9FPxxvI7V ruoIUUnOwQscGTnsIAIJIXr+O2mYWIhQpnSXjUiXpQ7TNBMmz5Xu+/FW/Qfm4t0HygRr a6zeGXDleHg0A3HH0Ue28t2Xz9SU7/4rFKIjOWkHXYBnaa9ePQzFuCvmV2FQZTzRAQ33 nZbdWMwILn8Hw9riBUoEIMLd97tfety3ro6gOqfuyj+0f/WrIa5D7BkUuoaAboPy8xi2 /yLpNHPyvJouuGUsWuPS6qo25mbBfHDVMftwepdi0pn/EzGAzeaNMcJ3arjwWWXpzfQK Y4Eg== Sender: bitcoindev@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXrt85rwVr5Bw/giKi04eMGvXV0no/6w7qH+MsXgFe+GS4ioxJAHZeVM2zVCkeItt4nZYtZZeJoKF9gbYYebE5r+4nJFC0= X-Gm-Message-State: AOJu0YwZNIAm4X0c95aP5FSJL9MRn2ZeMTlrUQ6ju0IdT0MWXG7EA5yM IjfNWwQovcFmK3GVNolcBZvL8rM+PC/Z1cLxR/u9GhpM0sxsYzLQ X-Google-Smtp-Source: AGHT+IEt0SIBlcXINM7kLSmHDGpFoX6suJGDkKCz1EEGPZdVvGMi92+zwpz+JNR6MJ5pJCRK3oUNfQ== X-Received: by 2002:a05:6214:29ca:b0:6b4:f7bb:6d69 with SMTP id 6a1803df08f44-6b5b6f630e7mr35366d6.32.1719626563127; Fri, 28 Jun 2024 19:02:43 -0700 (PDT) X-BeenThere: bitcoindev@googlegroups.com Received: by 2002:ad4:576a:0:b0:6b0:84a4:8f6d with SMTP id 6a1803df08f44-6b59fa9691als21013656d6.0.-pod-prod-02-us; Fri, 28 Jun 2024 19:02:41 -0700 (PDT) X-Received: by 2002:ad4:46d1:0:b0:6b5:3c69:ee45 with SMTP id 6a1803df08f44-6b53c69f115mr4522256d6.12.1719626561836; Fri, 28 Jun 2024 19:02:41 -0700 (PDT) Received: by 2002:a05:620a:1364:b0:79d:5863:c65b with SMTP id af79cd13be357-79d7823bc21ms85a; Fri, 28 Jun 2024 18:53:49 -0700 (PDT) X-Received: by 2002:a05:620a:4413:b0:795:59ed:21e3 with SMTP id af79cd13be357-79d6ba3aaa4mr639340985a.3.1719626029273; Fri, 28 Jun 2024 18:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719626029; cv=none; d=google.com; s=arc-20160816; b=sRFBN4xA++/pYfAdJWRFCFmWhMdhhglZVH9xJKBcu3RpfmqJiWNNTuegYVCCFgEvOH 28ey0O3QSSX2LUFEnDuOe4wWgxMRiuhbH+2UT71sOJUPOEOcsc0hwadQDlaaqkvfnTLn GP1+5pcsweZFXbuShHSNgC8PERMEfl1LYlw/X6GZ1iAhwLpcjE1K32DoZHb2ApWQfDtY 1Dht4p6WiaKiy9Mn01ANFYgk0f3UJPlag7Xd7UEglQG5/kYX9AcXVlco7gMzqB7t2VMA NALLhZLexTVSgkRHBD6yoWhq4/1XcB+R5PyFGjuHG25EYXEbrKK4ar7DliTwSPbm/WNB k41w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=2+dp+rPAJEQ3gWMn3Bg/h0K6fvv7bGeizd8mc1jI6Qk=; fh=VUyRMGDsLDyKXHBc8DWjokFBiSMTvXavinKdBJZhUls=; b=gG42aeh8RoUKSnSMoqUd+64TEXtQc3NVGFrOqj77ymarrPoQy/VOCSJTumm/sUdQIA nM8HEDn/H4+ZEtcKGk1RG2TMn9nv86bI+Q8Nrw1cEF+HzMSvgFaXCu7Subduhu9OzS10 g2XbROrRgUOE58qLOosZ7C8fjqb02Fp7033rHtF8yRzjEa1CEgNUXVVBuY7zhxb8xRPd FxP6/+jaXGjUWj/EeYRfAP8gqjYOOKw9px5mcWyuCEeURvCBeDzY9lRvzDHNbkokEYvp pb5Xyze1NSNlG9cqboPy9UITjvsCQpVaKIxnDQi0LjsGsrZP7i9DySeAsLGlZnEw2icV gMEA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WpJYnj9a; spf=pass (google.com: domain of antoine.riard@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=antoine.riard@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com. [2607:f8b0:4864:20::d2e]) by gmr-mx.google.com with ESMTPS id af79cd13be357-79d69303c4bsi11840185a.4.2024.06.28.18.53.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Jun 2024 18:53:49 -0700 (PDT) Received-SPF: pass (google.com: domain of antoine.riard@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) client-ip=2607:f8b0:4864:20::d2e; Received: by mail-io1-xd2e.google.com with SMTP id ca18e2360f4ac-7eba486df76so34562239f.0 for ; Fri, 28 Jun 2024 18:53:49 -0700 (PDT) X-Received: by 2002:a5d:81d1:0:b0:7f6:1590:44a2 with SMTP id ca18e2360f4ac-7f62ee1dac0mr231139f.3.1719626028590; Fri, 28 Jun 2024 18:53:48 -0700 (PDT) MIME-Version: 1.0 References: <72e83c31-408f-4c13-bff5-bf0789302e23n@googlegroups.com> <5b0331a5-4e94-465d-a51d-02166e2c1937n@googlegroups.com> <9a4c4151-36ed-425a-a535-aa2837919a04n@googlegroups.com> <3f0064f9-54bd-46a7-9d9a-c54b99aca7b2n@googlegroups.com> <26b7321b-cc64-44b9-bc95-a4d8feb701e5n@googlegroups.com> In-Reply-To: <26b7321b-cc64-44b9-bc95-a4d8feb701e5n@googlegroups.com> From: Antoine Riard Date: Sat, 29 Jun 2024 02:53:37 +0100 Message-ID: Subject: Re: [bitcoindev] Re: Great Consensus Cleanup Revival To: Eric Voskuil Cc: Bitcoin Development Mailing List Content-Type: multipart/alternative; boundary="00000000000094ae68061bfda2de" X-Original-Sender: antoine.riard@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WpJYnj9a; spf=pass (google.com: domain of antoine.riard@gmail.com designates 2607:f8b0:4864:20::d2e as permitted sender) smtp.mailfrom=antoine.riard@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com List-ID: X-Google-Group-Id: 786775582512 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -0.5 (/) --00000000000094ae68061bfda2de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Eric, I meant C pointer and by "more robust" any kind of memory / CPU DoS arising due to memory management (e.g. hypothetical rule checking the 64 bytes size for all block transactions). In my understanding, the validation logic equivalent of core's CheckBlock is libbitcoin's block::check(): https://github.com/libbitcoin/libbitcoin-system/blob/master/src/chain/block= .cpp#L751 Best, Antoine Le sam. 29 juin 2024 =C3=A0 02:33, Eric Voskuil a =C3=A9= crit : > Hello Antoine (other), > > > If you have code in pure C with variables on the stack no malloc, doin= g > a check of the coinbase size after the socket read can be certainly more > robust than checking a non-null pointer. > > Can you please clarify this for me? When you say "non-null pointer" do yo= u > mean C pointer or transaction input "null point" (sequence of 32 repeatin= g > 0x00 bytes and 4 0xff)? What do you mean by "more robust"? > > Thanks, > Eric > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Bitcoin Development Mailing List" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/bitcoindev/CAfm7D5ppjo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > bitcoindev+unsubscribe@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/bitcoindev/26b7321b-cc64-44b9-bc95-a4d8= feb701e5n%40googlegroups.com > > . > --=20 You received this message because you are subscribed to the Google Groups "= Bitcoin Development Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to bitcoindev+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= bitcoindev/CALZpt%2BEwVyaz1%3DA6hOOycqFGJs%2BzxyYYocZixTJgVmzZezUs9Q%40mail= .gmail.com. --00000000000094ae68061bfda2de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eric,

I meant C pointer and by "= ;more robust" any kind of memory / CPU DoS arising due to memory manag= ement (e.g. hypothetical rule checking the 64 bytes size for all block tran= sactions).

In my understanding, the validation log= ic equivalent of core's CheckBlock is libbitcoin's=C2=A0block::chec= k():=C2=A0

=
Best,
Antoine

Le=C2=A0sam. 29 juin 2024 =C3=A0=C2= =A002:33, Eric Voskuil <eric@voskuil= .org> a =C3=A9crit=C2=A0:
Hello Antoine (o= ther),

>=C2=A0 If you have code in pure C with variables on the stack no malloc, doing a c= heck of the coinbase size after the socket read can be certainly more robus= t than checking a non-null pointer.=C2=A0

Can you please clarify thi= s for me? When you say "non-null pointer" do you mean C pointer o= r transaction input "null point" (sequence of 32 repeating 0x00 b= ytes and 4 0xff)? What do you mean by "more robust"?

Thank= s,
Eric

--
You received this message because you are subscribed to a topic in the Goog= le Groups "Bitcoin Development Mailing List" group.
To unsubscribe from this topic, visit https://group= s.google.com/d/topic/bitcoindev/CAfm7D5ppjo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bitco= indev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://g= roups.google.com/d/msgid/bitcoindev/26b7321b-cc64-44b9-bc95-a4d8feb701e5n%4= 0googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to bitcoind= ev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://group= s.google.com/d/msgid/bitcoindev/CALZpt%2BEwVyaz1%3DA6hOOycqFGJs%2BzxyYYocZi= xTJgVmzZezUs9Q%40mail.gmail.com.
--00000000000094ae68061bfda2de--