1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-26 23:43:30 +03:00
Commit Graph

1905 Commits

Author SHA1 Message Date
Bruce Momjian
5373878775 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:33 +00:00
Bruce Momjian
af6b2e30a4 Stamp releases 8.2.4, 8.1.9, 8.0.13, 7.4.17, 7.3.19. 2007-04-19 03:06:28 +00:00
Tom Lane
af8a424324 Stamp release 7.3.18.
Security: CVE-2007-0555, CVE-2007-0556
2007-02-02 00:16:01 +00:00
Peter Eisentraut
cf9ca3d2a3 Translation updates 2007-01-31 08:05:43 +00:00
Bruce Momjian
3294607a6a Stamp release 7.3.17. 2007-01-05 20:52:58 +00:00
Bruce Momjian
b25ddbb81e Update libpq.rc for 7.3.16 and 7.4.14. Later releases use libpq.rc.in,
which was already updated.
2006-10-10 00:19:51 +00:00
Tom Lane
fe090f0778 Back-patch 7.4-era fix for memory leak with SSL connections due to
missing X509_free() calls.  Per a request from a Red Hat customer;
seems silly for Red Hat to be shipping a patch that's not in upstream.
2006-06-23 14:42:52 +00:00
Bruce Momjian
502b68876c Stamp releases 7.3.15, 7.4.13, and 8.0.8. 2006-05-21 20:28:22 +00:00
Tom Lane
e6f43f7786 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:48 +00:00
Bruce Momjian
583a472f7b Change \' to '', for SQL standards compliance. Backpatch to 7.3, 7.4,
and 8.0.  Later releases already patched.
2006-05-21 19:56:41 +00:00
Tom Lane
803d61a353 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:16:08 +00:00
Bruce Momjian
c551fd362e Stamp releases for 2006-02-14 release 2006-02-12 18:41:22 +00:00
Bruce Momjian
44a3ad2ab0 Stamp release 7.3.13. 2006-01-05 03:59:21 +00:00
Tom Lane
93bcee8d4e Remove unused HAVE_STRUCT_SOCKCRED code, which was causing a duplicate-
variable-definition error on recent FreeBSDen (evidently, that platform
also HAS_STRUCT_CMSGCRED).  Backport of 7.4 fix dated 2003-10-25.
2005-12-13 03:36:14 +00:00
Tom Lane
fbb687fa1b Stamp 7.3.12. 2005-12-09 20:56:45 +00:00
Tom Lane
ae049f191d Stamp release 7.3.11. 2005-10-03 17:24:27 +00:00
Tom Lane
f3d95f3c7f Fix mis-backport of libpq memory leak fix. Per Michael Fuhr. 2005-07-14 14:07:50 +00:00
Tom Lane
32f9bc6f7d Fix libpq memory leak during PQreset() --- closePGconn() was not
freeing all transient state of the PGconn object.
2005-07-13 15:26:25 +00:00
Tom Lane
d53f22de86 Make libpq_gettext save and restore errno in a Windows-compatible way.
Also, back-patch fix into back branches.
2005-07-08 15:25:36 +00:00
Tom Lane
07e3879c95 Stamp release 7.3.10. 2005-05-05 20:09:12 +00:00
Tom Lane
7929303d61 Stamp release 7.3.9. 2005-01-30 20:08:15 +00:00
Tom Lane
42a8068b5c Stamp release 7.3.8. 2004-10-22 00:27:05 +00:00
Tom Lane
1bc489bc9c Stamp 7.3.7. 2004-08-15 00:52:02 +00:00
Peter Eisentraut
6122f38b0a Translation updates 2004-04-05 09:02:37 +00:00
Tom Lane
2d558b2baa Brand 7.3.6. 2004-03-02 00:44:55 +00:00
Tom Lane
7af352f103 Brand 7.3.5. 2003-12-02 16:26:00 +00:00
Joe Conway
8582f21afd Make PQescapeBytea and byteaout consistent with each other, and
octal escape all octets outside the range 0x20 to 0x7e. This fixes
the problem pointed out by Sergey Yatskevich here:
http://archives.postgresql.org/pgsql-bugs/2003-11/msg00140.php
2003-11-30 20:52:37 +00:00
Tom Lane
fe979ae406 Back-patch removal of unnecessary inclusion of <crypt.h>, so that
7.3.5 will build out-of-the-box on Solaris.
2003-10-31 18:14:11 +00:00
Tom Lane
b0a0a80618 Sigh, I'm an idiot ... SSL_ERROR_WANT_READ isn't an error condition
at all, it just means 'no data available yet'.
2003-08-22 21:57:44 +00:00
Barry Lind
8ba1fa7db1 Backport to 7.3. Third try to fix the sql injection
vulnerability.  This fix completely removes the ability (hack) of being able
to bind a list of values in an in clause.  It was demonstrated that by allowing
that functionality you open up the possibility for certain types of
sql injection attacks.  The previous fix attempts all focused on preventing
the insertion of additional sql statements (the semi-colon problem:
xxx; any new sql statement here).  But that still left the ability to
change the where clause on the current statement or perform a subselect
which can circumvent applicaiton security logic and/or allow you to call
any stored function.

 Modified Files:
  Tag: REL7_3_STABLE
	jdbc/org/postgresql/Driver.java.in
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-08-07 17:56:27 +00:00
Tom Lane
5365a0cf52 Fix some more problems with testing error returns from SSL. 2003-08-04 17:25:29 +00:00
Barry Lind
83bc9b9d2e Patch to fix additional SQL injection vulnerabilities reported by Oliver Jowett
and Dmitry Tkach
 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/Driver.java.in
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-07-23 23:34:31 +00:00
Bruce Momjian
1ecc0fdb00 Stamp 7.3.4 release. 2003-07-23 04:10:16 +00:00
Barry Lind
5d882f78ae Fix to prevent SQL injection attacks when calling setObject(int,Object,int)
where the Object is a String and the type is numeric (i.e. INTEGER,LONG,etc).
The fix applies the standard escaping for these values.

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/Driver.java.in
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-07-22 05:13:05 +00:00
Tom Lane
9bc3438b03 Brand 7.3.3. 2003-05-22 20:17:24 +00:00
Barry Lind
f3ed902421 Upped JDBC build number to 110 for the 7.3.3 release
Modified Files:
  Tag: REL7_3_STABLE
 	Driver.java.in
