1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-21 15:54:08 +03:00

2723 Commits

Author SHA1 Message Date
Marc G. Fournier
164a8ff822 Tag 8.1.18 2009-09-04 02:59:54 +00:00
Peter Eisentraut
54e070ba08 Translation updates 2009-09-03 19:08:57 +00:00
Marc G. Fournier
023c537f47 tag 8.1.17 2009-03-13 02:22:05 +00:00
Marc G. Fournier
55a19fa409 tagging 8.1.16 2009-01-30 03:18:18 +00:00
Magnus Hagander
53759b01ff Go over all OpenSSL return values and make sure we compare them
to the documented API value. The previous code got it right as
it's implemented, but accepted too much/too little compared to
the API documentation.

Per comment from Zdenek Kotala.
2009-01-28 15:06:53 +00:00
Marc G. Fournier
d8ca7ffbea tag 8.1.15 2008-10-31 02:49:03 +00:00
Peter Eisentraut
7266a78f7b Translation updates 2008-10-30 19:23:08 +00:00
Michael Meskes
77aa915797 Optional arguments should be optional. 2008-10-10 12:19:32 +00:00
Marc G. Fournier
00f3091e60 tag for 8.1.14 2008-09-19 03:19:16 +00:00
Tom Lane
638aa5a7af Stamp 8.1.13 (except for configure.in/configure) 2008-06-08 22:14:47 +00:00
Tom Lane
7ac3f8485b Stamp 8.1.12 (except for configure.in/configure) 2008-06-05 23:56:05 +00:00
Tom Lane
84a43fcdf3 Translation updates. 2008-06-05 23:37:16 +00:00
Michael Meskes
59b67db158 Added SQL symbol for variable names here too. 2008-06-05 06:25:23 +00:00
Michael Meskes
a0f770dbdc Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract. 2008-04-10 10:46:34 +00:00
Tom Lane
78f53d5a00 Fix an ancient oversight in libpq's handling of V3-protocol COPY OUT mode:
we need to be able to swallow NOTICE messages, and potentially also
ParameterStatus messages (although the latter would be a bit weird),
without exiting COPY OUT state.  Fix it, and adjust the protocol documentation
to emphasize the need for this.  Per off-list report from Alexander Galler.
2008-01-14 18:46:33 +00:00
Tom Lane
d419ce4568 Stamp release 8.1.11.
Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
2008-01-03 21:41:24 +00:00
Michael Meskes
607359854e Fixed two parser bugs. 2007-11-06 08:32:57 +00:00
Magnus Hagander
9310b2e578 Don't try to free pgpassfile since it's a stack variable.
Martin Pitt
2007-10-09 15:03:30 +00:00
Peter Eisentraut
eae9062283 Translation updates 2007-09-13 21:10:01 +00:00
Bruce Momjian
1116c0d4d3 Stamp releases 8.2.5, 8.1.10, 8.0.14, 7.4.18, 7.3.20.
Update FAQs for 8.2.5.
2007-09-11 17:37:08 +00:00
Michael Meskes
2169ad2208 Fixed bug in Informix define handling. 2007-08-29 13:58:51 +00:00
Magnus Hagander
b25d3e4db0 The correct min buffer size is
INITIAL_EXPBUFFER_SIZE, not PQERRORMSG_LENGTH.

