From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix NULL handling in datum_to_jsonb(). |
Date: | 2015-10-15 17:46:17 |
Message-ID: | E1ZmmbZ-0006MZ-9I@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix NULL handling in datum_to_jsonb().
The function failed to adhere to its specification that the "tcategory"
argument should not be examined when the input value is NULL. This
resulted in a crash in some cases. Per bug #13680 from Boyko Yordanov.
In passing, re-pgindent some recent changes in jsonb.c, and fix a rather
ungrammatical comment.
Diagnosis and patch by Michael Paquier, cosmetic changes by me
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/3587cbc34fe87e1bde6c202daba791b68e44cb3a
Modified Files
--------------
src/backend/utils/adt/jsonb.c | 27 +++++++++++++++------------
src/test/regress/expected/jsonb.out | 9 +++++++++
src/test/regress/sql/jsonb.sql | 4 ++++
3 files changed, 28 insertions(+), 12 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-10-15 17:51:44 | Re: Re: [COMMITTERS] pgsql: Have dtrace depend on object files directly, not objfiles.txt |
Previous Message | Robert Haas | 2015-10-15 17:39:22 | Re: [COMMITTERS] pgsql: Have dtrace depend on object files directly, not objfiles.txt |