Re: BUG #17167: UndefinedBehaviorSanitizer: invalid-shift-exponent while running int4shr/int4shl

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: ssubhrajyoti(at)google(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, PG Bug reporting form <noreply(at)postgresql(dot)org>
Subject: Re: BUG #17167: UndefinedBehaviorSanitizer: invalid-shift-exponent while running int4shr/int4shl
Date: 2021-08-30 12:00:51
Message-ID: b42392ff-e738-2cbb-d6b8-e3a6ab0a7b85@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello Subhrajyoti,

30.08.2021 12:02, PG Bug reporting form wrote:
> Bug reference: 17167
>
> When executing in an asan instrumented build,
> ```
> postgres=> SELECT int4shr(10, -1);
> ```
> throws an error `runtime error: shift exponent 32 is too large for 32-bit
> type 'int32' (aka 'int')`
This seems like a duplicate of #16790:
https://www.postgresql.org/message-id/flat/16790-c2a81c92a8776c5b%40postgresql.org

Best regards,
Alexander

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Aliaxei Voitsik 2021-08-30 12:05:58 Unexpected performance degradation when calling jsonb_path_query() function in PostgreSQL 13.x and 14 beta
Previous Message PG Bug reporting form 2021-08-30 09:02:36 BUG #17167: UndefinedBehaviorSanitizer: invalid-shift-exponent while running int4shr/int4shl