File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -238,13 +238,21 @@ jerryx_print_unhandled_exception (jerry_value_t exception) /**< exception value
238
238
current_p ++ ;
239
239
}
240
240
241
- path_str_end_p = (char * ) current_p ++ ;
241
+ path_str_end_p = (char * ) current_p ;
242
242
243
- err_line = (unsigned int ) strtol ((char * ) current_p , (char * * ) & current_p , 10 );
243
+ if (current_p == string_end_p )
244
+ {
245
+ break ;
246
+ }
244
247
245
- current_p ++ ;
248
+ err_line = (unsigned int ) strtol ((char * ) current_p + 1 , (char * * ) & current_p , 10 );
249
+
250
+ if (current_p == string_end_p )
251
+ {
252
+ break ;
253
+ }
246
254
247
- err_col = (unsigned int ) strtol ((char * ) current_p , NULL , 10 );
255
+ err_col = (unsigned int ) strtol ((char * ) current_p + 1 , NULL , 10 );
248
256
break ;
249
257
}
250
258
} /* for */
You can’t perform that action at this time.
0 commit comments