Skip to content

Avoid signed integer overflow in isc_resource_setlimit()

Tony Finch requested to merge 3549-isc-resource-ub into main

On systems with signed rlim_t the old code calculated its maximum value by shifting 1 into the sign bit, which is undefined behaviour. Avoid the bug by using an unsigned shift.

Closes #3549 (closed)

Merge request reports