BUG #18853: integer may overflow in array_user_functions

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: ma100(at)hotmail(dot)com
Subject: BUG #18853: integer may overflow in array_user_functions
Date: 2025-03-18 08:02:46
Message-ID: 18853-46697b88110224a7@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18853
Logged by: ma liangzhu
Email address: ma100(at)hotmail(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2025-03-18 11:34:05 BUG #18854: PostgreSQL chooses a suboptimal execution plan when using a specific WHERE filter
Previous Message Amit Langote 2025-03-18 07:52:38 Re: BUG #18830: ExecInitMerge Segfault on MERGE