Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential bug in ip alteration #136

Closed
Mzack9999 opened this issue May 20, 2024 · 0 comments · Fixed by #137
Closed

Potential bug in ip alteration #136

Mzack9999 opened this issue May 20, 2024 · 0 comments · Fixed by #137
Assignees
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Mzack9999
Copy link
Member

Describe the bug
From projectdiscovery/dsl:

ip_format('127.0.0.1', '5')`: "281472812449793",

Full output:

--- FAIL: TestDslExpressions (0.00s)
    --- FAIL: TestDslExpressions/ip_format('127.0.0.1',_'5') (0.00s)
        c:\Users\marco\go\src\github.com\projectdiscovery\dsl\dsl_test.go:525: 
            	Error Trace:	c:/Users/user/go/src/github.com/projectdiscovery/dsl/dsl_test.go:525
            	Error:      	Not equal: 
            	            	expected: "281472812449793"
            	            	actual  : "2130706433"
            	            	
            	            	Diff:
            	            	--- Expected
            	            	+++ Actual
            	            	@@ -1 +1 @@
            	            	-281472812449793
            	            	+2130706433
            	Test:       	TestDslExpressions/ip_format('127.0.0.1',_'5')
FAIL
FAIL	github.com/projectdiscovery/dsl	0.020s
FAIL

Mapcidr version
latest

Ref: https://github.com/projectdiscovery/dsl/actions/runs/9157355871?pr=126

@Mzack9999 Mzack9999 added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label May 20, 2024
@dogancanbakir dogancanbakir self-assigned this May 20, 2024
@dogancanbakir dogancanbakir transferred this issue from projectdiscovery/mapcidr May 22, 2024
@dogancanbakir dogancanbakir mentioned this issue May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants