mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-21 03:52:04 +00:00
core: do not let frozen emulator import live files
This commit is contained in:
parent
05131c328d
commit
27c4c2dd50
@ -692,6 +692,9 @@ MP_NOINLINE int main_(int argc, char **argv) {
|
|||||||
return ret & 0xff;
|
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) {
|
uint mp_import_stat(const char *path) {
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (stat(path, &st) == 0) {
|
if (stat(path, &st) == 0) {
|
||||||
@ -703,6 +706,7 @@ uint mp_import_stat(const char *path) {
|
|||||||
}
|
}
|
||||||
return MP_IMPORT_STAT_NO_EXIST;
|
return MP_IMPORT_STAT_NO_EXIST;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void nlr_jump_fail(void *val) {
|
void nlr_jump_fail(void *val) {
|
||||||
printf("FATAL: uncaught NLR %p\n", val);
|
printf("FATAL: uncaught NLR %p\n", val);
|
||||||
|
Loading…
Reference in New Issue
Block a user