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
238238 current_p ++ ;
239239 }
240240
241- path_str_end_p = (char * ) current_p ++ ;
241+ path_str_end_p = (char * ) current_p ;
242242
243- err_line = (unsigned int ) strtol ((char * ) current_p , (char * * ) & current_p , 10 );
243+ if (current_p == string_end_p )
244+ {
245+ break ;
246+ }
244247
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+ }
246254
247- err_col = (unsigned int ) strtol ((char * ) current_p , NULL , 10 );
255+ err_col = (unsigned int ) strtol ((char * ) current_p + 1 , NULL , 10 );
248256 break ;
249257 }
250258 } /* for */
You can’t perform that action at this time.
0 commit comments