~ubuntu-branches/ubuntu/precise/postgresql-9.1/precise-security

« back to all changes in this revision

Viewing changes to doc/src/sgml/html/release-8-4-11.html

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-02-27 07:30:59 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120227073059-u7fux640td9s0t0q
Tags: 9.1.3-1
* Urgency medium due to security fixes.
* New upstream security/bug fix release:
  - Require execute permission on the trigger function for "CREATE
    TRIGGER".
    This missing check could allow another user to execute a trigger
    function with forged input data, by installing it on a table he
    owns. This is only of significance for trigger functions marked
    SECURITY DEFINER, since otherwise trigger functions run as the
    table owner anyway. (CVE-2012-0866)
  - Remove arbitrary limitation on length of common name in SSL
    certificates.
    Both libpq and the server truncated the common name extracted from
    an SSL certificate at 32 bytes. Normally this would cause nothing
    worse than an unexpected verification failure, but there are some
    rather-implausible scenarios in which it might allow one
    certificate holder to impersonate another. The victim would have to
    have a common name exactly 32 bytes long, and the attacker would
    have to persuade a trusted CA to issue a certificate in which the
    common name has that string as a prefix. Impersonating a server
    would also require some additional exploit to redirect client
    connections. (CVE-2012-0867)
  - Convert newlines to spaces in names written in pg_dump comments.
    pg_dump was incautious about sanitizing object names that are
    emitted within SQL comments in its output script. A name containing
    a newline would at least render the script syntactically incorrect.
    Maliciously crafted object names could present a SQL injection risk
    when the script is reloaded. (CVE-2012-0868)
  - Fix btree index corruption from insertions concurrent with
    vacuuming.
    An index page split caused by an insertion could sometimes cause a
    concurrently-running "VACUUM" to miss removing index entries that
    it should remove. After the corresponding table rows are removed,
    the dangling index entries would cause errors (such as "could not
    read block N in file ...") or worse, silently wrong query results
    after unrelated rows are re-inserted at the now-free table
    locations. This bug has been present since release 8.2, but occurs
    so infrequently that it was not diagnosed until now. If you have
    reason to suspect that it has happened in your database, reindexing
    the affected index will fix things.
  - Fix transient zeroing of shared buffers during WAL replay.
    The replay logic would sometimes zero and refill a shared buffer,
    so that the contents were transiently invalid. In hot standby mode
    this can result in a query that's executing in parallel seeing
    garbage data. Various symptoms could result from that, but the most
    common one seems to be "invalid memory alloc request size".
  - Fix handling of data-modifying WITH subplans in READ COMMITTED
    rechecking.
    A WITH clause containing "INSERT"/"UPDATE"/"DELETE" would crash if
    the parent "UPDATE" or "DELETE" command needed to be re-evaluated
    at one or more rows due to concurrent updates in READ COMMITTED
    mode.
  - Fix corner case in SSI transaction cleanup.
    When finishing up a read-write serializable transaction, a crash
    could occur if all remaining active serializable transactions are
    read-only.
  - Fix postmaster to attempt restart after a hot-standby crash.
    A logic error caused the postmaster to terminate, rather than
    attempt to restart the cluster, if any backend process crashed
    while operating in hot standby mode.
  - Fix "CLUSTER"/"VACUUM FULL" handling of toast values owned by
    recently-updated rows.
    This oversight could lead to "duplicate key value violates unique
    constraint" errors being reported against the toast table's index
    during one of these commands.
  - Update per-column permissions, not only per-table permissions, when
    changing table owner.
    Failure to do this meant that any previously granted column
    permissions were still shown as having been granted by the old
    owner. This meant that neither the new owner nor a superuser could
    revoke the now-untraceable-to-table-owner permissions.
  - Support foreign data wrappers and foreign servers in "REASSIGN
    OWNED".
    This command failed with "unexpected classid" errors if it needed
    to change the ownership of any such objects.
  - Allow non-existent values for some settings in "ALTER USER/DATABASE
    SET".
    Allow default_text_search_config, default_tablespace, and
    temp_tablespaces to be set to names that are not known. This is
    because they might be known in another database where the setting
    is intended to be used, or for the tablespace cases because the
    tablespace might not be created yet. The same issue was previously
    recognized for search_path, and these settings now act like that
    one.
  - Fix "unsupported node type" error caused by COLLATE in an "INSERT"
    expression.
  - Avoid crashing when we have problems deleting table files
    post-commit.
    Dropping a table should lead to deleting the underlying disk files
    only after the transaction commits. In event of failure then (for
    instance, because of wrong file permissions) the code is supposed
    to just emit a warning message and go on, since it's too late to
    abort the transaction. This logic got broken as of release 8.4,
    causing such situations to result in a PANIC and an unrestartable
    database.
  - Recover from errors occurring during WAL replay of "DROP
    TABLESPACE".
    Replay will attempt to remove the tablespace's directories, but
    there are various reasons why this might fail (for example,
    incorrect ownership or permissions on those directories). Formerly
    the replay code would panic, rendering the database unrestartable
    without manual intervention. It seems better to log the problem and
    continue, since the only consequence of failure to remove the
    directories is some wasted disk space.
  - Fix race condition in logging AccessExclusiveLocks for hot standby.
    Sometimes a lock would be logged as being held by "transaction
    zero". This is at least known to produce assertion failures on
    slave servers, and might be the cause of more serious problems.
  - Track the OID counter correctly during WAL replay, even when it
    wraps around.
  - Prevent emitting misleading "consistent recovery state reached" log
    message at the beginning of crash recovery.
  - Fix initial value of pg_stat_replication.replay_location.
  - Fix regular expression back-references with - attached.
    Rather than enforcing an exact string match, the code would
    effectively accept any string that satisfies the pattern
    sub-expression referenced by the back-reference symbol.
    A similar problem still afflicts back-references that are embedded
    in a larger quantified expression, rather than being the immediate
    subject of the quantifier. This will be addressed in a future
    PostgreSQL release.
  - Fix recently-introduced memory leak in processing of inet/cidr
    values.
  - Fix planner's ability to push down index-expression restrictions
    through UNION ALL.
  - Fix planning of WITH clauses referenced in "UPDATE"/"DELETE" on an
    inherited table.
    This bug led to "could not find plan for CTE" failures.
  - Fix GIN cost estimation to handle column IN (...) index conditions.
    This oversight would usually lead to crashes if such a condition
    could be used with a GIN index.
  - Fix dangling pointer after "CREATE TABLE AS"/"SELECT INTO" in a
    SQL-language function.
    In most cases this only led to an assertion failure in
    assert-enabled builds, but worse consequences seem possible.
  - Fix I/O-conversion-related memory leaks in plpgsql.
  - Work around bug in perl's SvPVutf8() function.
    This function crashes when handed a typeglob or certain read-only
    objects such as $^V. Make plperl avoid passing those to it.
  - In pg_dump, don't dump contents of an extension's configuration
    tables if the extension itself is not being dumped.
  - Improve pg_dump's handling of inherited table columns.
    pg_dump mishandled situations where a child column has a different
    default expression than its parent column. If the default is
    textually identical to the parent's default, but not actually the
    same (for instance, because of schema search path differences) it
    would not be recognized as different, so that after dump and
    restore the child would be allowed to inherit the parent's default.
    Child columns that are NOT NULL where their parent is not could
    also be restored subtly incorrectly.
  - Fix pg_restore's direct-to-database mode for INSERT-style table data.
    Direct-to-database restores from archive files made with
    "--inserts" or "--column-inserts" options fail when using
    pg_restore from a release dated September or December 2011, as a
    result of an oversight in a fix for another problem. The archive
    file itself is not at fault, and text-mode output is okay.
  - Teach pg_upgrade to handle renaming of plpython's shared library.
    Upgrading a pre-9.1 database that included plpython would fail
    because of this oversight.
  - Allow pg_upgrade to process tables containing regclass columns.
    Since pg_upgrade now takes care to preserve pg_class OIDs, there
    was no longer any reason for this restriction.
  - Make libpq ignore ENOTDIR errors when looking for an SSL client
    certificate file.
    This allows SSL connections to be established, though without a
    certificate, even when the user's home directory is set to
    something like /dev/null.
  - Fix some more field alignment issues in ecpg's SQLDA area.
  - Allow AT option in ecpg DEALLOCATE statements.
    The infrastructure to support this has been there for awhile, but
    through an oversight there was still an error check rejecting the
    case.
  - Do not use the variable name when defining a varchar structure in
    ecpg.
  - Fix "contrib/auto_explain"'s JSON output mode to produce valid JSON.
  - Fix error in "contrib/intarray"'s int[] & int[] operator.
    If the smallest integer the two input arrays have in common is 1,
    and there are smaller values in either array, then 1 would be
    incorrectly omitted from the result.
  - Fix error detection in "contrib/pgcrypto"'s encrypt_iv() and
    decrypt_iv().
    These functions failed to report certain types of invalid-input
    errors, and would instead return random garbage values for
    incorrect input.
  - Fix one-byte buffer overrun in "contrib/test_parser".
    The code would try to read one more byte than it should, which
    would crash in corner cases. Since "contrib/test_parser" is only
    example code, this is not a security issue in itself, but bad
    example code is still bad.
  - Use __sync_lock_test_and_set() for spinlocks on ARM, if available.
    This function replaces our previous use of the SWPB instruction,
    which is deprecated and not available on ARMv6 and later. Reports
    suggest that the old code doesn't fail in an obvious way on recent
    ARM boards, but simply doesn't interlock concurrent accesses,
    leading to bizarre failures in multiprocess operation.
  - Use "-fexcess-precision=standard" option when building with gcc
    versions that accept it.
    This prevents assorted scenarios wherein recent versions of gcc
    will produce creative results.
  - Allow use of threaded Python on FreeBSD (Chris Rees)
    Our configure script previously believed that this combination
    wouldn't work; but FreeBSD fixed the problem, so remove that error
    check.
* Drop 00git_inet_cidr_unpack.patch, 01-armel-tas.patch: Applied upstream.
* debian/watch: Use ftp for checking, thanks Peter Eisentraut.
  (Closes: #656129)
* debian/control: Bump Standards-Version to 3.9.3. No changes necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<HTML
 
3
><HEAD
 
4
><TITLE
 
5
>Release 8.4.11</TITLE
 
6
><META
 
7
NAME="GENERATOR"
 
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
 
9
REV="MADE"
 
10
HREF="mailto:pgsql-docs@postgresql.org"><LINK
 
11
REL="HOME"
 
12
TITLE="PostgreSQL 9.1.3 Documentation"
 
13
HREF="index.html"><LINK
 
14
REL="UP"
 
15
TITLE="Release Notes"
 
16
HREF="release.html"><LINK
 
17
REL="PREVIOUS"
 
18
TITLE="Release 9.0"
 
19
HREF="release-9-0.html"><LINK
 
20
REL="NEXT"
 
21
TITLE="Release 8.4.10"
 
22
HREF="release-8-4-10.html"><LINK
 
23
REL="STYLESHEET"
 
24
TYPE="text/css"
 
25
HREF="stylesheet.css"><META
 
26
HTTP-EQUIV="Content-Type"
 
27
CONTENT="text/html; charset=ISO-8859-1"><META
 
28
NAME="creation"
 
29
CONTENT="2012-02-23T23:09:00"></HEAD
 
30
><BODY
 
31
CLASS="SECT1"
 
32
><DIV
 
33
CLASS="NAVHEADER"
 
34
><TABLE
 
35
SUMMARY="Header navigation table"
 
36
WIDTH="100%"
 
37
BORDER="0"
 
38
CELLPADDING="0"
 
39
CELLSPACING="0"
 
40
><TR
 
41
><TH
 
42
COLSPAN="5"
 
43
ALIGN="center"
 
44
VALIGN="bottom"
 
45
><A
 
46
HREF="index.html"
 
47
>PostgreSQL 9.1.3 Documentation</A
 
48
></TH
 
49
></TR
 
50
><TR
 
51
><TD
 
52
WIDTH="10%"
 
53
ALIGN="left"
 
54
VALIGN="top"
 
55
><A
 
56
TITLE="Release 9.0"
 
57
HREF="release-9-0.html"
 
58
ACCESSKEY="P"
 
59
>Prev</A
 
60
></TD
 
61
><TD
 
62
WIDTH="10%"
 
63
ALIGN="left"
 
64
VALIGN="top"
 
65
><A
 
66
HREF="release.html"
 
67
ACCESSKEY="U"
 
68
>Up</A
 
69
></TD
 
70
><TD
 
71
WIDTH="60%"
 
72
ALIGN="center"
 
73
VALIGN="bottom"
 
74
>Appendix E. Release Notes</TD
 
75
><TD
 
76
WIDTH="20%"
 
77
ALIGN="right"
 
78
VALIGN="top"
 
79
><A
 
80
TITLE="Release 8.4.10"
 
81
HREF="release-8-4-10.html"
 
82
ACCESSKEY="N"
 
83
>Next</A
 
84
></TD
 
85
></TR
 
86
></TABLE
 
87
><HR
 
88
ALIGN="LEFT"
 
89
WIDTH="100%"></DIV
 
90
><DIV
 
91
CLASS="SECT1"
 
92
><H1
 
93
CLASS="SECT1"
 
94
><A
 
95
NAME="RELEASE-8-4-11"
 
96
>E.13. Release 8.4.11</A
 
97
></H1
 
98
><DIV
 
99
CLASS="NOTE"
 
100
><BLOCKQUOTE
 
101
CLASS="NOTE"
 
102
><P
 
103
><B
 
104
>Release Date: </B
 
105
>2012-02-27</P
 
106
></BLOCKQUOTE
 
107
></DIV
 
108
><P
 
109
>   This release contains a variety of fixes from 8.4.10.
 
110
   For information about new features in the 8.4 major release, see
 
111
   <A
 
112
HREF="release-8-4.html"
 
113
>Section E.24</A
 
114
>.
 
115
  </P
 
116
><DIV
 
117
CLASS="SECT2"
 
118
><H2
 
119
CLASS="SECT2"
 
120
><A
 
121
NAME="AEN110825"
 
122
>E.13.1. Migration to Version 8.4.11</A
 
123
></H2
 
124
><P
 
125
>    A dump/restore is not required for those running 8.4.X.
 
126
   </P
 
127
><P
 
128
>    However, if you are upgrading from a version earlier than 8.4.10,
 
129
    see the release notes for 8.4.10.
 
130
   </P
 
131
></DIV
 
132
><DIV
 
133
CLASS="SECT2"
 
134
><H2
 
135
CLASS="SECT2"
 
136
><A
 
137
NAME="AEN110829"
 
138
>E.13.2. Changes</A
 
139
></H2
 
140
><P
 
141
></P
 
142
><UL
 
143
><LI
 
144
><P
 
145
>      Require execute permission on the trigger function for
 
146
      <TT
 
147
CLASS="COMMAND"
 
148
>CREATE TRIGGER</TT
 
149
> (Robert Haas)
 
150
     </P
 
151
><P
 
152
>      This missing check could allow another user to execute a trigger
 
153
      function with forged input data, by installing it on a table he owns.
 
154
      This is only of significance for trigger functions marked
 
155
      <TT
 
156
CLASS="LITERAL"
 
157
>SECURITY DEFINER</TT
 
158
>, since otherwise trigger functions run
 
159
      as the table owner anyway.  (CVE-2012-0866)
 
160
     </P
 
161
></LI
 
162
><LI
 
163
><P
 
164
>      Remove arbitrary limitation on length of common name in SSL
 
165
      certificates (Heikki Linnakangas)
 
166
     </P
 
167
><P
 
168
>      Both <SPAN
 
169
CLASS="APPLICATION"
 
170
>libpq</SPAN
 
171
> and the server truncated the common name
 
172
      extracted from an SSL certificate at 32 bytes.  Normally this would
 
173
      cause nothing worse than an unexpected verification failure, but there
 
174
      are some rather-implausible scenarios in which it might allow one
 
175
      certificate holder to impersonate another.  The victim would have to
 
176
      have a common name exactly 32 bytes long, and the attacker would have
 
177
      to persuade a trusted CA to issue a certificate in which the common
 
178
      name has that string as a prefix.  Impersonating a server would also
 
179
      require some additional exploit to redirect client connections.
 
180
      (CVE-2012-0867)
 
181
     </P
 
182
></LI
 
183
><LI
 
184
><P
 
185
>      Convert newlines to spaces in names written in <SPAN
 
186
CLASS="APPLICATION"
 
187
>pg_dump</SPAN
 
188
>
 
189
      comments (Robert Haas)
 
190
     </P
 
191
><P
 
192
>      <SPAN
 
193
CLASS="APPLICATION"
 
194
>pg_dump</SPAN
 
195
> was incautious about sanitizing object names
 
196
      that are emitted within SQL comments in its output script.  A name
 
197
      containing a newline would at least render the script syntactically
 
198
      incorrect.  Maliciously crafted object names could present a SQL
 
199
      injection risk when the script is reloaded.  (CVE-2012-0868)
 
200
     </P
 
201
></LI
 
202
><LI
 
203
><P
 
204
>      Fix btree index corruption from insertions concurrent with vacuuming
 
205
      (Tom Lane)
 
206
     </P
 
207
><P
 
208
>      An index page split caused by an insertion could sometimes cause a
 
209
      concurrently-running <TT
 
210
CLASS="COMMAND"
 
211
>VACUUM</TT
 
212
> to miss removing index entries
 
213
      that it should remove.  After the corresponding table rows are removed,
 
214
      the dangling index entries would cause errors (such as <SPAN
 
215
CLASS="QUOTE"
 
216
>"could not
 
217
      read block N in file ..."</SPAN
 
218
>) or worse, silently wrong query results
 
219
      after unrelated rows are re-inserted at the now-free table locations.
 
220
      This bug has been present since release 8.2, but occurs so infrequently
 
221
      that it was not diagnosed until now.  If you have reason to suspect
 
222
      that it has happened in your database, reindexing the affected index
 
223
      will fix things.
 
224
     </P
 
225
></LI
 
226
><LI
 
227
><P
 
228
>      Update per-column permissions, not only per-table permissions, when
 
229
      changing table owner (Tom Lane)
 
230
     </P
 
231
><P
 
232
>      Failure to do this meant that any previously granted column permissions
 
233
      were still shown as having been granted by the old owner.  This meant
 
234
      that neither the new owner nor a superuser could revoke the
 
235
      now-untraceable-to-table-owner permissions.
 
236
     </P
 
237
></LI
 
238
><LI
 
239
><P
 
240
>      Allow non-existent values for some settings in <TT
 
241
CLASS="COMMAND"
 
242
>ALTER
 
243
      USER/DATABASE SET</TT
 
244
> (Heikki Linnakangas)
 
245
     </P
 
246
><P
 
247
>      Allow <TT
 
248
CLASS="VARNAME"
 
249
>default_text_search_config</TT
 
250
>,
 
251
      <TT
 
252
CLASS="VARNAME"
 
253
>default_tablespace</TT
 
254
>, and <TT
 
255
CLASS="VARNAME"
 
256
>temp_tablespaces</TT
 
257
> to be
 
258
      set to names that are not known.  This is because they might be known
 
259
      in another database where the setting is intended to be used, or for the
 
260
      tablespace cases because the tablespace might not be created yet.  The
 
261
      same issue was previously recognized for <TT
 
262
CLASS="VARNAME"
 
263
>search_path</TT
 
264
>, and
 
265
      these settings now act like that one.
 
266
     </P
 
267
></LI
 
268
><LI
 
269
><P
 
270
>      Avoid crashing when we have problems deleting table files post-commit
 
271
      (Tom Lane)
 
272
     </P
 
273
><P
 
274
>      Dropping a table should lead to deleting the underlying disk files only
 
275
      after the transaction commits.  In event of failure then (for instance,
 
276
      because of wrong file permissions) the code is supposed to just emit a
 
277
      warning message and go on, since it's too late to abort the
 
278
      transaction.  This logic got broken as of release 8.4, causing such
 
279
      situations to result in a PANIC and an unrestartable database.
 
280
     </P
 
281
></LI
 
282
><LI
 
283
><P
 
284
>      Track the OID counter correctly during WAL replay, even when it wraps
 
285
      around (Tom Lane)
 
286
     </P
 
287
><P
 
288
>      Previously the OID counter would remain stuck at a high value until the
 
289
      system exited replay mode.  The practical consequences of that are
 
290
      usually nil, but there are scenarios wherein a standby server that's
 
291
      been promoted to master might take a long time to advance the OID
 
292
      counter to a reasonable value once values are needed.
 
293
     </P
 
294
></LI
 
295
><LI
 
296
><P
 
297
>      Fix regular expression back-references with <TT
 
298
CLASS="LITERAL"
 
299
>*</TT
 
300
> attached
 
301
      (Tom Lane)
 
302
     </P
 
303
><P
 
304
>      Rather than enforcing an exact string match, the code would effectively
 
305
      accept any string that satisfies the pattern sub-expression referenced
 
306
      by the back-reference symbol.
 
307
     </P
 
308
><P
 
309
>      A similar problem still afflicts back-references that are embedded in a
 
310
      larger quantified expression, rather than being the immediate subject
 
311
      of the quantifier.  This will be addressed in a future
 
312
      <SPAN
 
313
CLASS="PRODUCTNAME"
 
314
>PostgreSQL</SPAN
 
315
> release.
 
316
     </P
 
317
></LI
 
318
><LI
 
319
><P
 
320
>      Fix recently-introduced memory leak in processing of
 
321
      <TT
 
322
CLASS="TYPE"
 
323
>inet</TT
 
324
>/<TT
 
325
CLASS="TYPE"
 
326
>cidr</TT
 
327
> values (Heikki Linnakangas)
 
328
     </P
 
329
><P
 
330
>      A patch in the December 2011 releases of <SPAN
 
331
CLASS="PRODUCTNAME"
 
332
>PostgreSQL</SPAN
 
333
>
 
334
      caused memory leakage in these operations, which could be significant
 
335
      in scenarios such as building a btree index on such a column.
 
336
     </P
 
337
></LI
 
338
><LI
 
339
><P
 
340
>      Fix dangling pointer after <TT
 
341
CLASS="COMMAND"
 
342
>CREATE TABLE AS</TT
 
343
>/<TT
 
344
CLASS="COMMAND"
 
345
>SELECT
 
346
      INTO</TT
 
347
> in a SQL-language function (Tom Lane)
 
348
     </P
 
349
><P
 
350
>      In most cases this only led to an assertion failure in assert-enabled
 
351
      builds, but worse consequences seem possible.
 
352
     </P
 
353
></LI
 
354
><LI
 
355
><P
 
356
>      Avoid double close of file handle in syslogger on Windows (MauMau)
 
357
     </P
 
358
><P
 
359
>      Ordinarily this error was invisible, but it would cause an exception
 
360
      when running on a debug version of Windows.
 
361
     </P
 
362
></LI
 
363
><LI
 
364
><P
 
365
>      Fix I/O-conversion-related memory leaks in plpgsql
 
366
      (Andres Freund, Jan Urbanski, Tom Lane)
 
367
     </P
 
368
><P
 
369
>      Certain operations would leak memory until the end of the current
 
370
      function.
 
371
     </P
 
372
></LI
 
373
><LI
 
374
><P
 
375
>      Improve <SPAN
 
376
CLASS="APPLICATION"
 
377
>pg_dump</SPAN
 
378
>'s handling of inherited table columns
 
379
      (Tom Lane)
 
380
     </P
 
381
><P
 
382
>      <SPAN
 
383
CLASS="APPLICATION"
 
384
>pg_dump</SPAN
 
385
> mishandled situations where a child column has
 
386
      a different default expression than its parent column.  If the default
 
387
      is textually identical to the parent's default, but not actually the
 
388
      same (for instance, because of schema search path differences) it would
 
389
      not be recognized as different, so that after dump and restore the
 
390
      child would be allowed to inherit the parent's default.  Child columns
 
391
      that are <TT
 
392
CLASS="LITERAL"
 
393
>NOT NULL</TT
 
394
> where their parent is not could also be
 
395
      restored subtly incorrectly.
 
396
     </P
 
397
></LI
 
398
><LI
 
399
><P
 
400
>      Fix <SPAN
 
401
CLASS="APPLICATION"
 
402
>pg_restore</SPAN
 
403
>'s direct-to-database mode for
 
404
      INSERT-style table data (Tom Lane)
 
405
     </P
 
406
><P
 
407
>      Direct-to-database restores from archive files made with
 
408
      <TT
 
409
CLASS="OPTION"
 
410
>--inserts</TT
 
411
> or <TT
 
412
CLASS="OPTION"
 
413
>--column-inserts</TT
 
414
> options fail when
 
415
      using <SPAN
 
416
CLASS="APPLICATION"
 
417
>pg_restore</SPAN
 
418
> from a release dated September or
 
419
      December 2011, as a result of an oversight in a fix for another
 
420
      problem.  The archive file itself is not at fault, and text-mode
 
421
      output is okay.
 
422
     </P
 
423
></LI
 
424
><LI
 
425
><P
 
426
>      Allow <TT
 
427
CLASS="LITERAL"
 
428
>AT</TT
 
429
> option in <SPAN
 
430
CLASS="APPLICATION"
 
431
>ecpg</SPAN
 
432
>
 
433
      <TT
 
434
CLASS="LITERAL"
 
435
>DEALLOCATE</TT
 
436
> statements (Michael Meskes)
 
437
     </P
 
438
><P
 
439
>      The infrastructure to support this has been there for awhile, but
 
440
      through an oversight there was still an error check rejecting the case.
 
441
     </P
 
442
></LI
 
443
><LI
 
444
><P
 
445
>      Fix error in <TT
 
446
CLASS="FILENAME"
 
447
>contrib/intarray</TT
 
448
>'s <TT
 
449
CLASS="LITERAL"
 
450
>int[] &amp;
 
451
      int[]</TT
 
452
> operator (Guillaume Lelarge)
 
453
     </P
 
454
><P
 
455
>      If the smallest integer the two input arrays have in common is 1,
 
456
      and there are smaller values in either array, then 1 would be
 
457
      incorrectly omitted from the result.
 
458
     </P
 
459
></LI
 
460
><LI
 
461
><P
 
462
>      Fix error detection in <TT
 
463
CLASS="FILENAME"
 
464
>contrib/pgcrypto</TT
 
465
>'s
 
466
      <CODE
 
467
CLASS="FUNCTION"
 
468
>encrypt_iv()</CODE
 
469
> and <CODE
 
470
CLASS="FUNCTION"
 
471
>decrypt_iv()</CODE
 
472
>
 
473
      (Marko Kreen)
 
474
     </P
 
475
><P
 
476
>      These functions failed to report certain types of invalid-input errors,
 
477
      and would instead return random garbage values for incorrect input.
 
478
     </P
 
479
></LI
 
480
><LI
 
481
><P
 
482
>      Fix one-byte buffer overrun in <TT
 
483
CLASS="FILENAME"
 
484
>contrib/test_parser</TT
 
485
>
 
486
      (Paul Guyot)
 
487
     </P
 
488
><P
 
489
>      The code would try to read one more byte than it should, which would
 
490
      crash in corner cases.
 
491
      Since <TT
 
492
CLASS="FILENAME"
 
493
>contrib/test_parser</TT
 
494
> is only example code, this is
 
495
      not a security issue in itself, but bad example code is still bad.
 
496
     </P
 
497
></LI
 
498
><LI
 
499
><P
 
500
>      Use <CODE
 
501
CLASS="FUNCTION"
 
502
>__sync_lock_test_and_set()</CODE
 
503
> for spinlocks on ARM, if
 
504
      available (Martin Pitt)
 
505
     </P
 
506
><P
 
507
>      This function replaces our previous use of the <TT
 
508
CLASS="LITERAL"
 
509
>SWPB</TT
 
510
>
 
511
      instruction, which is deprecated and not available on ARMv6 and later.
 
512
      Reports suggest that the old code doesn't fail in an obvious way on
 
513
      recent ARM boards, but simply doesn't interlock concurrent accesses,
 
514
      leading to bizarre failures in multiprocess operation.
 
515
     </P
 
516
></LI
 
517
><LI
 
518
><P
 
519
>      Use <TT
 
520
CLASS="OPTION"
 
521
>-fexcess-precision=standard</TT
 
522
> option when building with
 
523
      gcc versions that accept it (Andrew Dunstan)
 
524
     </P
 
525
><P
 
526
>      This prevents assorted scenarios wherein recent versions of gcc will
 
527
      produce creative results.
 
528
     </P
 
529
></LI
 
530
><LI
 
531
><P
 
532
>      Allow use of threaded Python on FreeBSD (Chris Rees)
 
533
     </P
 
534
><P
 
535
>      Our configure script previously believed that this combination wouldn't
 
536
      work; but FreeBSD fixed the problem, so remove that error check.
 
537
     </P
 
538
></LI
 
539
></UL
 
540
></DIV
 
541
></DIV
 
542
><DIV
 
543
CLASS="NAVFOOTER"
 
544
><HR
 
545
ALIGN="LEFT"
 
546
WIDTH="100%"><TABLE
 
547
SUMMARY="Footer navigation table"
 
548
WIDTH="100%"
 
549
BORDER="0"
 
550
CELLPADDING="0"
 
551
CELLSPACING="0"
 
552
><TR
 
553
><TD
 
554
WIDTH="33%"
 
555
ALIGN="left"
 
556
VALIGN="top"
 
557
><A
 
558
HREF="release-9-0.html"
 
559
ACCESSKEY="P"
 
560
>Prev</A
 
561
></TD
 
562
><TD
 
563
WIDTH="34%"
 
564
ALIGN="center"
 
565
VALIGN="top"
 
566
><A
 
567
HREF="index.html"
 
568
ACCESSKEY="H"
 
569
>Home</A
 
570
></TD
 
571
><TD
 
572
WIDTH="33%"
 
573
ALIGN="right"
 
574
VALIGN="top"
 
575
><A
 
576
HREF="release-8-4-10.html"
 
577
ACCESSKEY="N"
 
578
>Next</A
 
579
></TD
 
580
></TR
 
581
><TR
 
582
><TD
 
583
WIDTH="33%"
 
584
ALIGN="left"
 
585
VALIGN="top"
 
586
>Release 9.0</TD
 
587
><TD
 
588
WIDTH="34%"
 
589
ALIGN="center"
 
590
VALIGN="top"
 
591
><A
 
592
HREF="release.html"
 
593
ACCESSKEY="U"
 
594
>Up</A
 
595
></TD
 
596
><TD
 
597
WIDTH="33%"
 
598
ALIGN="right"
 
599
VALIGN="top"
 
600
>Release 8.4.10</TD
 
601
></TR
 
602
></TABLE
 
603
></DIV
 
604
></BODY
 
605
></HTML
 
606
>
 
 
b'\\ No newline at end of file'