Closed Still34 closed 2 years ago
ok
Confirmed, the crash occurs when the help text attempts to be displayed.
This is actually a Qt bug, requesting the arguments list with any number of "*" in the positional args causes a crash.
Qt bug report recording the crash: https://bugreports.qt.io/browse/QTBUG-67515
This problem is actually caused by MinGW because the * is expanded to be a file list. This increases the value of argc
but NOT argv
and Qt reads junk data as a result causing the crash.
Summary
If a wildcard character (
*
) is passed into thekeepassxc-cli show
orkeepassxc-cli locate
command, the application crashes before a password prompt is shown. The same behavior cannot be reproduced on a headless Linux system (at least for WSL)Expected Behavior
keepassxc-cli [show|locate] dummy.kdbx *
Actual Behavior
keepassxc-cli [show|locate] dummy.kdbx *