William Casarin [ARCHIVE] on Nostr: š
Original date posted:2018-06-27 š Original message:Hey Andrew, If I'm reading ...
š
Original date posted:2018-06-27
š Original message:Hey Andrew,
If I'm reading the spec right: the way it is designed right now, you
could create hundreds of thousands of zero bytes in the input or output
key-value arrays. As far as I can tell this would be considered valid,
as it is simply a large array of empty dictionaries. Is this right? I'm
worried about buffer overflows in cases where someone sends a large blob
of zeros to an unsuspecting implementation.
Also, the extensibility section reads:
> Additional key-value maps with different types for the key-value pairs
> can be added on to the end of the format.
"different types for the key-value pairs", is this referring to new
types beyond the current global, input and output types?
> The number of each map that follows must be specified in the globals
> section
Is this out of date? Since there is only one type in the global section
now (tx).
> so that parsers will know when to use different definitions of the
> data types
I'm not sure what this means.
Thanks!
Will
--
https://jb55.comPublished at
2023-06-07 18:13:16Event JSON
{
"id": "0c1ab74b49d5da461b9d761bd9a09f96b490ab78422743a9382d0f7acddab25a",
"pubkey": "6fb2fd1f8df298fef3464d220666d5ae7184dfe89dc5cc7d3a177579986c31cb",
"created_at": 1686161596,
"kind": 1,
"tags": [
[
"e",
"cde3c2f1af5ec4e3200e32c7fdbcba54b58741a9d65d38dd383e78325ee0ffcd",
"",
"root"
],
[
"e",
"4ef6f161932118acaf4dce8ba893e4e73227ccce8bd58a5561ad571588b498c8",
"",
"reply"
],
[
"p",
"75fdfdb61750de444c31286deb53bedfff4351d5a85d3d66cc6b36e95fa21d06"
]
],
"content": "š
Original date posted:2018-06-27\nš Original message:Hey Andrew,\n\nIf I'm reading the spec right: the way it is designed right now, you\ncould create hundreds of thousands of zero bytes in the input or output\nkey-value arrays. As far as I can tell this would be considered valid,\nas it is simply a large array of empty dictionaries. Is this right? I'm\nworried about buffer overflows in cases where someone sends a large blob\nof zeros to an unsuspecting implementation.\n\n\nAlso, the extensibility section reads:\n\n\u003e Additional key-value maps with different types for the key-value pairs\n\u003e can be added on to the end of the format.\n\n\"different types for the key-value pairs\", is this referring to new\ntypes beyond the current global, input and output types?\n\n\u003e The number of each map that follows must be specified in the globals\n\u003e section\n\nIs this out of date? Since there is only one type in the global section\nnow (tx).\n\n\u003e so that parsers will know when to use different definitions of the\n\u003e data types\n\nI'm not sure what this means.\n\n\nThanks!\n\nWill\n\n\n--\nhttps://jb55.com",
"sig": "6c0fb5dd17e1f775edf1454c79a50b87520a5a25e4dcc436248940127e01f2258a337540db7b67aa265f7a2196cac84160c9dc155ffa762af33b50537d0cb4f3"
}