Backpatch only, the proper fix in HEAD is
to use PQExpBuffers everywhere.
2007-07-23 18:13:02 +00:00
Michael Meskes
7b5d257ee1 Removed errant ISODOW 2007-05-21 14:57:16 +00:00
Michael Meskes
287671749c Backported fix from HEAD that removes superfluous function Vista has a problem with 2007-05-21 07:12:51 +00:00
Michael Meskes
56680bae08 Removed non-existant function from extern.h 2007-04-27 07:55:28 +00:00
Michael Meskes
72e6a18813 Inlined two functions to get rid of va_list prolems on some archs. 2007-04-27 06:58:24 +00:00
Bruce Momjian
4938f2d6c0 Stamp releases 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 03:06:50 +00:00
Tom Lane
b190aae9ad Fix typo, ensable -> enable, per Steve Gieseking. 2007-03-27 03:25:43 +00:00
Michael Meskes
e9a97570fa Backported bug fix for #2956. 2007-02-27 13:27:05 +00:00
Bruce Momjian
94bf5466b0 Stamp releases 8.2.3, 8.1.8, 8.0.12. No release notes yet. 2007-02-07 03:48:38 +00:00
Michael Meskes
7fd912e854 Backported va_list handling cleanup 2007-02-06 09:41:52 +00:00
Tom Lane
924c1d4ceb Stamp release 8.1.7.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:14:48 +00:00
Peter Eisentraut
139e4a2635 Translation updates 2007-01-31 08:27:01 +00:00
Bruce Momjian
9b9758bb77 Stamp release 8.1.6. 2007-01-05 20:53:49 +00:00
Michael Meskes
a2281c8e6f Applied patch by Peter Harris to free auto_mem struct in ECPGconnect. 2006-11-08 10:48:27 +00:00
Bruce Momjian
7cec8b4e4a Stamp releases 7.3.16, 7.4.14, 8.0.9, and 8.1.5. 2006-10-09 23:39:03 +00:00
Michael Meskes
9084f700e5 Backported buffer overrun from HEAD 2006-08-18 16:33:29 +00:00
Michael Meskes
017d79b10d Applied the connect patch from HEAD. 2006-08-18 16:00:06 +00:00
Michael Meskes
bf1cd364b6 Fixed remaining Coverity bugs. 2006-07-05 10:50:06 +00:00
Michael Meskes
88f396e1cb Added missing braces to prevent a segfault after usage of an undeclared cursor. 2006-06-26 14:12:42 +00:00
Michael Meskes
1bdea12e5c Added some more coverity report patches send in by Joachim Wieland <joe@mcknight.de>. 2006-06-26 09:20:19 +00:00
Michael Meskes
5ececcbbf5 Moved some free() calls that coverity correctly complains about. 2006-06-25 09:59:18 +00:00
Michael Meskes
ca1d26338b Added some more coverity report patches send in by Martijn van Oosterhout <kleptog@svana.org>. 2006-06-21 11:38:26 +00:00
Michael Meskes
08f1973911 Added fixes from the coverity report send in by Joachim Wieland <joe@mcknight.de>
Added missing error handling in a few functions in ecpglib.
2006-06-21 10:29:50 +00:00
Michael Meskes
23623f05f0 Do not use already free'ed errmsg, bug found by Joachim Wieland
<joachim.wieland@credativ.de>
2006-06-19 09:20:07 +00:00
Bruce Momjian
06a1807e5e Have BCC echo output "" using "", rather than \"\" as earlier reported.
Backpatch to 8.1.X.
2006-06-06 16:17:31 +00:00
Michael Meskes
aac12de9b6 Fixed two memory leaks in ecpglib. 2006-06-06 11:36:22 +00:00
Tom Lane
53409f1b37 Remove pqsignalinquire(), which is unused and has portability issues. 2006-05-30 15:58:07 +00:00
Tom Lane
7f615cab57 Modify libpq's string-escaping routines to be aware of encoding considerations
and standard_conforming_strings.  The encoding changes are needed for proper
escaping in multibyte encodings, as per the SQL-injection vulnerabilities
noted in CVE-2006-2313 and CVE-2006-2314.  Concurrent fixes are being applied
to the server to ensure that it rejects queries that may have been corrupted
by attempted SQL injection, but this merely guarantees that unpatched clients
will fail rather than allow injection.  An actual fix requires changing the
client-side code.  While at it we have also fixed these routines to understand
about standard_conforming_strings, so that the upcoming changeover to SQL-spec
string syntax can be somewhat transparent to client code.

Since the existing API of PQescapeString and PQescapeBytea provides no way to
inform them which settings are in use, these functions are now deprecated in
favor of new functions PQescapeStringConn and PQescapeByteaConn.  The new
functions take the PGconn to which the string will be sent as an additional
parameter, and look inside the connection structure to determine what to do.
So as to provide some functionality for clients using the old functions,
libpq stores the latest encoding and standard_conforming_strings values
received from the backend in static variables, and the old functions consult
these variables.  This will work reliably in clients using only one Postgres
connection at a time, or even multiple connections if they all use the same
encoding and string syntax settings; which should cover many practical
scenarios.

Clients that use homebrew escaping methods, such as PHP's addslashes()
function or even hardwired regexp substitution, will require extra effort
to fix :-(.  It is strongly recommended that such code be replaced by use of
PQescapeStringConn/PQescapeByteaConn if at all feasible.
2006-05-21 20:19:44 +00:00
Bruce Momjian
e720382441 Stamp 8.1.4, except configure/configure.in. 2006-05-19 03:57:17 +00:00