[ECPG] fix functions in dt_common to correctly detect integer overflow

From: Yang Xiao <YangX92(at)hotmail(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [ECPG] fix functions in dt_common to correctly detect integer overflow
Date: 2018-10-09 03:43:44
Message-ID: SG2PR01MB2169D954F318F3B4BB1269DFADE70@SG2PR01MB2169.apcprd01.prod.exchangelabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The attachment is the proposal patch for dt_common.c.

replace strtol to strtoint, as strtol() will return 64-bit output in
that case, while type of var, hr, tm_min
 is int.

Young

Attachment Content-Type Size
0001-ECPG-fix-functions-in-dt_common-to-correctly-detect-.patch text/plain 3.4 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-10-09 04:08:33 Re: pread() and pwrite()
Previous Message Yang Xiao 2018-10-09 03:40:38 Add overflow test in function numeric_exp.