Commit graph

2625 commits

Author SHA1 Message Date
Marc G. Fournier
d60fdd2502 tag 8.0.21 2009-03-13 02:30:37 +00:00
Marc G. Fournier
287e6acae8 commit first then tag 8.0.20 2009-01-30 04:59:15 +00:00
Magnus Hagander
5ecd9dc75a 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:51 +00:00
Marc G. Fournier
d297635721 tag for 8.0.19 2008-10-31 02:54:50 +00:00
Peter Eisentraut
60278b1cc8 Translation updates 2008-10-30 19:21:26 +00:00
Michael Meskes
f99df7c573 Optional argument should be optional. 2008-10-10 12:19:18 +00:00
Marc G. Fournier
b0ea4828e4 tag for 8.0.18 2008-09-19 03:23:34 +00:00
Tom Lane
ee439b5242 Stamp 8.0.17 (except for configure.in/configure) 2008-06-08 22:15:07 +00:00
Tom Lane
6a2cd0bfba Stamp 8.0.16 (except for configure.in/configure) 2008-06-05 23:56:24 +00:00
Tom Lane
8ea646bb68 Translation updates. 2008-06-05 23:37:32 +00:00
Michael Meskes
df52ecc314 Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract. 2008-04-10 10:46:44 +00:00
Tom Lane
aff5af7dad 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:40 +00:00
Tom Lane
231967907d Stamp release 8.0.15.
Security: CVE-2007-4769, CVE-2007-4772, CVE-2007-6067, CVE-2007-6600, CVE-2007-6601
2008-01-03 21:41:51 +00:00
Michael Meskes
7e002a6f56 Added missing clause to parser. 2007-11-06 08:33:18 +00:00
Peter Eisentraut
7feaeb809c Translation updates 2007-09-13 21:04:12 +00:00
Bruce Momjian
37ac2f6d1f 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:36:57 +00:00
Michael Meskes
1798444300 Fixed bug in Informix define handling. 2007-08-29 13:59:04 +00:00
Magnus Hagander
5fd6d0fd19 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:12:56 +00:00
Bruce Momjian
416dcc4927 Stamp releases 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 03:06:46 +00:00
Michael Meskes
278ed7c6ce Backported bug fix for #2956. 2007-02-27 13:26:59 +00:00
Bruce Momjian
8cbd1c3ba8 Stamp releases 8.2.3, 8.1.8, 8.0.12. No release notes yet. 2007-02-07 03:48:21 +00:00
Michael Meskes
2d28b69000 Backported va_list handling cleanup 2007-02-06 09:42:08 +00:00
Tom Lane
d724689b73 Stamp release 8.0.11.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:15:09 +00:00
Peter Eisentraut
a258f9c6de Translation updates 2007-01-31 08:20:42 +00:00
Bruce Momjian
e0f20bbe44 Stamp release 8.0.10. 2007-01-05 20:53:30 +00:00
Michael Meskes
171f936b51 Applied patch by Peter Harris to free auto_mem struct in ECPGconnect. 2006-11-08 10:48:21 +00:00
Bruce Momjian
bc0fa10440 Stamp releases 7.3.16, 7.4.14, 8.0.9, and 8.1.5. 2006-10-09 23:38:46 +00:00
Michael Meskes
2d280ef3fb Backported buffer overrun fix from HEAD 2006-08-18 16:33:50 +00:00
Michael Meskes
95a5a29845 Applied the connect patch from HEAD 2006-08-18 16:00:49 +00:00
Michael Meskes
33215c2b78 Fixed remaining Coverity bugs. 2006-07-05 10:50:20 +00:00
Michael Meskes
b48aeb5145 Added missing braces to prevent a segfault after usage of an undeclared cursor. 2006-06-26 14:13:04 +00:00
Michael Meskes
a503fd3634 Added some more coverity report patches send in by Joachim Wieland <joe@mcknight.de>. 2006-06-26 09:20:30 +00:00
Michael Meskes
b4595d71f2 Moved some free() calls that coverity correctly complains about. 2006-06-25 10:00:11 +00:00
Michael Meskes
ca6667fef0 Added some more coverity report patches send in by Martijn van Oosterhout <kleptog@svana.org>. 2006-06-21 11:38:35 +00:00
Michael Meskes
289a3b73e2 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:31:45 +00:00
Michael Meskes
14f52896b8 Do not use already free'ed errmsg, bug found by Joachim Wieland
<joachim.wieland@credativ.de>
2006-06-19 09:20:22 +00:00
Michael Meskes
3066e8ab03 Fixed two memory leaks in ecpglib. 2006-06-06 11:36:12 +00:00
Tom Lane
1252a6a042 Remove pqsignalinquire(), which is unused and has portability issues. 2006-05-30 15:58:14 +00:00
Bruce Momjian
29dd673a94 Stamp releases 7.3.15, 7.4.13, and 8.0.8. 2006-05-21 20:28:35 +00:00
Tom Lane
94dec9114b 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:20:05 +00:00
Bruce Momjian
833e84621c Change \' to '', for SQL standards compliance. Backpatch to 7.3, 7.4,
and 8.0.  Later releases already patched.
2006-05-21 19:57:40 +00:00
Michael Meskes
46942e84d9 Fixed memory leak bugs found by Martijn Oosterhout. 2006-04-24 09:45:57 +00:00
Tom Lane
8f7fce2fd6 Fix ancient memory leak in PQprintTuples(); our code no longer uses this
routine, but perhaps some applications do.  Found by Martijn van Oosterhout
using Coverity.
2006-04-19 16:15:41 +00:00
Michael Meskes
8931dbf52a Fixed bug 2330: Wrong error code in case of a duplicate key 2006-03-19 12:30:17 +00:00
Bruce Momjian
5ae9c6138b Stamp releases for 2006-02-14 release 2006-02-12 18:41:53 +00:00
Neil Conway
8372956243 When using GCC on AMD64 and PPC, ECPGget_variable() takes a va_list *, not
a va_list. Christof Petig's previous patch made this change, but neglected
to update ecpglib/descriptor.c, resulting in a compiler warning (and a
likely runtime crash) on AMD64 and PPC.
2006-01-15 22:47:21 +00:00
Bruce Momjian
2a35aedd97 Stamp relesae 8.0.6. 2006-01-05 04:00:29 +00:00
Neil Conway
6b0e64431c Remove DOS line endings ("\r\n") from several .po files. DOS line endings
are inconsistent with the rest of the .po files, and apparently cause
problems for Sun's cc. Per report on IRC from "bitvector2".
2006-01-01 10:14:59 +00:00
Tom Lane
499dad06f2 Stamp 8.0.5. 2005-12-09 20:49:38 +00:00
Michael Meskes
f9bdaeeb34 - Made several variables "const char *" instead of "char *" as proposed by Qingqing Zhou <zhouqq@cs.toronto.edu>.
- Replaced all strdup() calls by ECPGstrdup().
2005-11-30 12:51:07 +00:00