Browse Source

Get rid of valgrind warning and possible segfault.

(Logical change 1.76)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@271 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 21 năm trước cách đây
mục cha
commit
18f5836ae2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      exec/gmi.c

+ 1 - 1
exec/gmi.c

@@ -3281,7 +3281,7 @@ static void assembly_deliver (struct queue_frag *queue_frag)
 	struct assembly_queue_item *assembly_queue_item;
 	struct pend_queue_item pend_queue_item;
 	int res = 0;
-	struct iovec iovec_delv[256];
+	struct iovec iovec_delv[QUEUE_PEND_SIZE_MAX * MAXIOVS];
 	int iov_len_delv = 0;
 	struct mcast *mcast = 0;
 	int pend_queue_msg_item_count;