pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Robustify tuplesort's free_sort_tuple function
7+ messages / 1 participants
[nested] [flat]

* pgsql: Robustify tuplesort's free_sort_tuple function
@ 2021-07-13 01:27  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: David Rowley @ 2021-07-13 01:27 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Robustify tuplesort's free_sort_tuple function

41469253e went to the trouble of removing a theoretical bug from
free_sort_tuple by checking if the tuple was NULL before freeing it. Let's
make this a little more robust by also setting the tuple to NULL so that
should we be called again we won't end up doing a pfree on the already
pfree'd tuple. Per advice from Tom Lane.

Discussion: https://postgr.es/m/3188192.1626136953@sss.pgh.pa.us
Backpatch-through: 9.6, same as 41469253e

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5bd38d2f2846c7e387d04a16c4372da0de7b1221

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Robustify tuplesort's free_sort_tuple function
@ 2021-07-13 01:28  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: David Rowley @ 2021-07-13 01:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Robustify tuplesort's free_sort_tuple function

41469253e went to the trouble of removing a theoretical bug from
free_sort_tuple by checking if the tuple was NULL before freeing it. Let's
make this a little more robust by also setting the tuple to NULL so that
should we be called again we won't end up doing a pfree on the already
pfree'd tuple. Per advice from Tom Lane.

Discussion: https://postgr.es/m/3188192.1626136953@sss.pgh.pa.us
Backpatch-through: 9.6, same as 41469253e

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a92709fed63428a711f36270a2b4bee039399d60

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Robustify tuplesort's free_sort_tuple function
@ 2021-07-13 01:28  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: David Rowley @ 2021-07-13 01:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Robustify tuplesort's free_sort_tuple function

41469253e went to the trouble of removing a theoretical bug from
free_sort_tuple by checking if the tuple was NULL before freeing it. Let's
make this a little more robust by also setting the tuple to NULL so that
should we be called again we won't end up doing a pfree on the already
pfree'd tuple. Per advice from Tom Lane.

Discussion: https://postgr.es/m/3188192.1626136953@sss.pgh.pa.us
Backpatch-through: 9.6, same as 41469253e

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2fde8e49a24706773d0573d3b8888a76353094fc

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Robustify tuplesort's free_sort_tuple function
@ 2021-07-13 01:30  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: David Rowley @ 2021-07-13 01:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Robustify tuplesort's free_sort_tuple function

41469253e went to the trouble of removing a theoretical bug from
free_sort_tuple by checking if the tuple was NULL before freeing it. Let's
make this a little more robust by also setting the tuple to NULL so that
should we be called again we won't end up doing a pfree on the already
pfree'd tuple. Per advice from Tom Lane.

Discussion: https://postgr.es/m/3188192.1626136953@sss.pgh.pa.us
Backpatch-through: 9.6, same as 41469253e

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/645c5d11939641ce4ad14f7e547e9c5ec2b98f71

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Robustify tuplesort's free_sort_tuple function
@ 2021-07-13 01:31  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: David Rowley @ 2021-07-13 01:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Robustify tuplesort's free_sort_tuple function

41469253e went to the trouble of removing a theoretical bug from
free_sort_tuple by checking if the tuple was NULL before freeing it. Let's
make this a little more robust by also setting the tuple to NULL so that
should we be called again we won't end up doing a pfree on the already
pfree'd tuple. Per advice from Tom Lane.

Discussion: https://postgr.es/m/3188192.1626136953@sss.pgh.pa.us
Backpatch-through: 9.6, same as 41469253e

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/eff751ea5fe173b8016ae7b6e1ab15190c2267be

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Robustify tuplesort's free_sort_tuple function
@ 2021-07-13 01:31  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: David Rowley @ 2021-07-13 01:31 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Robustify tuplesort's free_sort_tuple function

41469253e went to the trouble of removing a theoretical bug from
free_sort_tuple by checking if the tuple was NULL before freeing it. Let's
make this a little more robust by also setting the tuple to NULL so that
should we be called again we won't end up doing a pfree on the already
pfree'd tuple. Per advice from Tom Lane.

Discussion: https://postgr.es/m/3188192.1626136953@sss.pgh.pa.us
Backpatch-through: 9.6, same as 41469253e

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d7f10f39ca2d84220a96dba473371c6de0cc41d7

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Robustify tuplesort's free_sort_tuple function
@ 2021-07-13 01:32  David Rowley <drowley@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: David Rowley @ 2021-07-13 01:32 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Robustify tuplesort's free_sort_tuple function

41469253e went to the trouble of removing a theoretical bug from
free_sort_tuple by checking if the tuple was NULL before freeing it. Let's
make this a little more robust by also setting the tuple to NULL so that
should we be called again we won't end up doing a pfree on the already
pfree'd tuple. Per advice from Tom Lane.

Discussion: https://postgr.es/m/3188192.1626136953@sss.pgh.pa.us
Backpatch-through: 9.6, same as 41469253e

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d0e44bae4923cebe08fd03f8ac6cb42757eec480

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 1 +
1 file changed, 1 insertion(+)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2021-07-13 01:32 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-13 01:27 pgsql: Robustify tuplesort's free_sort_tuple function David Rowley <drowley@postgresql.org>
2021-07-13 01:28 pgsql: Robustify tuplesort's free_sort_tuple function David Rowley <drowley@postgresql.org>
2021-07-13 01:28 pgsql: Robustify tuplesort's free_sort_tuple function David Rowley <drowley@postgresql.org>
2021-07-13 01:30 pgsql: Robustify tuplesort's free_sort_tuple function David Rowley <drowley@postgresql.org>
2021-07-13 01:31 pgsql: Robustify tuplesort's free_sort_tuple function David Rowley <drowley@postgresql.org>
2021-07-13 01:31 pgsql: Robustify tuplesort's free_sort_tuple function David Rowley <drowley@postgresql.org>
2021-07-13 01:32 pgsql: Robustify tuplesort's free_sort_tuple function David Rowley <drowley@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox