Re: Found a buffer-overflow defect in asynchronous database connection API PQconnectPoll
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sudheer H R <sudheer.hr@tekenlight.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2021-06-23T16:02:40Z
Lists: pgsql-bugs
Sudheer H R <sudheer.hr@tekenlight.com> writes: > Built with —with-gssapi and the problem occurs again. Hmph. I can't reproduce this on RHEL8: so far as I can tell, the string is physically null-terminated, and clang's address sanitizer doesn't complain either. Still, given the vagueness of the spec for gss_display_status, it seems wise to not assume that every GSS implementation acts the same. regards, tom lane
Commits
-
Don't assume GSSAPI result strings are null-terminated.
- 006a829b2d14 9.6.23 landed
- d3a845d1fd0f 10.18 landed
- 7eaf65451483 12.8 landed
- 361acef7e4c0 11.13 landed
- 13f3655683ba 13.4 landed
- 126cdaf47af2 14.0 landed