- Notifications
You must be signed in to change notification settings - Fork5
Commitc400717
committed
Field conninfo strings throughout src/bin/scripts.
These programs nominally accepted conninfo strings, but they wouldproceed to use the original dbname parameter as though it were anunadorned database name. This caused "reindexdb dbname=foo" to issue anSQL command that always failed, and other programs printed a conninfostring in error messages that purported to print a database name. Fixboth problems by using PQdb() to retrieve actual database names.Continue to print the full conninfo string when reporting a connectionfailure. It is informative there, and if the database name is the soleproblem, the server-side error message will include the name. Beyondthose user-visible fixes, this allows a subsequent commit to synthesizeand use conninfo strings without that implementation detail leaking intomessages. As a side effect, the "vacuuming database" message nowappears after, not before, the connection attempt. Back-patch to 9.1(all supported versions).Reviewed by Michael Paquier and Peter Eisentraut.Security:CVE-2016-54241 parent9d924e9 commitc400717
File tree
5 files changed
+40
-42
lines changed- src/bin/scripts
5 files changed
+40
-42
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
212 |
| - | |
| 212 | + | |
213 | 213 |
| |
214 | 214 |
| |
215 |
| - | |
| 215 | + | |
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
196 | 195 |
| |
197 | 196 |
| |
198 |
| - | |
| 197 | + | |
| 198 | + | |
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
202 |
| - | |
203 | 202 |
| |
204 | 203 |
| |
205 |
| - | |
| 204 | + | |
| 205 | + | |
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
|
Lines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 |
| - | |
| 267 | + | |
268 | 268 |
| |
269 | 269 |
| |
270 | 270 |
| |
| |||
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
| 284 | + | |
| 285 | + | |
| 286 | + | |
284 | 287 |
| |
285 | 288 |
| |
286 | 289 |
| |
| |||
295 | 298 |
| |
296 | 299 |
| |
297 | 300 |
| |
298 |
| - | |
| 301 | + | |
299 | 302 |
| |
300 | 303 |
| |
301 |
| - | |
302 |
| - | |
303 |
| - | |
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
307 | 307 |
| |
308 |
| - | |
| 308 | + | |
309 | 309 |
| |
310 | 310 |
| |
311 |
| - | |
| 311 | + | |
312 | 312 |
| |
313 | 313 |
| |
314 |
| - | |
| 314 | + | |
315 | 315 |
| |
316 | 316 |
| |
317 |
| - | |
| 317 | + | |
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
| |||
360 | 360 |
| |
361 | 361 |
| |
362 | 362 |
| |
| 363 | + | |
363 | 364 |
| |
364 | 365 |
| |
365 |
| - | |
| 366 | + | |
| 367 | + | |
366 | 368 |
| |
367 | 369 |
| |
368 | 370 |
| |
| |||
371 | 373 |
| |
372 | 374 |
| |
373 | 375 |
| |
374 |
| - | |
| 376 | + | |
375 | 377 |
| |
376 |
| - | |
377 |
| - | |
378 | 378 |
| |
379 | 379 |
| |
380 | 380 |
| |
|
Lines changed: 21 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 |
| - | |
| 61 | + | |
63 | 62 |
| |
64 | 63 |
| |
65 |
| - | |
| 64 | + | |
66 | 65 |
| |
67 |
| - | |
68 |
| - | |
| 66 | + | |
69 | 67 |
| |
70 | 68 |
| |
71 | 69 |
| |
| |||
356 | 354 |
| |
357 | 355 |
| |
358 | 356 |
| |
| 357 | + | |
| 358 | + | |
| 359 | + | |
359 | 360 |
| |
360 | 361 |
| |
361 | 362 |
| |
362 |
| - | |
363 |
| - | |
| 363 | + | |
| 364 | + | |
364 | 365 |
| |
365 |
| - | |
| 366 | + | |
| 367 | + | |
366 | 368 |
| |
367 | 369 |
| |
368 | 370 |
| |
369 |
| - | |
370 |
| - | |
371 |
| - | |
372 | 371 |
| |
373 | 372 |
| |
374 | 373 |
| |
| |||
474 | 473 |
| |
475 | 474 |
| |
476 | 475 |
| |
477 |
| - | |
| 476 | + | |
478 | 477 |
| |
479 | 478 |
| |
480 | 479 |
| |
| |||
492 | 491 |
| |
493 | 492 |
| |
494 | 493 |
| |
495 |
| - | |
| 494 | + | |
496 | 495 |
| |
497 | 496 |
| |
498 | 497 |
| |
| |||
505 | 504 |
| |
506 | 505 |
| |
507 | 506 |
| |
508 |
| - | |
| 507 | + | |
509 | 508 |
| |
510 | 509 |
| |
511 | 510 |
| |
| |||
673 | 672 |
| |
674 | 673 |
| |
675 | 674 |
| |
676 |
| - | |
677 |
| - | |
| 675 | + | |
678 | 676 |
| |
679 | 677 |
| |
680 | 678 |
| |
| |||
693 | 691 |
| |
694 | 692 |
| |
695 | 693 |
| |
696 |
| - | |
| 694 | + | |
697 | 695 |
| |
698 | 696 |
| |
699 |
| - | |
| 697 | + | |
700 | 698 |
| |
701 | 699 |
| |
702 | 700 |
| |
| |||
722 | 720 |
| |
723 | 721 |
| |
724 | 722 |
| |
725 |
| - | |
| 723 | + | |
726 | 724 |
| |
727 | 725 |
| |
728 | 726 |
| |
| |||
762 | 760 |
| |
763 | 761 |
| |
764 | 762 |
| |
765 |
| - | |
| 763 | + | |
766 | 764 |
| |
767 | 765 |
| |
768 | 766 |
| |
| |||
778 | 776 |
| |
779 | 777 |
| |
780 | 778 |
| |
781 |
| - | |
| 779 | + | |
782 | 780 |
| |
783 | 781 |
| |
784 | 782 |
| |
| |||
797 | 795 |
| |
798 | 796 |
| |
799 | 797 |
| |
800 |
| - | |
| 798 | + | |
801 | 799 |
| |
802 | 800 |
| |
803 | 801 |
| |
| |||
813 | 811 |
| |
814 | 812 |
| |
815 | 813 |
| |
816 |
| - | |
| 814 | + | |
817 | 815 |
| |
818 | 816 |
| |
819 | 817 |
| |
|
0 commit comments
Comments
(0)