pg_stat_get_activity(): integer overflow due to (int) * (int) for MemoryContextAllocHuge()

Edit
Title pg_stat_get_activity(): integer overflow due to (int) * (int) for MemoryContextAllocHuge()
Topic Bug Fixes
Created 2023-09-27 06:44:48
Last modified 2023-10-03 07:33:08 (7 months ago)
Latest email 2023-10-03 07:08:49 (7 months ago)
Status
2023-11: Committed
Target version 17
Authors Jakub Wartak (jakub.wartak.tomtom)
Reviewers Become reviewer
Committer Michael Paquier (michael-kun)
Links
Emails
pg_stat_get_activity(): integer overflow due to (int) * (int) for MemoryContextAllocHuge()
First at 2023-09-27 06:41:55 by Jakub Wartak <jakub.wartak at enterprisedb.com>
Latest at 2023-10-03 07:08:49 by Michael Paquier <michael at paquier.xyz>
Latest attachment (v4-0001-Introduce-memory-limit-for-BackendActivityBuffer-.patch) at 2023-10-02 08:22:06 from Jakub Wartak <jakub.wartak at enterprisedb.com>
    Attachment (v4-0001-Introduce-memory-limit-for-BackendActivityBuffer-.patch) at 2023-10-02 08:22:06 from Jakub Wartak <jakub.wartak at enterprisedb.com> (Patch: Yes)
    Attachment (v3-0001-Introduce-memory-limit-for-BackendActivityBuffer-.patch) at 2023-09-28 09:01:14 from Jakub Wartak <jakub.wartak at enterprisedb.com> (Patch: Yes)
    Attachment (v2-0001-Cast-MemoryContextAllocHuge-calculations-in-pg_st.patch) at 2023-09-27 08:28:05 from Jakub Wartak <jakub.wartak at enterprisedb.com> (Patch: Yes)
    Attachment (0001-Adjust-pgstat_track_activity_query_size-to-be-of-siz.patch) at 2023-09-27 06:41:55 from Jakub Wartak <jakub.wartak at enterprisedb.com> (Patch: Yes)
History
When Who What
2023-10-03 07:33:08 Jakub Wartak (jakub.wartak.tomtom) Closed in commitfest 2023-11 with status: Committed
2023-10-03 07:33:08 Jakub Wartak (jakub.wartak.tomtom) Changed committer to michael-kun
2023-09-27 06:45:07 Jakub Wartak (jakub.wartak.tomtom) Changed authors to Jakub Wartak (jakub.wartak.tomtom)
2023-09-27 06:45:07 Jakub Wartak (jakub.wartak.tomtom) Changed targetversion to 17
2023-09-27 06:44:48 Jakub Wartak (jakub.wartak.tomtom) Attached mail thread CAKZiRmw8QSNVw2qNK-dznsatQqz+9DkCquxP0GHbbv1jMkGHMA@mail.gmail.com
2023-09-27 06:44:48 Jakub Wartak (jakub.wartak.tomtom) Created patch record
Edit