(ec2-alpha): rangesOverlap utility function is wrong #32145
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
rangesOverlap uses string comparison to determine overlap, which I believe is incorrect.
The above example should return false, but it returns true. Double checked some online tool to confirm that the cidrs do not actually overlap (https://cidrclash.com/clash-results).
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
rangesOverlap implements proper cidr comparison
Current Behavior
Implementation is incorrect
Reproduction Steps
See description
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.167.0-alpha.0
Framework Version
No response
Node.js Version
22
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: