paolostivanin / OTPClient

Highly secure and easy to use OTP client written in C/GTK3 that supports both TOTP and HOTP
GNU General Public License v3.0
472 stars 46 forks source link

<< Segmentation fault (core dumped) >> when Importing QR as File #240

Closed ciro314 closed 2 years ago

ciro314 commented 2 years ago

Hello,

I am running Manjaro, installed OTPClient (2.4.8) from the AUR and imported succesfully some QR codes via '+ >> 'using a QR Code' >> 'Import from file'. When trying to import the QR from a Nextcloud provider, I get the error message << Segmentation fault (core dumped) >>. My Android phone does scan the QR correctly. I tried to import that QR in other machine running Manjaro and got the same error. If this is a bug and I could contribute fixing it, I would help you. Regards

paolostivanin commented 2 years ago

Hello, Seems definitely a bug, even though I don't understand why it's happening only with a particular provider. Would you be able to generate a fake nextcloud qr code, so that a could debug the issue myself?

Thanks!

ciro314 commented 2 years ago

download Fake QR for Nextcloud

Thank you for answering

paolostivanin commented 2 years ago

Thanks, I'll have a look at this asap!

paolostivanin commented 2 years ago

Bug confirmed, I think it's an issue with utf8 handling. I hope to have a fix out in few hours. Thanks for reporting this :)

paolostivanin commented 2 years ago

Found the issue. It's a parsing bug in parse-uri.c