~ubuntu-branches/ubuntu/trusty/postgresql-9.3/trusty-security

« back to all changes in this revision

Viewing changes to src/include/storage/smgr.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, CVE-2014-8161
  • Date: 2015-02-06 12:47:00 UTC
  • mfrom: (1.2.1) (18.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20150206124700-2br6bkfzuayfy8j8
Tags: 9.3.6-0ubuntu0.14.04
* New upstream security/bug fix release (LP: #1418928)
  - Fix buffer overruns in to_char() [CVE-2015-0241]
  - Fix buffer overruns in contrib/pgcrypto [CVE-2015-0243]
  - Fix possible loss of frontend/backend protocol synchronization after an
    error [CVE-2015-0244]
  - Fix information leak via constraint-violation error messages
    [CVE-2014-8161]
  - See release notes for details about other fixes:
    http://www.postgresql.org/about/news/1569/

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 *
30
30
 * An SMgrRelation may have an "owner", which is just a pointer to it from
31
31
 * somewhere else; smgr.c will clear this pointer if the SMgrRelation is
32
 
 * closed.      We use this to avoid dangling pointers from relcache to smgr
 
32
 * closed.  We use this to avoid dangling pointers from relcache to smgr
33
33
 * without having to make the smgr explicitly aware of relcache.  There
34
34
 * can't be more than one "owner" pointer per SMgrRelation, but that's
35
35
 * all we need.
48
48
        /*
49
49
         * These next three fields are not actually used or manipulated by smgr,
50
50
         * except that they are reset to InvalidBlockNumber upon a cache flush
51
 
         * event (in particular, upon truncation of the relation).      Higher levels
 
51
         * event (in particular, upon truncation of the relation).  Higher levels
52
52
         * store cached state here so that it will be reset when truncation
53
53
         * happens.  In all three cases, InvalidBlockNumber means "unknown".
54
54
         */
60
60
 
61
61
        /*
62
62
         * Fields below here are intended to be private to smgr.c and its
63
 
         * submodules.  Do not touch them from elsewhere.
 
63
         * submodules.  Do not touch them from elsewhere.
64
64
         */
65
65
        int                     smgr_which;             /* storage manager selector */
66
66