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

Commit71baff1

Browse files
committed
Fix buffer overrun in pg_upgrade.
Problem reported, and cause identified, by Hernan Gonzalez.
1 parent9f376e1 commit71baff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/pg_upgrade/controldata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ putenv2(const char *var, const char *val)
545545
{
546546
#ifndefWIN32
547547
char*envstr= (char*)pg_malloc(strlen(var)+
548-
strlen(val)+1);
548+
strlen(val)+2);
549549

550550
sprintf(envstr,"%s=%s",var,val);
551551
putenv(envstr);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp