Closed AndreasLeeb closed 5 months ago
@gornekich @doomwastaken please take a look
#0 0x080104f6 in __furi_crash_implementation () at furi/core/check.c:164
#1 0x0801117e in pvPortMalloc (xWantedSize=<optimized out>) at furi/core/memmgr_heap.c:485
#2 0x08010b2c in malloc (size=<optimized out>) at furi/core/memmgr.c:13
#3 0x0803153a in simple_array_init (instance=0x2000d7a0, count=count@entry=0) at lib/toolbox/simple_array.c:30
#4 0x080355d0 in mf_desfire_application_load (data=data@entry=0x2000d690, prefix=0x2000df70 "Application 7087f8", ff=ff@entry=0x2000d3d0) at lib/nfc/protocols/mf_desfire/mf_desfire_i.c:482
#5 0x08034c08 in mf_desfire_load (data=0x2000d540, ff=0x2000d3d0, version=4) at lib/nfc/protocols/mf_desfire/mf_desfire.c:130
#6 0x08038562 in nfc_device_load_unified (version=4, ff=0x2000d3d0, instance=0x2001f010) at lib/nfc/nfc_device.c:265
#7 nfc_device_load (instance=instance@entry=0x2001f010, path=<optimized out>) at lib/nfc/nfc_device.c:343
#8 0x20019126 in nfc_load_file (instance=instance@entry=0x2000e8b8, path=<optimized out>, show_dialog=show_dialog@entry=true) at applications/main/nfc/nfc_app.c:356
#9 0x200192fa in nfc_load_from_file_select (instance=instance@entry=0x2000e8b8) at applications/main/nfc/nfc_app.c:412
#10 0x200144b4 in nfc_scene_file_select_on_enter (context=0x2000e8b8) at applications/main/nfc/scenes/nfc_scene_file_select.c:6
mf_desfire_application_load is trying to allocate empty array which causes crash on allocator assert
I have the exact same problem.
I was however still able to successfully emulate the card without saving it.
The fix arrived in dev. Please, try to reproduce the issue with latest dev.
Describe the bug.
I saved a Mifare DESFire card and when I select this NFC file, the whole system crashes and reboots.
Reproduction
Target
Official firmware release 0.97.1
Logs
Anything else?
Still happens with (then) latest dev firmware build (a7b60bf), just that the debug build doesn't restart (as supposed)