Re: [PATCH] intXshr, intXshl: return error on shift count out of range
From:
Pavel Borisov <pashkin(dot)elfe(at)gmail(dot)com>
To:
David Rowley <dgrowleyml(at)gmail(dot)com>
Cc:
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alexander Lakhin <exclusion(at)gmail(dot)com>, Egor Ivkov <e(dot)ivkov(at)arenadata(dot)io>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Ilya Khaprov <i(dot)khaprov(at)arenadata(dot)io>
Subject:
Re: [PATCH] intXshr, intXshl: return error on shift count out of range
While I think that OP's patch is close to being correct, I also agree with Tom and Alexander that the scope of this UB is outside of Postgres code. So I fully agree with the final approach. Thanks to everyone in this thread!