diff mbox series

[1/2] core/artifacts_version: Fix infinite loop in is_oldstyle_version()

Message ID 20200624150234.7476-1-sde@unmatched.eu
State Accepted
Headers show
Series [1/2] core/artifacts_version: Fix infinite loop in is_oldstyle_version() | expand

Commit Message

Stijn Devriendt June 24, 2020, 3:02 p.m. UTC
Reported-by: Harlan.Kassler@FlukeNetworks.com
Signed-off-by: Stijn Devriendt <sde@unmatched.eu>
---
 core/artifacts_versions.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/core/artifacts_versions.c b/core/artifacts_versions.c
index 2ccba85..a5649af 100644
--- a/core/artifacts_versions.c
+++ b/core/artifacts_versions.c
@@ -168,6 +168,7 @@  static bool is_oldstyle_version(const char* version_string)
 	{
 		if (strchr(ACCEPTED_CHARS, *version_string) == NULL)
 			return false;
+		++version_string;
 	}
 	return true;
 }