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

« back to all changes in this revision

Viewing changes to src/bin/psql/input.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2015-10-08 15:42:16 UTC
  • mfrom: (1.2.3) (18.1.3 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20151008154216-zvhdaqznz9qf4rw2
Tags: 9.3.10-0ubuntu0.14.04
* New upstream security/bug fix release: (LP: #1504132)
  - Guard against stack overflows in json parsing.
    If an application constructs PostgreSQL json or jsonb values from
    arbitrary user input, the application's users can reliably crash the
    PostgreSQL server, causing momentary denial of service.  (CVE-2015-5289)

  - Fix contrib/pgcrypto to detect and report too-short crypt() salts
    Certain invalid salt arguments crashed the server or disclosed a few
    bytes of server memory.  We have not ruled out the viability of attacks
    that arrange for presence of confidential information in the disclosed
    bytes, but they seem unlikely.  (CVE-2015-5288)

  - See release notes for details about other fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
382
382
 *
383
383
 * max_lines: if >= 0, limit history file to that many entries.
384
384
 */
 
385
#ifdef USE_READLINE
385
386
static bool
386
387
saveHistory(char *fname, int max_lines)
387
388
{
388
 
#ifdef USE_READLINE
389
389
        int                     errnum;
390
390
 
391
391
        /*
450
450
                psql_error("could not save history to file \"%s\": %s\n",
451
451
                                   fname, strerror(errnum));
452
452
        }
453
 
#endif
454
 
 
455
453
        return false;
456
454
}
 
455
#endif
 
456
 
457
457
 
458
458
 
459
459
/*