1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-18 12:22:09 +03:00
Commit Graph

3092 Commits

Author SHA1 Message Date
Peter Eisentraut
65a192c44f Translation updates for 8.3.12 2010-09-30 22:21:39 +03:00
Tom Lane
4f59eed6eb Still more .gitignore cleanup.
Fix overly-enthusiastic ignores, as identified by
git ls-files -i --exclude-standard
2010-09-24 13:48:30 -04:00
Tom Lane
33f41109fa More fixes for libpq's .gitignore file.
The previous patches failed to cover a lot of symlinks that are only
added in platform-specific cases.  Make the lists match what's in the
Makefile for each branch.
2010-09-22 22:32:38 -04:00
Tom Lane
9f5061aa87 Some more gitignore cleanups: cover contrib and PL regression test outputs.
Also do some further work in the back branches, where quite a bit wasn't
covered by Magnus' original back-patch.
2010-09-22 17:23:05 -04:00
Magnus Hagander
60591cde12 Add gitignore files for ecpg regression tests.
Backpatch to 8.2 as that's how far the structure looks the same.
2010-09-22 21:49:13 +02:00
Magnus Hagander
5fff996347 Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:12 +02:00
Michael Meskes
fce23c8780 Data returned by RETURNING clause wasn't correctly processed by ecpg. Patch backported from HEAD. 2010-06-04 10:48:34 +00:00
Marc G. Fournier
c70af4d2fc tag 8.3.11 2010-05-14 03:27:08 +00:00
Peter Eisentraut
0b2f2c57db Translation update 2010-05-13 07:37:42 +00:00
Tom Lane
db01ccc052 Work around a subtle portability problem in use of printf %s format.
Depending on which spec you read, field widths and precisions in %s may be
counted either in bytes or characters.  Our code was assuming bytes, which
is wrong at least for glibc's implementation, and in any case libc might
have a different idea of the prevailing encoding than we do.  Hence, for
portable results we must avoid using anything more complex than just "%s"
unless the string to be printed is known to be all-ASCII.

This patch fixes the cases I could find, including the psql formatting
failure reported by Hernan Gonzalez.  In HEAD only, I also added comments
to some places where it appears safe to continue using "%.*s".
2010-05-08 16:40:14 +00:00
Marc G. Fournier
e842325ac1 tag 8.3.10 2010-03-12 03:40:31 +00:00
Michael Meskes
e51710d1e2 Backport fix from HEAD that makes ecpglib give the right SQLSTATE if the connection disappears. 2010-03-08 13:15:51 +00:00
Magnus Hagander
19a9a5a15a Require hostname to be set when using GSSAPI authentication. Without it,
the GSSAPI libraries crash.

Noted by Zdenek Kotala
2010-03-08 10:01:20 +00:00
Tom Lane
6fe45c9665 Fix a couple of places that would loop forever if attempts to read a stdio file
set ferror() but never set feof().  This is known to be the case for recent
glibc when trying to read a directory as a file, and might be true for other
platforms/cases too.  Per report from Ed L.  (There is more that we ought to
do about his report, but this is one easily identifiable issue.)
2010-03-03 20:31:22 +00:00
Tom Lane
a6d3ec103b Set errno to zero before invoking SSL_read or SSL_write. It appears that
at least in some Windows versions, these functions are capable of returning
a failure indication without setting errno.  That puts us into an infinite
loop if the previous value happened to be EINTR.  Per report from Brendan
Hill.

Back-patch to 8.2.  We could take it further back, but since this is only
known to be an issue on Windows and we don't support Windows before 8.2,
it does not seem worth the trouble.
2009-12-30 03:46:01 +00:00
Marc G. Fournier
f25013104a tag 8.3.9 2009-12-10 03:02:07 +00:00
Magnus Hagander
d724237551 Reject certificates with embedded NULLs in the commonName field. This stops
attacks where an attacker would put <attack>\0<propername> in the field and
trick the validation code that the certificate was for <attack>.

This is a very low risk attack since it reuqires the attacker to trick the
CA into issuing a certificate with an incorrect field, and the common
PostgreSQL deployments are with private CAs, and not external ones. Also,
default mode in 8.4 does not do any name validation, and is thus also not
vulnerable - but the higher security modes are.

Backpatch all the way. Even though versions 8.3.x and before didn't have
certificate name validation support, they still exposed this field for
the user to perform the validation in the application code, and there
is no way to detect this problem through that API.

Security: CVE-2009-4034
2009-12-09 06:37:25 +00:00
Tom Lane
a15cb0652f Remove outside-the-scanner references to "yyleng".
It seems the flex developers have decided to change yyleng from int to size_t.
This has already happened in the latest release of OS X, and will start
happening elsewhere once the next release of flex appears.  Rather than trying
to divine how it's declared in any particular build, let's just remove the one
existing not-very-necessary external usage.

