Integer overflow in ltree_compare function

Edit
ID 6884
Title Integer overflow in ltree_compare function
CI (CFBot) Summary
Stats (from CFBot) Patch count: 1, First patch: +49−4, All patches: +49−4
Tags Bugfix
Created 2026-06-15 06:45:31
Last modified 2026-06-15 06:45:31 (6 hours ago)
Latest email 2026-06-13 06:12:44 (2 days ago)
Status
PG20-1 (2026-07-01 – 2026-07-31): Needs review
Target version 14
Authors Ayush Tiwari (aytiwari)
Reviewers Become reviewer
Committer
Links
Emails
Fw:Re: Fw: ltree_compare in contrib/ltree/ltree_op.c overflows int32 on deep ltree comparisons, returning the wrong sign
First at 2026-06-13 03:50:25 by 王跃林 <violin0613 at tju.edu.cn>
Latest at 2026-06-13 06:12:44 by Ayush Tiwari <ayushtiwari.slg01 at gmail.com>
Latest attachment (0001-Fix-int32-overflow-in-ltree_compare.patch) at 2026-06-13 06:12:44 from Ayush Tiwari <ayushtiwari.slg01 at gmail.com>
    Attachment (0001-Fix-int32-overflow-in-ltree_compare.patch) at 2026-06-13 06:12:44 from Ayush Tiwari <ayushtiwari.slg01 at gmail.com> (Patch: Yes)
History
When Who What
2026-06-15 06:45:31 Ayush Tiwari (aytiwari) Attached mail thread AI6AnABgKW93Qbx1jVzi84r9.8.1781322625756.Hmail.3020001251@tju.edu.cn
2026-06-15 06:45:31 Ayush Tiwari (aytiwari) Created patch record
Edit