Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4fc8465

Browse files
committed
Fix psql crash. If MULTIBYTE is enabled, \l+ dumps core due to
SQL buffer in listAllDbs is just too small.
1 parentdae17e5 commit4fc8465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.21 2000/04/16 20:04:51 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.21.2.1 2000/09/0704:53:32 ishii Exp $
77
*/
88
#include"postgres.h"
99
#include"describe.h"
@@ -277,7 +277,7 @@ bool
277277
listAllDbs(booldesc)
278278
{
279279
PGresult*res;
280-
charbuf[512];
280+
charbuf[1024];
281281
printQueryOptmyopt=pset.popt;
282282

283283
strcpy(buf,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp