MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix buffer using ASAN

+2 -1
+2 -1
src/main.c
··· 97 97 static int execute_module(struct js *js, const char *filename) { 98 98 char *buffer = NULL; 99 99 size_t len = 0; 100 + 101 + char abs_path[4096]; 100 102 const char *use_path = filename; 101 103 102 104 if (esm_is_url(filename)) { ··· 122 124 js_set(js, js_glob(js), "__dirname", js_mkstr(js, dir, strlen(dir))); 123 125 free(file_path); 124 126 125 - char abs_path[4096]; 126 127 if (realpath(filename, abs_path)) use_path = abs_path; 127 128 } 128 129