~ubuntu-branches/ubuntu/utopic/postgresql-9.1/utopic

« back to all changes in this revision

Viewing changes to src/backend/commands/copy.c

  • Committer: Package Import Robot
  • Author(s): Christoph Berg, Martin Pitt, Christoph Berg
  • Date: 2013-02-05 14:15:33 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130205141533-vkoy7oaxb0wehjv6
[ Martin Pitt ]
* Add autopkgtest, moved from postgresql-common.
* debian/rules: Only build the error codes and the plpython subtree for the
  "python3" flavor, to cut down build time.
* Add missing docbook build dependency. (Closes: #697618)

[ Christoph Berg ]
* New upstream version.
  + Prevent execution of enum_recv from SQL
    The function was misdeclared, allowing a simple SQL command to crash the
    server.  In principle an attacker might be able to use it to examine the
    contents of server memory.  Our thanks to Sumit Soni (via Secunia SVCRP)
    for reporting this issue. (CVE-2013-0255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
790
790
        if (is_from)
791
791
        {
792
792
                /* check read-only transaction */
793
 
                if (XactReadOnly && rel->rd_backend != MyBackendId)
 
793
                if (XactReadOnly && !rel->rd_islocaltemp)
794
794
                        PreventCommandIfReadOnly("COPY FROM");
795
795
 
796
796
                cstate = BeginCopyFrom(rel, stmt->filename,