Skip to content

Commit 11b1df0

Browse files
author
Antti Kauppila
committed
Coverity fix for mbed-client-cli
- uint64_t cast added to avoid overflow
1 parent c42426a commit 11b1df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/frameworks/mbed-client-cli/source/ns_cmdline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ bool cmd_parameter_timestamp(int argc, char *argv[], const char *key, int64_t *v
20822082
char *token;
20832083
token = strtok(argv[i + 1], splitValue);
20842084
if (token) {
2085-
*value = strtoul(token, 0, 10) << 16;
2085+
*value = (int64_t)strtoul(token, 0, 10) << 16;
20862086
}
20872087
token = strtok(NULL, splitValue);
20882088
if (token) {

0 commit comments

Comments
 (0)