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

Commit0fb6954

Browse files
committed
Fix breakage of get_ps_display() in the PS_USE_NONE case.
Commit8c6d30f caused this function to fail to set *displenin the PS_USE_NONE code path. If the variable's previous valuehad been negative, that'd lead to a memory clobber at some callsites. We'd managed not to notice due to very thin test coverageof such configurations, but this appears to explain buildfarm memberlorikeet's recent struggles.Credit to Andrew Dunstan for spotting the problem. Back-patchto v13 where the bug was introduced.Discussion:https://postgr.es/m/136102.1648320427@sss.pgh.pa.us
1 parent411b913 commit0fb6954

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/backend/utils/misc/ps_status.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ get_ps_display(int *displen)
443443

444444
returnps_buffer+ps_buffer_fixed_size;
445445
#else
446+
*displen=0;
446447
return"";
447448
#endif
448449
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp