From 0ae7da361c98ca8a2119a933c543a76970f2dbef Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 8 Jan 2014 21:52:42 +0100 Subject: Prevent infinite loop with bad input. (bzr r12893) --- src/helper-fns.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/helper-fns.h b/src/helper-fns.h index 95de4a1b0..699fbbe11 100644 --- a/src/helper-fns.h +++ b/src/helper-fns.h @@ -107,6 +107,7 @@ inline std::vector helperfns_read_vector(const gchar* value){ // We could leave this out, too. If strtod can't convert // anything, it will return zero. ret = 0; + break; } v.push_back(ret); -- cgit v1.2.3