We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baf308a commit 3360e35Copy full SHA for 3360e35
1 file changed
jerry-ext/util/print.c
@@ -238,13 +238,21 @@ jerryx_print_unhandled_exception (jerry_value_t exception) /**< exception value
238
current_p++;
239
}
240
241
- path_str_end_p = (char *) current_p++;
+ path_str_end_p = (char *) current_p;
242
243
- err_line = (unsigned int) strtol ((char *) current_p, (char **) ¤t_p, 10);
+ if (current_p == string_end_p)
244
+ {
245
+ break;
246
+ }
247
- current_p++;
248
+ err_line = (unsigned int) strtol ((char *) current_p + 1, (char **) ¤t_p, 10);
249
+
250
251
252
253
254
- err_col = (unsigned int) strtol ((char *) current_p, NULL, 10);
255
+ err_col = (unsigned int) strtol ((char *) current_p + 1, NULL, 10);
256
break;
257
258
} /* for */
0 commit comments