aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2024-09-30 15:44:56 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2024-09-30 15:44:56 +0200
commit2825a3c6f54546226e6448df2ac53f00fceb658d (patch)
treecd093c8afb52879d8841b52e8b9c6278178121b2
parentd2c06694d20235b6c216556bf5d3abfd87f379fd (diff)
downloadgnunet-2825a3c6f54546226e6448df2ac53f00fceb658d.tar.gz
gnunet-2825a3c6f54546226e6448df2ac53f00fceb658d.zip
pq: partially address memory corruption in issue #9234
-rw-r--r--src/lib/pq/pq_query_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pq/pq_query_helper.c b/src/lib/pq/pq_query_helper.c
index f4a1cc16c..de4dcd21d 100644
--- a/src/lib/pq/pq_query_helper.c
+++ b/src/lib/pq/pq_query_helper.c
@@ -824,7 +824,7 @@ qconv_array (
824 for (unsigned int i = 0; i < num; i++) 824 for (unsigned int i = 0; i < num; i++)
825 { 825 {
826 size_t sz = same_sized ? meta->same_size : sizes[i]; 826 size_t sz = same_sized ? meta->same_size : sizes[i];
827 size_t hsz = htonl (sz); 827 uint32_t hsz = htonl (sz);
828 828
829 GNUNET_memcpy (out, 829 GNUNET_memcpy (out,
830 &hsz, 830 &hsz,