Unverified Commit 54c95034 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15181 kobject: Fix global-out-of-bounds in kobject_action_type()

parents e44cc18d 4800e182
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ static int kobject_action_type(const char *buf, size_t count,
	for (action = 0; action < ARRAY_SIZE(kobject_actions); action++) {
		if (strncmp(kobject_actions[action], buf, count_first) != 0)
			continue;
		if (kobject_actions[action][count_first] != '\0')
		if (strlen(kobject_actions[action]) > count_first)
			continue;
		if (args)
			*args = args_start;