+2024-05-07 Collin Funk <collin.funk1@gmail.com>
+
+ base32, base64: Prefer stdckdint to intprops.
+ * lib/base32.c (base32_encode_alloc): Include stdckdint.h. Prefer
+ ckd_mul to INT_MULTIPLY_OK.
+ * lib/base64.c (base64_encode_alloc): Likewise.
+ * modules/base32 (Depends-on): Add stdckdint.
+ * modules/base64 (Depends-on): Likewise.
+
2024-05-07 Collin Funk <collin.funk1@gmail.com>
gnulib-tool.py: Handle module dependencies that cannot be found.
/* Get imalloc. */
#include <ialloc.h>
-#include <intprops.h>
+#include <stdckdint.h>
#include <string.h>
Treat negative INLEN as overflow, for better compatibility with
pre-2021-08-27 API, which used size_t. */
idx_t in_over_5 = inlen / 5 + (inlen % 5 != 0), outlen;
- if (! INT_MULTIPLY_OK (in_over_5, 8, &outlen) || inlen < 0)
+ if (ckd_mul (&outlen, in_over_5, 8) || inlen < 0)
{
*out = NULL;
return 0;
/* Get imalloc. */
#include <ialloc.h>
-#include <intprops.h>
+#include <stdckdint.h>
#include <string.h>
Treat negative INLEN as overflow, for better compatibility with
pre-2021-08-27 API, which used size_t. */
idx_t in_over_3 = inlen / 3 + (inlen % 3 != 0), outlen;
- if (! INT_MULTIPLY_OK (in_over_3, 4, &outlen) || inlen < 0)
+ if (ckd_mul (&outlen, in_over_3, 4) || inlen < 0)
{
*out = NULL;
return 0;
ialloc
stdbool
memchr
+stdckdint
configure.ac:
gl_FUNC_BASE32
ialloc
stdbool
memchr
+stdckdint
configure.ac:
gl_FUNC_BASE64