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

« back to all changes in this revision

Viewing changes to contrib/pgcrypto/internal.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-07-24 16:13:59 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20140724161359-uk325qfv03euxuuh
Tags: 9.3.5-0ubuntu0.14.04.1
* New upstream bug fix release: (LP: #1348176)
  - pg_upgrade: Users who upgraded to version 9.3 using pg_upgrade may have
    an issue with transaction information which causes VACUUM to eventually
    fail. These users should run the script provided in the release notes to
    determine if their installation is affected, and then take the remedy
    steps outlined there.
  - Various data integrity and other bug fixes.
  - Secure Unix-domain sockets of temporary postmasters started during make
    check.
    Any local user able to access the socket file could connect as the
    server's bootstrap superuser, then proceed to execute arbitrary code as
    the operating-system user running the test, as we previously noted in
    CVE-2014-0067. This change defends against that risk by placing the
    server's socket in a temporary, mode 0700 subdirectory of /tmp.
  - See release notes for details:
    http://www.postgresql.org/about/news/1534/
* Remove pg_regress patches to support --host=/path, obsolete with above
  upstream changes and not applicable any more.
* Drop tcl8.6 patch, applied upstream.
* Add missing logrotate test dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18
18
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
19
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
 
 * ARE DISCLAIMED.      IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 
20
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21
21
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22
22
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23
23
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
142
142
{
143
143
        MD5_CTX    *ctx = (MD5_CTX *) h->p.ptr;
144
144
 
145
 
        memset(ctx, 0, sizeof(*ctx));
 
145
        px_memset(ctx, 0, sizeof(*ctx));
146
146
        px_free(ctx);
147
147
        px_free(h);
148
148
}
190
190
{
191
191
        SHA1_CTX   *ctx = (SHA1_CTX *) h->p.ptr;
192
192
 
193
 
        memset(ctx, 0, sizeof(*ctx));
 
193
        px_memset(ctx, 0, sizeof(*ctx));
194
194
        px_free(ctx);
195
195
        px_free(h);
196
196
}
265
265
 
266
266
        if (cx)
267
267
        {
268
 
                memset(cx, 0, sizeof *cx);
 
268
                px_memset(cx, 0, sizeof *cx);
269
269
                px_free(cx);
270
270
        }
271
271
        px_free(c);
658
658
                skip = buf[0] >= SYSTEM_RESEED_CHANCE;
659
659
        }
660
660
        /* clear 1 byte */
661
 
        memset(buf, 0, sizeof(buf));
 
661
        px_memset(buf, 0, sizeof(buf));
662
662
 
663
663
        if (skip)
664
664
                return;
668
668
                fortuna_add_entropy(buf, n);
669
669
 
670
670
        seed_time = t;
671
 
        memset(buf, 0, sizeof(buf));
 
671
        px_memset(buf, 0, sizeof(buf));
672
672
}
673
673
 
674
674
int