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

Commit5fdb142

Browse files
committed
Tweak ArrayCount() to forestall possible access to temp[-1]. Problem
cannot actually happen at present because ArrayCount() is only calledon strings beginning with '{', but seems best to prevent it going forward.Per report from Yichen Xie.
1 parent3cb282f commit5fdb142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/arrayfuncs.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/adt/arrayfuncs.c,v 1.85 2002/11/13 00:39:47 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.86 2003/01/29 01:28:33 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -275,7 +275,7 @@ ArrayCount(char *str, int *dim, char typdelim)
275275
{
276276
intnest_level=0,
277277
i;
278-
intndim=0,
278+
intndim=1,
279279
temp[MAXDIM];
280280
boolscanning_string= false;
281281
booleoArray= false;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp