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

Commitc7cc9b7

Browse files
committed
Correct pg_recvlogical server version test.
The predecessor test boiled down to "PQserverVersion(NULL) >= 100000",which is always false. No release includes that, so it could not havereintroducedCVE-2018-1058. Back-patch to 9.4, like the addition of thepredecessor in commit8d2814f.Discussion:https://postgr.es/m/20180422215551.GB2676194@rfd.leadboat.com
1 parent1222db9 commitc7cc9b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pg_basebackup/streamutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ GetConnection(void)
212212
* 10, so the search path cannot be changed (by us or attackers) on
213213
* earlier versions.
214214
*/
215-
if (dbname!=NULL&&PQserverVersion(conn) >=100000)
215+
if (dbname!=NULL&&PQserverVersion(tmpconn) >=100000)
216216
{
217217
PGresult*res;
218218

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp