Skip to content

Commit 7bfec16

Browse files
committed
Back-patch fix for crash in GetRawDatabaseInfo(), just in case someone
else needs it.
1 parent de9b43f commit 7bfec16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/misc/database.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.37 2000/04/12 17:16:07 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.37.2.1 2001/01/14 03:16:12 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -180,7 +180,7 @@ GetRawDatabaseInfo(const char *name, Oid *db_id, char *path)
180180
max = PageGetMaxOffsetNumber(pg);
181181

182182
/* look at each tuple on the page */
183-
for (i = 0; i <= max; i++)
183+
for (i = 0; i < max; i++)
184184
{
185185
int offset;
186186

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy