File libsndfile-psf_strlcpy_crlf-fix-CVE-2015-8075.patch of Package libsndfile.4961

---
 src/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/common.c
+++ b/src/common.c
@@ -1332,7 +1332,7 @@ psf_strlcpy_crlf (char *dest, const char
 	char * destend = dest + destmax - 2 ;
 	const char * srcend = src + srcmax ;
 
-	while (dest < destend && src < srcend)
+	while (*src && dest < destend && src < srcend)
 	{	if ((src [0] == '\r' && src [1] == '\n') || (src [0] == '\n' && src [1] == '\r'))
 		{	*dest++ = '\r' ;
 			*dest++ = '\n' ;
openSUSE Build Service is sponsored by