Back-patch to all supported branches; not so much because users in the field
are likely to care about building old branches with cutting-edge flex, as
to keep OSX-based buildfarm members from having problems with old branches.
2009-09-08 04:25:25 +00:00
Marc G. Fournier
e01fdca9f7 Tag 8.3.8 2009-09-04 00:53:29 +00:00
Peter Eisentraut
095f7ba339 Translation updates 2009-09-03 19:25:46 +00:00
Marc G. Fournier
c87a4d31f4 tag 8.3.7 2009-03-13 02:08:41 +00:00
Marc G. Fournier
5298d511ee tag for 8.3.6 2009-01-30 02:59:29 +00:00
Magnus Hagander
20632d57f1 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:57 +00:00
Michael Meskes
0b1953868e Replaced strchrnul by strchr. 2008-11-26 15:37:01 +00:00
Michael Meskes
c892504fa6 When creating a varchar struct name braces must be discarded. 2008-11-26 13:19:34 +00:00
Marc G. Fournier
a06dedfc5e commit for 8.3.5 2008-10-31 02:38:34 +00:00
Magnus Hagander
13a7d7f3cc Fix memory leak when using gsslib parameter in libpq connections 2008-10-23 16:17:22 +00:00
Michael Meskes
603972f3e0 Optional arguments should be optional. 2008-10-10 12:20:06 +00:00
Magnus Hagander
3862493ad3 Link libpq with libgssapi if configure finds it, as
required by at least NetBSD.

Markus Schaaf
2008-10-01 15:35:34 +00:00
Marc G. Fournier
63aa5e3527 tag for 8.3.4 2008-09-19 03:04:13 +00:00
Tom Lane
8208fbb4ce Avoid using sprintf() for a simple octal conversion in PQescapeByteaInternal.
Improves performance, per suggestion from Rudolf Leitgeb (bug #4414).
The backend did this right already, but not libpq.
2008-09-10 17:01:17 +00:00
Michael Meskes
393dc9bde2 Fixed incorrect argument handling in SET command if argument is a variable. 2008-08-20 14:07:16 +00:00
Magnus Hagander
1852a73c7a Make libpq on windows not try to send chunks larger than 64Kb.
Per Microsoft knowledge base article Q201213, early versions of
Windows fail when we do this. Later versions of Windows appear
to have a higher limit than 64Kb, but do still fail on large
sends, so we unconditionally limit it for all versions.

Patch from Tom Lane.
2008-08-20 11:53:51 +00:00
Bruce Momjian
36985c52f4 Synchronize Borland libpq makefile to match MSVC. Backpatch to 8.3.X. 2008-08-16 01:56:25 +00:00
Alvaro Herrera
aae91a5055 Add MSVC++ debug libraries to .cvsignore. 2008-07-17 21:16:24 +00:00
Magnus Hagander
da747a4e85 Fix standalone libpq build on win32.
Hiroshi Saito
2008-06-27 18:58:16 +00:00
Tom Lane
f1869c79a9 Stamp 8.3.3 (except for configure.in/configure) 2008-06-08 22:14:09 +00:00
Tom Lane
6deaeb3e2b Stamp 8.3.2 (except for configure.in/configure) 2008-06-05 23:55:26 +00:00
Tom Lane
2d2896507b Translation updates. 2008-06-05 23:36:45 +00:00
Michael Meskes
bf3bf909a5 Added symbol SQL to list of allowed variables. 2008-06-04 12:26:14 +00:00
Tom Lane
3ea40a115d Remove unused variable (was already done in HEAD) 2008-06-03 20:55:41 +00:00
Michael Meskes
f496eb31b2 Check for non-existant connection in prepare statement handling.
Do not close files that weren't opened.
2008-05-12 16:30:17 +00:00
Magnus Hagander
2804eb27ad Add more dependencies from libpgport required by
standalone msvc build of libpq.

Hiroshi Saito
2008-05-05 19:31:45 +00:00
Andrew Dunstan
547f61f028 Avoid using unnecessary pgwin32_safestat in libpq. 2008-04-16 14:21:23 +00:00
Michael Meskes
4fcff62991 Fixed bug in PGTYPEStimestamp_sub that used pointers instead of the values to substract. 2008-04-10 10:46:22 +00:00
Michael Meskes
e5fab267c5 added ECPGget_PGconn to exports.txt 2008-03-25 12:45:33 +00:00
Michael Meskes
4866b529f3 Corrected version number. 2008-03-21 16:10:10 +00:00
Michael Meskes
94a710563e Added ECPGget_PGconn() function to ecpglib, courtesy of Mike Aubury.
Bumped library version to 6.1.
2008-03-20 16:30:14 +00:00
Michael Meskes
6a78d754d0 Changed statement escaping to not escape continuation line markers.
Bumped precompiler patchlevel.
2008-03-20 16:04:52 +00:00
Tom Lane
eb66892ed6 Stamp version 8.3.1, except for configure.in/configure. 2008-03-13 23:57:34 +00:00