curl-fuzzer C++ reference
Loading...
Searching...
No Matches
telnet_scenario.h File Reference

Shared TELNET response normalization. More...

Go to the source code of this file.

Functions

void proto_fuzzer::BoundTelnetResponse (curl::fuzzer::proto::Connection *connection)
 Retain the response prefix that TelnetMockServer can preload safely.

Detailed Description

Shared TELNET response normalization.

Definition in file telnet_scenario.h.

Function Documentation

◆ BoundTelnetResponse()

void proto_fuzzer::BoundTelnetResponse ( curl::fuzzer::proto::Connection * connection)

Retain the response prefix that TelnetMockServer can preload safely.

TELNET runs synchronously inside curl_multi_perform(), so the harness cannot deliver later fragments or drain an arbitrary number of replies between parser transitions. This function applies both the byte budget and the stricter IAC budget shared by the LPM postprocessor and runtime. Once a fragment is truncated, every later fragment is removed because it can no longer affect curl.

Parameters
connectionResponse script to normalize in place.

Definition at line 62 of file telnet_scenario.cc.