]> git.proxmox.com Git - pve-cluster.git/commit
pmxcfs: migrate to g_memdup2
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 15:29:08 +0000 (17:29 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 15:32:16 +0000 (17:32 +0200)
commit2c372aee2ac903c6de4bcdc65fc2984c990a36c7
treef4e5087e5f11da8585c6e4982ec9545d967d4c3a
parenta01bc7b71b7c213636cb0bd0ba0abfaf3229c74a
pmxcfs: migrate to g_memdup2

As the previously used g_memdup is deprecated since GLib 2.68, due to
being prone to integer overflows when converting the argument from a
gsize to a guint, while that only produces a warning we compile with
Werror, so this FTBFS.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/src/database.c
data/src/dcdb.c
data/src/dfsm.c
data/src/logger.c
data/src/memdb.c
data/src/status.c