What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

I don't know how many “I genuinely tried to use ChatGPT to help me in something I was doing and this was the result” posts I should be doing. Here is one more because the request has already been sent. I am in any case going to stop soon out of boredom.

This is the question I had:

In the C23 standard, 7.26.1:3 says: “Where an argument declared as size_t n specifies the length of the array for a function, n can have
the value zero on a call to that function. Unless explicitly stated otherwise in the description of a particular function in this subclause, pointer arguments on such a call shall still have valid values, as described in 7.1.4. ”. What are the functions to which the exception “Unless explicitly stated otherwise in the description of a particular function in this subclause” applies?. In other words, what are the functions from string.h that can be passed an invalid pointer when accompanied with an argument size_t n of 0?

0
0

:exclamation_sign:​パロディちゅーい 
スーパーアイチャンミスキーズ3 / ワ~ルド1:草原の国 ~グラスランド~

:blobcatevil:「(オイラ、ニャリー。藍のやつ、楽しそうだにゃ…)」

:ai_yay:「最初の国は緑がいっぱいですね!
    ドキドキハラハラの連続かもです!」

RE:
https://misskey.io/notes/aa0xe0hlm2ma05k6

0
0
1
0
0
1
0
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
2
0
0
0
0
0
0
0
3
0
0

When double-knocking for RFC 9421 and other things

mradcliffe @mradcliffe@nokoto.org

When double-knocking for RFC 9421, Lemmy will respond with a 400 Bad Request, so I need to check that as well as a 401 in order to figure out if I should send a follow-up cavage-12 request.

In other news, I still have not debugged why only POST requests are not valid on Mastodon for RFC 9421. There is something unique about comparing the signatures when only content-digest is included, but it is not the digest itself because otherwise Mastodon would raise a validation error earlier. At the moment, only one Mastodon instance I federate with is accepting those requests anyway. Hopefully the error messages aren't too bad.

Read more →
0
0
0
0
0
0
1
0
0
0
0