# HG changeset patch # User Kim Alvefur # Date 1775587481 -7200 # Node ID 166ac7d65cb6c462b327dcaf08e8fa8c44f06b06 # Parent 8a4417d32b0fa5381da0fbbe2385a973d14a4341 util.xmppstream: Reduce default stanza size limit to 10k for safety To provide a safe default in case the limit is forgotten. diff -r 8a4417d32b0f -r 166ac7d65cb6 util/xmppstream.lua --- 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