The GitHub Actions job "Build and Run Tests by Maven" on rocketmq.git/fix/remoting-ipincidr-zero-prefix has succeeded. Run started by GitHub user zhzh12312312 (triggered by ShannonDing).
Head commit for run: f30dfde683cf2dbb3791beeabb92eff1bc07e32e / zhzh12312312 <[email protected]> fix(remoting): match every address for a /0 CIDR in ipInCIDR A /0 prefix (e.g. 0.0.0.0/0) is meant to match every IPv4 address, but RemotingHelper.ipInCIDR computed the mask as 0xFFFFFFFF << (32 - netId). Java reduces an int shift count modulo 32, so for netId == 0 the shift became << 0 and produced a mask of -1, causing 0.0.0.0/0 to match only 0.0.0.0. Handle /0 explicitly so the mask is 0, consistent with IPAddressUtils.isIPInRange. Add RemotingHelperTest covering /0, /32, /24, /8 and host-bit masking. Co-Authored-By: Claude Code <[email protected]> Report URL: https://github.com/apache/rocketmq/actions/runs/45126542078 With regards, GitHub Actions via GitBox
