Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

jsonb.c

Blame
    • Tom Lane's avatar
      3587cbc3
      Fix NULL handling in datum_to_jsonb(). · 3587cbc3
      Tom Lane authored
      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
      3587cbc3
      History
      Fix NULL handling in datum_to_jsonb().
      Tom Lane authored
      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