[COMMITTERS] pgsql: Fix assorted integer-overflow hazards in varbit.c.

2016-10-14 Thread Tom Lane
Fix assorted integer-overflow hazards in varbit.c. bitshiftright() and bitshiftleft() would recursively call each other infinitely if the user passed INT_MIN for the shift amount, due to integer overflow in negating the shift amount. To fix, clamp to -VARBITMAXLEN. That doesn't change the results

[COMMITTERS] pgsql: Fix assorted integer-overflow hazards in varbit.c.

2016-10-14 Thread Tom Lane
Fix assorted integer-overflow hazards in varbit.c. bitshiftright() and bitshiftleft() would recursively call each other infinitely if the user passed INT_MIN for the shift amount, due to integer overflow in negating the shift amount. To fix, clamp to -VARBITMAXLEN. That doesn't change the results

[COMMITTERS] pgsql: Fix assorted integer-overflow hazards in varbit.c.

2016-10-14 Thread Tom Lane
Fix assorted integer-overflow hazards in varbit.c. bitshiftright() and bitshiftleft() would recursively call each other infinitely if the user passed INT_MIN for the shift amount, due to integer overflow in negating the shift amount. To fix, clamp to -VARBITMAXLEN. That doesn't change the results

[COMMITTERS] pgsql: Fix assorted integer-overflow hazards in varbit.c.

2016-10-14 Thread Tom Lane
Fix assorted integer-overflow hazards in varbit.c. bitshiftright() and bitshiftleft() would recursively call each other infinitely if the user passed INT_MIN for the shift amount, due to integer overflow in negating the shift amount. To fix, clamp to -VARBITMAXLEN. That doesn't change the results

[COMMITTERS] pgsql: Fix assorted integer-overflow hazards in varbit.c.

2016-10-14 Thread Tom Lane
Fix assorted integer-overflow hazards in varbit.c. bitshiftright() and bitshiftleft() would recursively call each other infinitely if the user passed INT_MIN for the shift amount, due to integer overflow in negating the shift amount. To fix, clamp to -VARBITMAXLEN. That doesn't change the results

[COMMITTERS] pgsql: Fix assorted integer-overflow hazards in varbit.c.

2016-10-14 Thread Tom Lane
Fix assorted integer-overflow hazards in varbit.c. bitshiftright() and bitshiftleft() would recursively call each other infinitely if the user passed INT_MIN for the shift amount, due to integer overflow in negating the shift amount. To fix, clamp to -VARBITMAXLEN. That doesn't change the results

[COMMITTERS] pgsql: Fix assorted integer-overflow hazards in varbit.c.

2016-10-14 Thread Tom Lane
Fix assorted integer-overflow hazards in varbit.c. bitshiftright() and bitshiftleft() would recursively call each other infinitely if the user passed INT_MIN for the shift amount, due to integer overflow in negating the shift amount. To fix, clamp to -VARBITMAXLEN. That doesn't change the results