curl / curl-fuzzer

Quality assurance testing for the curl project
MIT License
82 stars 29 forks source link

websockets: build a dedicated websocket fuzzer #57

Closed bagder closed 1 year ago

cmeister2 commented 1 year ago

Looks fine but does this actually work? https://curl.se/docs/websockets.html seems to use curlws* functions to interact with curl. Will a standard curl_easy_perform() do something useful if given a websockets URI?

bagder commented 1 year ago

Define "work" ! :grin: Yes, a websocket "download" will deliver data to the write callback using the normal mechanism, but only after a successful upgrade which the fuzzer is very unlikely to produce on itself without hand holding. But I imagine it could start out getting tested to fail nicely until we improve it further.

cmeister2 commented 1 year ago

Ok, sounds good to me - happy to merge for now!