core: do not let frozen emulator import live files

pull/796/head
matejcik 4 years ago
parent 05131c328d
commit 27c4c2dd50

@ -692,6 +692,9 @@ MP_NOINLINE int main_(int argc, char **argv) {
return ret & 0xff;
}
#ifdef TREZOR_EMULATOR_FROZEN
uint mp_import_stat(const char *path) { return MP_IMPORT_STAT_NO_EXIST; }
#else
uint mp_import_stat(const char *path) {
struct stat st;
if (stat(path, &st) == 0) {
@ -703,6 +706,7 @@ uint mp_import_stat(const char *path) {
}
return MP_IMPORT_STAT_NO_EXIST;
}
#endif
void nlr_jump_fail(void *val) {
printf("FATAL: uncaught NLR %p\n", val);

Loading…
Cancel
Save