Skip to content

http-grep.nse bug fix (http-grep.nse is not working properly. line 159 and 160. there is a bug if doubled is greater than 9) - #1932

Closed
zheli-1 wants to merge 13 commits into
nmap:masterfrom
zheli-1:http-grep-bug
Closed

zheli-1 wants to merge 13 commits into
nmap:masterfrom
zheli-1:http-grep-bug

Conversation

@zheli-1

@zheli-1 zheli-1 commented Feb 22, 2020

Copy link
Copy Markdown

fix solution for the bug I reported earlier

@zheli-1 zheli-1 changed the title Http grep bug http-grep.nse bug fix (http-grep.nse is not working properly. line 159 and 160. there is a bug if doubled is greater than 9) Feb 22, 2020
@nnposter

nnposter commented Mar 1, 2020

Copy link
Copy Markdown

This is a very good find. Thank you for reporting it.

The bug is a side effect of moving from Lua 5,2 to 5.3. Your PR would indeed rectify the bug but the original code was unnecessarily complex in the first place so the entire function was refactored instead. The code has been commited as r37912 and you are still being credited in the changelog.

@nnposter nnposter self-assigned this Mar 1, 2020
@nmap-bot nmap-bot closed this in 44d7dbc Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants