We have found a crash in pinentry-qt with QtCurve using pinentry-1.1.0 in openSUSE Tumbleweed. The steps to reproduce the crash are mentioned in [0]. The root cause is a dangling pointer in qt/main.cpp and the patch that fixes the issue can be found in [1]. I'll attach the patch here.
Not sure if additional checks should be added at this point for argc since it must be greater than zero.
[0] https://bugzilla.opensuse.org/show_bug.cgi?id=1141883#c12
[1] https://bugzilla.opensuse.org/show_bug.cgi?id=1141883#c18