eulerto / pgquarrel

pgquarrel compares PostgreSQL database schemas (DDL)
BSD 3-Clause "New" or "Revised" License
389 stars 42 forks source link

Accepted password can't have more than 8 characters #72

Closed nicolasboulay closed 4 years ago

nicolasboulay commented 4 years ago

It's a bug in quarrel.c

sizeof(prompt_password) will always return 8 in 64 bits environment, because prompt_password is an pointer and not a static array.

Use 100 as hard coded value. I try with "char prompt_password[100];", it works, but the string will not be valid outside of the scope of the function.

eulerto commented 4 years ago

Fixed at commit 12698abce6bd91faecc6c0f73b078cc147674139.