Aidan McGurn created TS-1298:
--------------------------------

             Summary: http_parser_parse_req appears inconsistent
                 Key: TS-1298
                 URL: https://issues.apache.org/jira/browse/TS-1298
             Project: Traffic Server
          Issue Type: Bug
    Affects Versions: 3.0.2
            Reporter: Aidan McGurn


when using IPT setup i test as follows:

1. telnet <OS IP> 80 from client machine   //this will be routed via ATS as IPT 
env
2. write "test" in telnet window and hit return
3. i *correctly* get a PARSE ERROR inside HTTP.cc/http_parser_parse_req

1051        if (!method_start || !method_end)
(gdb)
1052          return PARSE_ERROR;
(gdb) p method_end
$4 = 0x0
(gdb) p method_start
$5 = 0x12741000 "test\r\n"


However of i repeat step 2, with "test 2" method_end gets set and i end up with 
a PARSE_DONE and it thinks *INCORRECTLY* therefore this is a HTTP request.


Assume this is a bug and we are missing validation here or is this making 
assumption the request is correct HTTP header format?

thanks for any assistance,
/aidan





--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to