akopachov / flipper-zero_authenticator

Software-based TOTP/HOTP authenticator for Flipper Zero device.
GNU General Public License v3.0
579 stars 26 forks source link

[BUG] Null pointer dereference on latest official firmware #233

Closed RingoAl closed 6 months ago

RingoAl commented 6 months ago

After running app and enter pin, Flipper crashes and show "NULL pointer dereference" error

To Reproduce Steps to reproduce the behavior:

  1. Install latest official firmware (0.102.3)
  2. Build app (I've done it wia ufbt: cd totp, ufbt update, ufbt build)
  3. Run app
  4. Enter pin
  5. See crash and error

Expected behavior App works fine

Screenshots image

Device information (please complete the following information):

akopachov commented 6 months ago

Have you installed and run Authenticator previously on your device? Does /ext/apps_data/totp/totp.conf file exist?

RingoAl commented 6 months ago

Have you installed and run Authenticator previously on your device?

Yes

Does /ext/apps_data/totp/totp.conf file exist?

Yes

akopachov commented 6 months ago

Could you please share Version and CryptoVersion properties out of /ext/apps_data/totp/totp.conf?

RingoAl commented 6 months ago

Filetype: Flipper TOTP plugin config file Version: 12 CryptoVersion: 3

akopachov commented 6 months ago

Does it work on official dev fw?

RingoAl commented 6 months ago

Flipper freezes on black screen on latest dev (F309844E) after pin

akopachov commented 6 months ago

So far can't reproduce it on my flipper running official stable (0.102.3).

If you delete /ext/apps_data/totp/totp.conf (take backup of it before) does app start normally?

RingoAl commented 6 months ago

I've renamed totp.conf. App starts normally, asks for pin setup and crashes with same error on "Add new token"

akopachov commented 6 months ago

Did exactly the same steps - still working just fine on my side. Let's try to use Authenticator from the latest nightly build.

RingoAl commented 6 months ago

This build works fine, thanks.

akopachov commented 6 months ago

No problem. Probably you were building outdated code or so. In any case - glad it works fine for you now