I believe I may have found a way around inspecting the compiled code for this check. The GNU compiler has the following option:
-fwrapv This option instructs the compiler to assume that signed arithmetic overflow of addition, subtraction and multiplication wraps around using twos-complement representation. This flag enables some optimizations and disables others. This option is enabled by default for the Java front-end, as required by the Java language specification. I believe if this option is enabled for the nginx build, the correct optimizations will be disabled, and the overflow check will serve its intended purpose for all twos-complement arithmetic platforms (e.g. x86, and probably all other relevant architectures). wintermute...@yahoo.com