- Notifications
You must be signed in to change notification settings - Fork5
Commit3587cbc
committed
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. Thisresulted 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 ratherungrammatical comment.Diagnosis and patch by Michael Paquier, cosmetic changes by me1 parent08fbad0 commit3587cbc
3 files changed
+28
-12
lines changedLines changed: 15 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| |||
714 | 714 |
| |
715 | 715 |
| |
716 | 716 |
| |
| 717 | + | |
717 | 718 |
| |
718 | 719 |
| |
719 | 720 |
| |
| |||
936 | 937 |
| |
937 | 938 |
| |
938 | 939 |
| |
939 |
| - | |
940 |
| - | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
941 | 944 |
| |
942 | 945 |
| |
943 | 946 |
| |
| |||
1607 | 1610 |
| |
1608 | 1611 |
| |
1609 | 1612 |
| |
1610 |
| - | |
1611 |
| - | |
| 1613 | + | |
1612 | 1614 |
| |
1613 | 1615 |
| |
1614 | 1616 |
| |
| |||
1762 | 1764 |
| |
1763 | 1765 |
| |
1764 | 1766 |
| |
1765 |
| - | |
| 1767 | + | |
1766 | 1768 |
| |
1767 | 1769 |
| |
1768 | 1770 |
| |
| |||
1950 | 1952 |
| |
1951 | 1953 |
| |
1952 | 1954 |
| |
1953 |
| - | |
1954 |
| - | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
1955 | 1958 |
| |
1956 | 1959 |
| |
1957 | 1960 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1362 | 1362 |
| |
1363 | 1363 |
| |
1364 | 1364 |
| |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1365 | 1374 |
| |
1366 | 1375 |
| |
1367 | 1376 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
333 | 337 |
| |
334 | 338 |
| |
335 | 339 |
| |
|
0 commit comments
Comments
(0)