Module Name:    src
Committed By:   christos
Date:           Sat May  9 15:28:25 UTC 2015

Modified Files:
        src/external/public-domain/xz/dist/src/xz: args.c

Log Message:
CID 1268629: Don't deref NULL (can't happen unless count is incorrect;
code safety).


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 src/external/public-domain/xz/dist/src/xz/args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/public-domain/xz/dist/src/xz/args.c
diff -u src/external/public-domain/xz/dist/src/xz/args.c:1.1.1.2 src/external/public-domain/xz/dist/src/xz/args.c:1.2
--- src/external/public-domain/xz/dist/src/xz/args.c:1.1.1.2	Fri Apr 17 14:24:55 2015
+++ src/external/public-domain/xz/dist/src/xz/args.c	Sat May  9 11:28:25 2015
@@ -107,6 +107,8 @@ parse_block_list(char *str)
 			}
 		}
 
+		if (p == NULL)
+			break;
 		str = p + 1;
 	}
 

Reply via email to