2003-05-19 04:12:52 +00:00
Peter Eisentraut
977adedda8 Small translation updates for 7.3.3 release. 2003-05-18 23:51:41 +00:00
Barry Lind
52eeb494e7 Applied patches from Kris Jurka fixing a string tokenizing problem and
fixing an order by problem for index metadata results.
Also includes removing some unused code as well as a fix to the toString
method on statement.

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-04-17 04:19:55 +00:00
Tom Lane
8d477bd33a Fix error recovery for SSL_read/SSL_write calls. 2003-04-10 23:03:13 +00:00
Dave Cramer
6ee2c29354 added addDataType to the interface 2003-04-08 17:26:39 +00:00
Dave Cramer
a6f056987e fixed problem where information from previous updates was leaking into subsequent updates patch from Shawn Green, slightly modified 2003-03-25 02:23:10 +00:00
Dave Cramer
1c4f2a63c0 added DISTINCT to the query to get cross reference. This is required when two columns in a table are both foreign keys to another table. From Peter Royal proyal@pace2020.com 2003-03-25 02:01:19 +00:00
Dave Cramer
b27eb64e61 fixed problem where information from previous updates was leaking into subsequent updates patch from Shawn Green 2003-03-25 01:57:03 +00:00
Barry Lind
74a665a8b3 New build number 2003-03-24 04:01:38 +00:00
Barry Lind
8e2ca1a7d8 Backport fix for parsing acls (didn't correctly interpret null acl to mean
table owner has privs)
 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2003-03-24 03:49:49 +00:00
Barry Lind
e02ace4418 Backport patch to work around a server bug. Server incorrectly handles the
following:  select 1; commit; set autocommit true;
If this is submitted in one call to the server (the select 1 doesn't start a
new transaction like it should), however if the select 1 is sent as a separate
call then it works correctly.

Modified Files:
 Tag: REL7_3_STABLE
	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
2003-03-19 04:09:09 +00:00
Barry Lind
d10ed0263e Applied translation fixes
Modified Files:
  Tag: REL7_3_STABLE
 	errors_zh_TW.properties
2003-03-18 05:24:36 +00:00
Barry Lind
1ad6337fd5 Backport fix for parsing \n in updateable result sets to 7.3 branch
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
2003-03-14 05:38:36 +00:00
Barry Lind
8f390674de Backport batch update error message improvements to 7.3 branch
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/errors.properties
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
 	jdbc/org/postgresql/util/PSQLException.java
2003-03-14 01:23:08 +00:00
Barry Lind
899c711070 Back ported patches from head to 7.3 branch (fixes for NPE in result set absolute() and NPE when logging enabled)
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
 	jdbc/org/postgresql/util/PSQLException.java
2003-03-08 06:09:37 +00:00