- Notifications
You must be signed in to change notification settings - Fork687
Open
Description
All the place calling to strlen are
NameLineTextPathjerry-debugger.c150 size_t source_name_size = strlen ((const char *) source_name_p);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\apijerryscript.c5091 strlen (str_p));E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\apijerry-snapshot.c1472 string_size = (lit_utf8_size_t) strlen (chars);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\apidebugger.c599 jerry_debugger_send_string (JERRY_DEBUGGER_EVAL_RESULT, type, string_p, strlen ((const char *) string_p));E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\debuggerlit-strings.c267 return (lit_utf8_size_t) strlen ((const char *) utf8_str_p);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-core\litmodule.c187 if (module_p->name_p != NULL && strlen ((char *) module_p->name_p) == name_sizeE:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\moduleprint.c153 jerry_size_t buffer_size = (jerry_size_t) (strlen (str_p));E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\utilsources.c50 jerry_string ((const jerry_char_t *) path_p, (jerry_size_t) strlen (path_p), JERRY_ENCODING_UTF8);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\utilsources.c79 jerry_string ((const jerry_char_t *) path_p, (jerry_size_t) strlen (path_p), JERRY_ENCODING_UTF8);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-ext\utilmain-snapshot.c342 jerry_string ((const jerry_char_t *) file_name_p, (jerry_size_t) strlen (file_name_p), JERRY_ENCODING_UTF8);E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-mainmain-snapshot.c348 (jerry_size_t) strlen (function_args_p),E:\CI-Cor\acrop\acrop-deps\acrop-jerry\jerryscript\jerry-mainWe can improve the usage of strlen by improving the api of jerry-port and other related functions