Re: BUG #17167: UndefinedBehaviorSanitizer: invalid-shift-exponent while running int4shr/int4shl - Mailing list pgsql-bugs

From Alexander Lakhin
Subject Re: BUG #17167: UndefinedBehaviorSanitizer: invalid-shift-exponent while running int4shr/int4shl
Date
Msg-id b42392ff-e738-2cbb-d6b8-e3a6ab0a7b85@gmail.com
Whole thread Raw
In response to BUG #17167: UndefinedBehaviorSanitizer: invalid-shift-exponent while running int4shr/int4shl  (PG Bug reporting form <noreply@postgresql.org>)
List 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



pgsql-bugs by date:

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