diff -up libsoup-2.62.2/libsoup/soup-content-sniffer-stream.c.coverity-scan-issues libsoup-2.62.2/libsoup/soup-content-sniffer-stream.c
--- libsoup-2.62.2/libsoup/soup-content-sniffer-stream.c.coverity-scan-issues	2018-03-23 14:44:39.000000000 +0100
+++ libsoup-2.62.2/libsoup/soup-content-sniffer-stream.c	2018-06-22 11:25:33.385294057 +0200
@@ -167,7 +167,8 @@ read_internal (GInputStream  *stream,
 
 	if (sniffer->priv->buffer) {
 		nread = MIN (count, sniffer->priv->buffer_nread);
-		memcpy (buffer, sniffer->priv->buffer, nread);
+		if (buffer)
+			memcpy (buffer, sniffer->priv->buffer, nread);
 		if (nread == sniffer->priv->buffer_nread) {
 			g_free (sniffer->priv->buffer);
 			sniffer->priv->buffer = NULL;
diff -up libsoup-2.62.2/libsoup/soup-uri.c.coverity-scan-issues libsoup-2.62.2/libsoup/soup-uri.c
--- libsoup-2.62.2/libsoup/soup-uri.c.coverity-scan-issues	2018-03-23 14:44:54.000000000 +0100
+++ libsoup-2.62.2/libsoup/soup-uri.c	2018-06-22 11:25:33.386294057 +0200
@@ -1348,7 +1348,7 @@ soup_uri_is_http (SoupURI *uri, char **a
 			return TRUE;
 	}
 
-	if (!aliases[1] && !strcmp (aliases[0], "*"))
+	if (aliases[0] && !aliases[1] && !strcmp (aliases[0], "*"))
 		return TRUE;
 	else
 		return FALSE;
