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

Commite4db972

Browse files
committed
Use explicit_bzero() when clearing sslpassword in libpq
Since74a308c, any security-sensitive information gets cleared frommemory this way. This was forgotten in4dc6355.Author: Daniel GustafssonReviewed-by: Peter Eisentraut, Michael PaquierDiscussion:https://postgr.es/m/935443BA-D42E-4CE0-B181-1AD79E6DD45A@yesql.se
1 parentd2a9959 commite4db972

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4037,7 +4037,10 @@ freePGconn(PGconn *conn)
40374037
if (conn->sslkey)
40384038
free(conn->sslkey);
40394039
if (conn->sslpassword)
4040+
{
4041+
explicit_bzero(conn->sslpassword,strlen(conn->sslpassword));
40404042
free(conn->sslpassword);
4043+
}
40414044
if (conn->sslrootcert)
40424045
free(conn->sslrootcert);
40434046
if (conn->sslcrl)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp