File gnutls-check-system_priority_buf-input.patch of Package gnutls.27841

Index: gnutls-3.6.7/lib/priority.c
===================================================================
--- gnutls-3.6.7.orig/lib/priority.c
+++ gnutls-3.6.7/lib/priority.c
@@ -1108,7 +1110,8 @@ size_t n, n2 = 0, line_size;
 			 * all applications
 			 */
 			_gnutls_update_system_priorities();
-			fp = fmemopen(system_priority_buf, system_priority_buf_size, "r");
+			if (system_priority_buf)
+				fp = fmemopen(system_priority_buf, system_priority_buf_size, "r");
 #else
 			fp = fopen(system_priority_file, "r");
 #endif
openSUSE Build Service is sponsored by