diff util/xmppstream.lua @ 14123:166ac7d65cb6 13.0

util.xmppstream: Reduce default stanza size limit to 10k for safety To provide a safe default in case the limit is forgotten.
author Kim Alvefur <zash@zash.se>
date Tue, 07 Apr 2026 20:44:41 +0200
parents d10957394a3c
children 6c7549964d4d
line wrap: on
line diff
--- a/util/xmppstream.lua	Tue Apr 07 20:35:41 2026 +0200
+++ b/util/xmppstream.lua	Tue Apr 07 20:44:41 2026 +0200
@@ -22,7 +22,7 @@
 local lxp_supports_xmldecl = pcall(lxp.new, { XmlDecl = false });
 local lxp_supports_bytecount = not not lxp.new({}).getcurrentbytecount;
 
-local default_stanza_size_limit = 1024*1024*1; -- 1MB
+local default_stanza_size_limit = 10000; -- Minimum stanza size limit
 
 local _ENV = nil;
 -- luacheck: std none