Problem: Truncation when serializing libsodium encryption parameters.
Solution: Correctly cast to long long type (Yasuhiro Matsumoto).
fixes: #19248
closes: #19357
Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
-*version9.txt* For Vim version 9.1. Last change: 2026 Feb 07
+*version9.txt* For Vim version 9.1. Last change: 2026 Feb 08
VIM REFERENCE MANUAL by Bram Moolenaar
(after v9.1.2139)
Solution: try/catch the expected error
+Patch 9.1.2141
+Problem: Truncation when serializing libsodium encryption parameters.
+Solution: Correctly cast to long long type (Yasuhiro Matsumoto).
+
vim:tw=78:ts=8:noet:ft=help:norl:fdm=manual:nofoldenable
for (i = 0; i < 8; i++)
{
s[i] = (char_u)(n & 0xff);
- n = (unsigned)n >> 8;
+ n = (unsigned long long)n >> 8;
}
}
for (i = 0; i < 4; i++)
{
s[i] = (char_u)(n & 0xff);
- n = (unsigned)n >> 8;
+ n = (unsigned long long)n >> 8;
}
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2141,
/**/
2140,
/**/