commit e7db1c7

grunfink  ·  2026-09-02 08:23:24 +0000 UTC
parent 14db95e
Also drop too big messages in activitypub_request().
1 files changed,  +3, -0
+3, -0
 1@@ -82,6 +82,9 @@ int activitypub_request(snac *user, const char *url, xs_dict **data)
 2             NULL, NULL, 0, &status, &payload, &p_size, 0);
 3     }
 4 
 5+    if (p_size >= 100000)
 6+        return HTTP_STATUS_BAD_REQUEST;
 7+
 8     if (status == 0 || (status >= 500 && status <= 599)) {
 9         /* I found an instance running Misskey that returned
10            500 on signed messages but returned the object