From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: niranjann@google.com
Subject: BUG #16861: Undefined behavior in power_var_int under the address sanitizer when exponent is INT_MIN
Date: Thu, 11 Feb 2021 22:59:47 +0000
Message-ID: <16861-99957d36bb049ed7@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16861
Logged by: Niranjan Nilakantan
Email address: niranjann@google.com
PostgreSQL version: 13.2
Operating system: Linux
Description:
The newly added test from
https://github.com/postgres/postgres/commit/bc43b7c2c06c32264efe79d0b86abd41236f1d5b
triggers an overflow/undefined behavior at this line
https://github.com/postgres/postgres/blob/master/src/backend/utils/adt/numeric.c#L10299
Target contains warnings: UndefinedBehaviorSanitizer:
signed-integer-overflow .../src/backend/utils/adt/numeric.c:10299
This applies to all versions of Postgres.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, niranjann@google.com
Subject: Re: BUG #16861: Undefined behavior in power_var_int under the address sanitizer when exponent is INT_MIN
In-Reply-To: <16861-99957d36bb049ed7@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox