The GitHub Actions job "CodeQL Analysis" on 
rocketmq.git/fix/ip-in-cidr-zero-prefix has failed.
Run started by GitHub user zjncs (triggered by zjncs).

Head commit for run:
8fa21fa178a1244ba588248da77906e9996effce / zjncs <[email protected]>
fix(remoting): match every address for a /0 CIDR in ipInCIDR

For netId == 0 the mask computation 0xFFFFFFFF << 32 is a no-op in Java
(shift distance is taken mod 32), so the mask stayed 0xFFFFFFFF instead
of 0 and a /0 CIDR matched nothing but its own address.
NettyRemotingClient.getProxy only special-cases the exact string
0.0.0.0/0, so a proxy configured with any other /0 CIDR silently never
matched and the traffic bypassed the proxy.

Signed-off-by: zjncs <[email protected]>

Report URL: https://github.com/apache/rocketmq/actions/runs/34187060962

With regards,
GitHub Actions via GitBox

Reply via email to