fhorinek / BB

GNU General Public License v2.0
29 stars 16 forks source link

[R279.23.2] Crash due to null malloc when map of Japan is used. #469

Open kolupaev opened 1 year ago

kolupaev commented 1 year ago

Strato was in a permanent crash/reboot loop when flying https://goo.gl/maps/fQ4YxSnSXHBJkuXc9 and its neighborhood.

Device was rebooting approximately every 15-20 seconds. Clean wipe to remove map files restored device to the functional state.

Crash report attached

crash_report.zip

ydutertre commented 4 months ago

@fhorinek FYI, this crash loop also reliably happens in D.301.0.0 and R.279.23.5 - crash loop with Japan maps . I set Info level debugging, and I see that the issue seems to come from N35E139.MAP, which has 165920 feature slots in file. It's under the 200,000 checked by the FASSERT statement, but my guess is it's still too much for tmalloc (sizeof(uint32_t) * feature_cnt would be 663,680, but not sure what the limit actually is.

Steps to reproduce:

@kolupaev FWIW, deleting N35E139.MAP fixes things.