The issue was first discussed here. The execution of pgagroal-cli can raise segmentation fault when no command is specified, but a password is specified.
The segfault occurs because the program attempts to free a password that points to a position in *argv.
To Reproduce
Run pgagroal-cli in the shell without a command while specifying password:
./pgagroal-cli -h localhost -p 2345 -U test -P test
Describe the bug
The issue was first discussed here. The execution of
pgagroal-cli
can raise segmentation fault when no command is specified, but a password is specified.The segfault occurs because the program attempts to free a password that points to a position in *argv.
To Reproduce
Run
pgagroal-cli
in the shell without a command while specifying password:Version
Configuration
Configuration found here: https://github.com/agroal/pgagroal/blob/master/doc/GETTING_STARTED.md#configuration