BUG #18853: integer may overflow in array_user_functions - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18853: integer may overflow in array_user_functions
Date
Msg-id 18853-46697b88110224a7@postgresql.org
Whole thread Raw
Responses Re: BUG #18853: integer may overflow in array_user_functions
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18853
Logged by:          ma liangzhu
Email address:      ma100@hotmail.com
PostgreSQL version: 17.0
Operating system:   centos
Description:

I noticed that in the array_userfunc.c file, there are many calculations
involving int32 without overflow checks. 

For example: 

int reqsize = state1->nbytes + state2->nbytes; 

This could potentially cause overflow, leading to issues.


pgsql-bugs by date:

Previous
From: Amit Langote
Date:
Subject: Re: BUG #18830: ExecInitMerge Segfault on MERGE
Next
From: PG Bug reporting form
Date:
Subject: BUG #18854: PostgreSQL chooses a suboptimal execution plan when using a specific WHERE filter