Skip to content

Conversation

@cheako
Copy link

@cheako cheako commented Oct 11, 2017

No description provided.

@cheako cheako force-pushed the firstpull branch 8 times, most recently from 5091937 to ec6ce61 Compare October 14, 2017 14:16
@zinovya
Copy link

zinovya commented May 28, 2019

Hi @cheako thanks for making these changes. One thing I noticed is that I'm getting a core dump when I targeting my localhost like this: "./htstress -n 1 -c 1 -t 1 localhost:80". The crash happens at line #454 I think the reason for that is the way how you parse hostname/port.

@cheako
Copy link
Author

cheako commented Jun 7, 2019

You shouldn't get to 454 without any '/'.
https://github.com/cheako/htstress/blob/cf39f496df8a99a92fd296a507a45dd75bdd6882/htstress.c#L453

454 copies the text from ':' to '/' exclusively. This could be a name like "http" or a number in string form like "80". The important part is the inclusion of a null terminator that strndup() adds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants