Jelajahi Sumber

defect 675
section overwrite with null dataBuffer parameter locks up


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@732 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 tahun lalu
induk
melakukan
1686406028
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      lib/ckpt.c

+ 4 - 0
lib/ckpt.c

@@ -1402,6 +1402,10 @@ saCkptSectionOverwrite (
 	struct req_lib_ckpt_sectionoverwrite req_lib_ckpt_sectionoverwrite;
 	struct res_lib_ckpt_sectionoverwrite res_lib_ckpt_sectionoverwrite;
 
+	if (dataBuffer == NULL) {
+		return (SA_ERR_INVALID_PARAM);
+	}
+
 	error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
 		(void *)&ckptCheckpointInstance);
 	if (error != SA_AIS_OK) {