hirohito on Nostr: buy robux today :ROBUX: There is no NUL termination, strlen(buff) will not work. You ...
buy robux today :ROBUX: (npub1wg0…t0yf) There is no NUL termination, strlen(buff) will not work.
You want to zero the memory you get after you realloc().
You also might get a buffer overflow error if you get exactly 72 bytes, because then there will be no more room left for a NUL terminator.
Published at
2023-11-24 14:22:01Event JSON
{
"id": "a88c292dbd344fd092ab5bd178f058469b36de75045be104c7fa91ca149fab5a",
"pubkey": "f0de7e436b75f4fe01436eca98d196f4f8cc4eb9e36f72cf557f6faf1d70fadb",
"created_at": 1700835721,
"kind": 1,
"tags": [
[
"p",
"721eacb3df4ee6374240e2978da81baa1daa75cf6908e4b988ea4130112f53b6",
"wss://relay.mostr.pub"
],
[
"e",
"865e0889abf53f46eaa7589d03d54269b27b8945479c659f185f746fb291dfc3",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://epic.meme.moe/notes/9mg9zjh96v",
"activitypub"
]
],
"content": "nostr:npub1wg02ev7lfmnrwsjqu2tcm2qm4gw65aw0dyywfwvgafqnqyf02wmqhht0yf There is no NUL termination, strlen(buff) will not work.\nYou want to zero the memory you get after you realloc().\nYou also might get a buffer overflow error if you get exactly 72 bytes, because then there will be no more room left for a NUL terminator.",
"sig": "6d323dc87320df874c01ed5fbab0f88a581b2b79c539fed5d5608df7a54d6078ecae1db7dff3b41a516eb3f564c07258fa4ce7043c385257fcd8dbe990b73484"
}