Skip to content

Commit 5ad4faf

Browse files
committed
This patch removes a use of uninitialized memory in lmgr/lock.c, by
adding a missing sprintf(). Neil Conway
1 parent 3c104bc commit 5ad4faf

File tree

1 file changed

+2
-1
lines changed
  • src/backend/storage/lmgr

1 file changed

+2
-1
lines changed

src/backend/storage/lmgr/lock.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.115 2002/09/04 20:31:25 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.116 2002/09/26 05:18:30 momjian Exp $
1212
*
1313
* NOTES
1414
* Outside modules can create a lock table and acquire/release
@@ -256,6 +256,7 @@ LockMethodTableInit(char *tabName,
256256
shmemName = (char *) palloc(strlen(tabName) + 32);
257257

258258
/* each lock table has a non-shared, permanent header */
259+
sprintf(shmemName, "%s (lock method table)", tabName);
259260
lockMethodTable = (LOCKMETHODTABLE *)
260261
ShmemInitStruct(shmemName, sizeof(LOCKMETHODTABLE), &found);
261262

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