summaryrefslogtreecommitdiff
path: root/e0/ae0d6389b292cf5624d40aeea573b504297c7e
blob: 09e0127c38410c266014ee809e97117abe52c730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
Delivery-date: Fri, 28 Jun 2024 18:33:44 -0700
Received: from mail-yw1-f184.google.com ([209.85.128.184])
	by mail.fairlystable.org with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
	(Exim 4.94.2)
	(envelope-from <bitcoindev+bncBC5P5KEHZQLBB4GI7WZQMGQEECVPU4Y@googlegroups.com>)
	id 1sNMyG-00042N-0V
	for bitcoindev@gnusha.org; Fri, 28 Jun 2024 18:33:44 -0700
Received: by mail-yw1-f184.google.com with SMTP id 00721157ae682-64b9800b377sf9041087b3.0
        for <bitcoindev@gnusha.org>; Fri, 28 Jun 2024 18:33:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups.com; s=20230601; t=1719624818; x=1720229618; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-sender:mime-version
         :subject:references:in-reply-to:message-id:to:from:date:sender:from
         :to:cc:subject:date:message-id:reply-to;
        bh=krD6xbHBQgJtKEbHImowvgUGrHZ8o4+xD9znhhuWeEs=;
        b=JJFcvQlG9EJNWqTh9ldzcM2Ty3IFLbBsOdahLNwHfnWbg8yBrdjAYZCser0leRowDu
         kWTRZsu05k5TLZ6ZR29ftdHGokSL0KbgTGf3FJodlA/VLNNZBqVvLs2HAtfY9z4RFn80
         r7UzLJGABu5wzdYY3GRj15hnFbPbQnoZclCPu4I8Jeyd67RZyd/tuQEuNKei4IMe+M+X
         HdHvpYSdni7pP4M71E+yQ8np+LZLr5S0m99i5DOgNL3GL8APCojXqoEvBIt/0wIvluN1
         LwbVosTX5y4jy6bnUHOu9aOkylqmPAG/t7Fm2ar8EwELa6YWfRiY7+NADsO5u6xU3LAA
         3lUw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlegroups-com.20230601.gappssmtp.com; s=20230601; t=1719624818; x=1720229618; darn=gnusha.org;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-sender:mime-version
         :subject:references:in-reply-to:message-id:to:from:date:from:to:cc
         :subject:date:message-id:reply-to;
        bh=krD6xbHBQgJtKEbHImowvgUGrHZ8o4+xD9znhhuWeEs=;
        b=AOygmLZdV/WcElapaCFz3pw//8Fch624XHW5hx9/1K+sHhFs+V7+Mm9qhDxYlUqyBh
         DMENaFbjSr3St2ew6xz0X1m6VH+E8juzZ001Ev5Jo3r/l3ftUKaMfAaHP5eU3V05RehQ
         kNH8TS6Ta1mBQMUqO/DrqVqaQ2UDf182g7CiOyJq4w8DJwG77A0HsfOILVUfxyeJTLXf
         yfmfPnRDvZnXqmqwioIN7WjOwrkkhUsEGlqmgXLDlIueuJs1XCYzTbxeoZI+MkXm2Kon
         8m0KVMmDajIo1spPDM1dQ+YRHXPPIkzXut/iUEJS5656XGf1qiztN1FSCQWiXactrthU
         hvXw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1719624818; x=1720229618;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:x-original-sender:mime-version
         :subject:references:in-reply-to:message-id:to:from:date:x-beenthere
         :x-gm-message-state:sender:from:to:cc:subject:date:message-id
         :reply-to;
        bh=krD6xbHBQgJtKEbHImowvgUGrHZ8o4+xD9znhhuWeEs=;
        b=cD0bfBANqSo2oMBCwIb9ISbB2r+OG2MPodaXOM3Ekr/VLU9GFv3TgAcIjvsPbFDJ/D
         RoRGHwdzs/rSv7T/MFpkk8/Gat7yLeVaIuCpb1gIPUIvfcNIx6DYFzbo+6TkHxltMN8l
         h+KzQDuWJoynYbRQs4o3t41TBe7CXX5c96Y1KkkysDbyx6+ri/zzyJlgAkJx97BaXWcG
         QoStCEXZApz0T9JIOPT3srR6ObvkoiO0rmeZf0E0jdoCeIHtYeBHyAJEzV47kUvQepCs
         hh6UYgO84R0/iwdI8KxMXgMi5qsXhbC78yTxxcvPXFI5P5DSG3QDAXTxLEIfnDimmqDn
         l90A==
Sender: bitcoindev@googlegroups.com
X-Forwarded-Encrypted: i=1; AJvYcCUBtNdp4wnB1CVDpAwD8Kz+MbBFZ9+LWFP+8Kp6gwUXEGzh7RPQlx2He0uZWqphE9jgGUsW58qxbTpcgrOh4N4MiI+oYJA=
X-Gm-Message-State: AOJu0YxsN9wAb5c+zc2TCshhhMK9LZEffXWKjRBgyV9miwjRmCCdr5Fo
	teHx3ErwtycjKplkwHQssEqc9GufJ4qN7gH5FXmsadzbP7SCISyU
X-Google-Smtp-Source: AGHT+IFKJEax3Xbv/vxx6VstIKwBGAzmIU/8UAwPqbCp5jrBF/BjC0ZapnCuqcCJuJKMXA23DW9Iyw==
X-Received: by 2002:a5b:c03:0:b0:e03:2333:a6f0 with SMTP id 3f1490d57ef6-e035bf4f044mr2349975276.10.1719624817778;
        Fri, 28 Jun 2024 18:33:37 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com
Received: by 2002:a05:6902:722:b0:dfa:77ba:dc1f with SMTP id
 3f1490d57ef6-e0356274b10ls1984188276.2.-pod-prod-06-us; Fri, 28 Jun 2024
 18:33:36 -0700 (PDT)
X-Received: by 2002:a05:6902:2b8d:b0:e02:c619:73d with SMTP id 3f1490d57ef6-e030403de41mr977500276.5.1719624816213;
        Fri, 28 Jun 2024 18:33:36 -0700 (PDT)
Received: by 2002:a0d:e6cd:0:b0:64a:6fb4:b878 with SMTP id 00721157ae682-64a84019cd1ms7b3;
        Fri, 28 Jun 2024 18:31:08 -0700 (PDT)
X-Received: by 2002:a05:6902:2b8c:b0:e03:5220:a9df with SMTP id 3f1490d57ef6-e035220ac95mr360694276.0.1719624667849;
        Fri, 28 Jun 2024 18:31:07 -0700 (PDT)
Date: Fri, 28 Jun 2024 18:31:07 -0700 (PDT)
From: Eric Voskuil <eric@voskuil.org>
To: Bitcoin Development Mailing List <bitcoindev@googlegroups.com>
Message-Id: <26b7321b-cc64-44b9-bc95-a4d8feb701e5n@googlegroups.com>
In-Reply-To: <3f0064f9-54bd-46a7-9d9a-c54b99aca7b2n@googlegroups.com>
References: <gnM89sIQ7MhDgI62JciQEGy63DassEv7YZAMhj0IEuIo0EdnafykF6RH4OqjTTHIHsIoZvC2MnTUzJI7EfET4o-UQoD-XAQRDcct994VarE=@protonmail.com>
 <72e83c31-408f-4c13-bff5-bf0789302e23n@googlegroups.com>
 <heKH68GFJr4Zuf6lBozPJrb-StyBJPMNvmZL0xvKFBnBGVA3fVSgTLdWc-_8igYWX8z3zCGvzflH-CsRv0QCJQcfwizNyYXlBJa_Kteb2zg=@protonmail.com>
 <5b0331a5-4e94-465d-a51d-02166e2c1937n@googlegroups.com>
 <yt1O1F7NiVj-WkmnYeta1fSqCYNFx8h6OiJaTBmwhmJ2MWAZkmmjPlUST6FM7t6_-2NwWKdglWh77vcnEKA8swiAnQCZJY2SSCAh4DOKt2I=@protonmail.com>
 <be78e733-6e9f-4f4e-8dc2-67b79ddbf677n@googlegroups.com>
 <jJLDrYTXvTgoslhl1n7Fk9-pL1mMC-0k6gtoniQINmioJpzgtqrJ_WqyFZkLltsCUusnQ4jZ6HbvRC-mGuaUlDi3kcqcFHALd10-JQl-FMY=@protonmail.com>
 <9a4c4151-36ed-425a-a535-aa2837919a04n@googlegroups.com>
 <3f0064f9-54bd-46a7-9d9a-c54b99aca7b2n@googlegroups.com>
Subject: Re: [bitcoindev] Re: Great Consensus Cleanup Revival
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_470777_500630627.1719624667635"
X-Original-Sender: eric@voskuil.org
Precedence: list
Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com
List-ID: <bitcoindev.googlegroups.com>
X-Google-Group-Id: 786775582512
List-Post: <https://groups.google.com/group/bitcoindev/post>, <mailto:bitcoindev@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:bitcoindev+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/bitcoindev
List-Subscribe: <https://groups.google.com/group/bitcoindev/subscribe>, <mailto:bitcoindev+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+786775582512+unsubscribe@googlegroups.com>,
 <https://groups.google.com/group/bitcoindev/subscribe>
X-Spam-Score: -0.7 (/)

------=_Part_470777_500630627.1719624667635
Content-Type: multipart/alternative; 
	boundary="----=_Part_470778_504734575.1719624667635"

------=_Part_470778_504734575.1719624667635
Content-Type: text/plain; charset="UTF-8"

Hello Antoine (other),

>  If you have code in pure C with variables on the stack no malloc, doing 
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 you 
mean C pointer or transaction input "null point" (sequence of 32 repeating 
0x00 bytes and 4 0xff)? What do you mean by "more robust"?

Thanks,
Eric

-- 
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 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-a4d8feb701e5n%40googlegroups.com.

------=_Part_470778_504734575.1719624667635
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello Antoine (other),<br /><br />&gt;=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<br /><br />Can you please clarify=
 this for me? When you say "non-null pointer" do you mean C pointer or tran=
saction input "null point" (sequence of 32 repeating 0x00 bytes and 4 0xff)=
? What do you mean by "more robust"?<br /><br />Thanks,<br />Eric<br /><br =
/>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Bitcoin Development Mailing List&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:bitcoindev+unsubscribe@googlegroups.com">bitcoind=
ev+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/d/msgid/bitcoindev/26b7321b-cc64-44b9-bc95-a4d8feb701e5n%40googlegroups.=
com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msg=
id/bitcoindev/26b7321b-cc64-44b9-bc95-a4d8feb701e5n%40googlegroups.com</a>.=
<br />

------=_Part_470778_504734575.1719624667635--

------=_Part_470777_500630627.1719624667635--