File uperf-parse-fix-buffer-overflow.patch of Package uperf

Index: src/parse.c
===================================================================
--- src/parse.c.orig
+++ src/parse.c
@@ -246,7 +246,7 @@ parse(char *buffer, struct symbol *list)
 		if (merge == 1) {
 			/* merge this with prev symbol */
 			strlcpy(sym, curr->symbol, 1024);
-			strlcat(sym, token, 1024);
+			strlcat(sym, token, 1024 - strlen(curr->symbol));
 			if (curr->symbol)
 				free(curr->symbol);
 			curr->type = token_type(sym);
openSUSE Build Service is sponsored by