Skip site navigation (1) Skip section navigation (2)

pgsql: Fix core dump due to null-pointer dereference in to_char() when

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix core dump due to null-pointer dereference in to_char() when
Date: 2009-03-12 00:53:32
Message-ID: 20090312005332.CF5F9754AD4@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix core dump due to null-pointer dereference in to_char() when datetime
format codes are misapplied to a numeric argument.  (The code still produces
a pretty bogus error message in such cases, but I'll settle for stopping the
crash for now.)  Per bug #4700 from Sergey Burladyan.

Problem exists in all supported branches, so patch all the way back.
In HEAD, also clean up some ugly coding in the nearby cache management
code.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        formatting.c (r1.137 -> r1.137.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/formatting.c?r1=1.137&r2=1.137.2.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2009-03-12 00:53:41
Subject: pgsql: Fix core dump due to null-pointer dereference in to_char() when
Previous:From: Tom LaneDate: 2009-03-12 00:53:25
Subject: pgsql: Fix core dump due to null-pointer dereference in to_char() when

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group