forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit95eb4cd
committed
Avoid possible segfault in psql's tab completion.
Fix oversight inbd1276a: the "words_after_create" stanza inpsql_completion() requires previous_words_count > 0, since it usesprev_wd. This condition was formerly assured by the if-else chainabove it, but no more. If there were no previous words then we'ddereference an uninitialized pointer, possibly causing a segfault.Report and patch by Anthonin Bonnefoy.Discussion:https://postgr.es/m/CAO6_XqrSRE7c_i+D7Hm07K3+6S0jTAmMr60RY41XzaA29Ae5uA@mail.gmail.com1 parentfd64ed6 commit95eb4cd
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2024 | 2024 |
| |
2025 | 2025 |
| |
2026 | 2026 |
| |
2027 |
| - | |
| 2027 | + | |
2028 | 2028 |
| |
2029 | 2029 |
| |
2030 | 2030 |
| |
|
0 commit comments
Comments
(0)