On Tue, Nov 05, 2024 at 06:59:02PM -0800, Stephen Paul Weber wrote:
https://hg.prosody.im/trunk/file/tip/util/x509.lua#l295

When passing in data whose encoded length (minus one?) isn't an exact
multiple of 64, this function complains that (#data-1)/64 is not an integer.

Most likely a Lua 5.3+ integer issue. Should be easily fixed by
`math.floor()` on the division result. I see no tests for this nor any
uses of this function in Prosody itself, so not surprising that any
breakage has gone unnoticed.

--
Zash

--
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prosody-dev/Zyy4acRxVi8vy7cX%40diploria.zash.se.

Reply via email to