Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(gdb) p *imap
$6 = {
transfer = FTPTRANSFER_BODY,
mailbox = 0x0,
uidvalidity = 0x0,
uid = 0x0,
section = 0x0,
partial = 0x0,
query = 0x0,
custom = 0x0,
custom_params = 0x0
}
(gdb) p *data
$7 = {
next = 0x0,
prev = 0x0,
easy_conn = 0x61c000000088,
connect_queue = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
pipeline_queue = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
mstate = CURLM_STATE_WAITRESOLVE,
result = CURLE_OK,
msg = {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
extmsg = {
msg = CURLMSG_NONE,
easy_handle = 0x0,
data = {
whatever = 0x0,
result = CURLE_OK
}
}
},
sockets = {0, 0, 0, 0, 0},
numsocks = 0,
dns = {
hostcache = 0x0,
hostcachetype = HCACHE_NONE
},
multi = 0x615000001208,
multi_easy = 0x0,
share = 0x0,
req = {
size = 0,
bytecountp = 0x0,
maxdownload = -1,
writebytecountp = 0x0,
bytecount = 0,
writebytecount = 0,
headerbytecount = 0,
deductheadercount = 0,
start = {
tv_sec = 96792,
tv_usec = 214840
},
now = {
tv_sec = 96792,
tv_usec = 214840
},
header = true,
badheader = HEADER_NORMAL,
headerline = 0,
hbufp = 0x612000000048 '\276' <repeats 200 times>...,
hbuflen = 0,
str = 0x0,
str_start = 0x0,
end_ptr = 0x0,
p = 0x0,
content_range = false,
offset = 0,
httpcode = 0,
start100 = {
tv_sec = 0,
tv_usec = 0
},
exp100 = EXP100_SEND_DATA,
upgr101 = UPGR101_INIT,
auto_decoding = 0,
zlib_init = ZLIB_UNINIT,
z = {
next_in = 0x0,
avail_in = 0,
total_in = 0,
next_out = 0x0,
avail_out = 0,
total_out = 0,
msg = 0x0,
state = 0x0,
zalloc = 0x0,
zfree = 0x0,
opaque = 0x0,
data_type = 0,
adler = 0,
reserved = 0
},
timeofdoc = 0,
bodywrites = 0,
buf = 0x629000000208 '\276' <repeats 200 times>...,
maxfd = 0,
keepon = 0,
upload_done = false,
ignorebody = false,
ignorecl = false,
location = 0x0,
newurl = 0x0,
upload_present = 0,
upload_fromhere = 0x0,
chunk = false,
upload_chunky = false,
getheader = false,
forbidchunk = false,
protop = 0x608000000028
},
set = {
err = 0x7ffff6cee540 <_IO_2_1_stderr_>,
debugdata = 0x0,
errorbuffer = 0x0,
proxyport = 0,
out = 0x7fffffffe080,
in_set = 0x7fffffffe080,
writeheader = 0x0,
rtp_out = 0x0,
use_port = 0,
httpauth = 1,
proxyauth = 1,
socks5auth = 5,
followlocation = 0,
maxredirs = -1,
keep_post = 0,
free_referer = false,
postfields = 0x0,
seek_func = 0x0,
postfieldsize = -1,
localport = 0,
localportrange = 0,
fwrite_func = 0x5153a0 <fuzz_write_callback(void*, unsigned long, unsigned long, void*)>,
fwrite_header = 0x0,
fwrite_rtp = 0x0,
fread_func_set = 0x5151c0 <fuzz_read_callback(char*, unsigned long, unsigned long, void*)>,
is_fread_set = 1,
is_fwrite_set = 1,
fprogress = 0x0,
fxferinfo = 0x0,
fdebug = 0x0,
ioctl_func = 0x0,
fsockopt = 0x5151a0 <fuzz_sockopt_callback(void*, int, curlsocktype)>,
sockopt_client = 0x0,
fopensocket = 0x514ac0 <fuzz_open_socket(void*, curlsocktype, curl_sockaddr*)>,
opensocket_client = 0x7fffffffe080,
fclosesocket = 0x0,
closesocket_client = 0x0,
seek_client = 0x0,
convfromnetwork = 0x0,
convtonetwork = 0x0,
convfromutf8 = 0x0,
progress_client = 0x0,
ioctl_client = 0x0,
timeout = 200,
connecttimeout = 0,
accepttimeout = 0,
server_response_timeout = 0,
tftp_blksize = 0,
tftp_no_options = false,
filesize = -1,
low_speed_limit = 0,
low_speed_time = 0,
max_send_speed = 0,
max_recv_speed = 0,
set_resume_from = 0,
headers = 0x0,
proxyheaders = 0x0,
httppost = 0x0,
mimepost = {
easy = 0x62a000000208,
parent = 0x0,
nextpart = 0x0,
kind = MIMEKIND_MULTIPART,
data = 0x0,
readfunc = 0x5521a0 <mime_subparts_read>,
seekfunc = 0x552660 <mime_subparts_seek>,
freefunc = 0x0,
arg = 0x607000000098,
fp = 0x0,
curlheaders = 0x0,
userheaders = 0x0,
mimetype = 0x0,
filename = 0x0,
name = 0x0,
datasize = -1,
flags = 0,
state = {
state = MIMESTATE_BEGIN,
ptr = 0x0,
offset = 0
},
encoder = 0x0,
encstate = {
pos = 0,
bufbeg = 0,
bufend = 0,
buf = '\000' <repeats 255 times>
}
},
sep_headers = true,
cookiesession = false,
crlf = false,
quote = 0x0,
postquote = 0x0,
prequote = 0x0,
source_quote = 0x0,
source_prequote = 0x0,
source_postquote = 0x0,
telnet_options = 0x0,
resolve = 0x0,
connect_to = 0x0,
timecondition = CURL_TIMECOND_NONE,
timevalue = 0,
httpreq = HTTPREQ_POST_MIME,
httpversion = 0,
strip_path_slash = false,
ssl = {
primary = {
version = 0,
version_max = 0,
verifypeer = true,
verifyhost = true,
verifystatus = false,
sessionid = true,
CApath = 0x0,
CAfile = 0x606000000028 "/etc/ssl/certs/ca-certificates.crt",
clientcert = 0x0,
random_file = 0x0,
egdsocket = 0x0,
cipher_list = 0x0
},
enable_beast = false,
no_revoke = false,
certverifyresult = 0,
CRLfile = 0x0,
issuercert = 0x0,
fsslctx = 0x0,
fsslctxp = 0x0,
certinfo = false,
falsestart = false,
cert = 0x0,
cert_type = 0x0,
key = 0x0,
key_type = 0x0,
key_passwd = 0x0
},
proxy_ssl = {
primary = {
version = 0,
version_max = 0,
verifypeer = true,
verifyhost = true,
verifystatus = false,
sessionid = true,
CApath = 0x0,
CAfile = 0x606000000088 "/etc/ssl/certs/ca-certificates.crt",
clientcert = 0x0,
random_file = 0x0,
egdsocket = 0x0,
cipher_list = 0x0
},
enable_beast = false,
no_revoke = false,
certverifyresult = 0,
CRLfile = 0x0,
issuercert = 0x0,
fsslctx = 0x0,
fsslctxp = 0x0,
certinfo = false,
falsestart = false,
cert = 0x0,
cert_type = 0x0,
key = 0x0,
key_type = 0x0,
key_passwd = 0x0
},
general_ssl = {
max_ssl_sessions = 5
},
proxytype = CURLPROXY_HTTP,
dns_cache_timeout = 60,
buffer_size = 16384,
private_data = 0x0,
http200aliases = 0x0,
ipver = 0,
max_filesize = 0,
ftp_filemethod = FTPFILE_MULTICWD,
ftp_create_missing_dirs = 0,
ssh_keyfunc = 0x0,
ssh_keyfunc_userp = 0x0,
ssh_compression = false,
printhost = false,
get_filetime = false,
tunnel_thru_httpproxy = false,
prefer_ascii = false,
ftp_append = false,
ftp_list_only = false,
ftp_use_port = false,
hide_progress = true,
http_fail_on_error = false,
http_keep_sending_on_error = false,
http_follow_location = false,
http_transfer_encoding = false,
http_disable_hostname_check_before_authentication = false,
include_header = false,
http_set_referer = false,
http_auto_referer = false,
opt_no_body = false,
upload = false,
use_netrc = CURL_NETRC_IGNORED,
verbose = false,
krb = false,
reuse_forbid = false,
reuse_fresh = false,
ftp_use_epsv = true,
ftp_use_eprt = true,
ftp_use_pret = false,
use_ssl = CURLUSESSL_NONE,
ftpsslauth = CURLFTPAUTH_DEFAULT,
ftp_ccc = CURLFTPSSL_CCC_NONE,
no_signal = false,
global_dns_cache = false,
tcp_nodelay = true,
ignorecl = false,
ftp_skip_ip = false,
connect_only = false,
ssh_auth_types = -1,
http_te_skip = false,
http_ce_skip = false,
new_file_perms = 420,
new_directory_perms = 493,
proxy_transfer_mode = false,
str = {0x0, 0x0, 0x0, 0x0, 0x0, 0x603000000018 "/dev/null", 0x0 <repeats 19 times>, 0x6060000001a8 "imap://127/(.0.1Content-Lehg:?n1", 0x0, 0x0, 0x606000000028 "/etc/ssl/certs/ca-certificates.crt", 0x606000000088 "/etc/ssl/certs/ca-certificates.crt", 0x0 <repeats 28 times>},
scope_id = 0,
allowed_protocols = -1,
redir_protocols = -201327633,
mail_rcpt = 0x0,
sasl_ir = false,
rtspreq = RTSPREQ_OPTIONS,
rtspversion = 0,
wildcardmatch = false,
chunk_bgn = 0x0,
chunk_end = 0x0,
fnmatch = 0x0,
fnmatch_data = 0x0,
gssapi_delegation = 0,
tcp_keepalive = false,
tcp_keepidle = 60,
tcp_keepintvl = 60,
tcp_fastopen = false,
maxconnects = 5,
ssl_enable_npn = true,
ssl_enable_alpn = true,
path_as_is = false,
pipewait = false,
expect_100_timeout = 1000,
suppress_connect_headers = false,
stream_depends_on = 0x0,
stream_depends_e = false,
stream_weight = 0,
stream_dependents = 0x0,
abstract_unix_socket = false
},
change = {
url = 0x6060000001a8 "imap://127/(.0.1Content-Lehg:?n1",
url_alloc = false,
referer = 0x0,
referer_alloc = false,
cookielist = 0x0,
resolve = 0x0
},
cookies = 0x6060000000e8,
progress = {
lastshow = 96792,
size_dl = 0,
size_ul = 0,
downloaded = 0,
uploaded = 0,
current_speed = 0,
callback = false,
width = 0,
flags = 16,
timespent = 2671,
dlspeed = 0,
ulspeed = 0,
t_nslookup = 0,
t_connect = 0,
t_appconnect = 0,
t_pretransfer = 0,
t_starttransfer = 0,
t_redirect = 0,
start = {
tv_sec = 96792,
tv_usec = 214579
},
t_startsingle = {
tv_sec = 96792,
tv_usec = 214586
},
t_startop = {
tv_sec = 96792,
tv_usec = 214584
},
t_acceptdata = {
tv_sec = 0,
tv_usec = 0
},
is_t_startransfer_set = false,
ul_limit_start = {
tv_sec = 0,
tv_usec = 0
},
ul_limit_size = 0,
dl_limit_start = {
tv_sec = 0,
tv_usec = 0
},
dl_limit_size = 0,
speeder = {0, 0, 0, 0, 0, 0},
speeder_time = {{
tv_sec = 96792,
tv_usec = 217250
}, {
tv_sec = 0,
tv_usec = 0
}, {
tv_sec = 0,
tv_usec = 0
}, {
tv_sec = 0,
tv_usec = 0
}, {
tv_sec = 0,
tv_usec = 0
}, {
tv_sec = 0,
tv_usec = 0
}},
speeder_c = 1
},
state = {
conn_cache = 0x615000001300,
multi_owned_by_easy = false,
keeps_speed = {
tv_sec = 0,
tv_usec = 0
},
lastconnect = 0x0,
headerbuff = 0x612000000048 '\276' <repeats 200 times>...,
headersize = 256,
buffer = 0x629000000208 '\276' <repeats 200 times>...,
uploadbuffer = '\000' <repeats 16384 times>,
current_speed = -1,
this_is_a_follow = false,
first_host = 0x0,
first_remote_port = 0,
session = 0x0,
sessionage = 0,
tempcount = 0,
tempwrite = {{
buf = 0x0,
len = 0,
type = 0
}, {
buf = 0x0,
len = 0,
type = 0
}, {
buf = 0x0,
len = 0,
type = 0
}},
scratch = 0x0,
errorbuf = false,
os_errno = 0,
prev_signal = 0x0,
allow_port = true,
digest = {
nonce = 0x0,
cnonce = 0x0,
realm = 0x0,
algo = 0,
stale = false,
opaque = 0x0,
qop = 0x0,
algorithm = 0x0,
nc = 0
},
proxydigest = {
nonce = 0x0,
cnonce = 0x0,
realm = 0x0,
algo = 0,
stale = false,
opaque = 0x0,
qop = 0x0,
algorithm = 0x0,
nc = 0
},
authhost = {
want = 1,
picked = 0,
avail = 0,
done = false,
multipass = false,
iestyle = false
},
authproxy = {
want = 1,
picked = 0,
avail = 0,
done = false,
multipass = false,
iestyle = false
},
authproblem = false,
resolver = 0x0,
expiretime = {
tv_sec = 0,
tv_usec = 0
},
timenode = {
smaller = 0x0,
larger = 0x0,
samen = 0x62a000005088,
samep = 0x62a000005088,
key = {
tv_sec = 96792,
tv_usec = 218208
},
payload = 0x62a000000208
},
timeoutlist = {
head = 0x0,
tail = 0x0,
dtor = 0x0,
size = 0
},
expires = {{
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 0,
tv_usec = 0
},
eid = EXPIRE_100_TIMEOUT
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 96792,
tv_usec = 218208
},
eid = EXPIRE_ASYNC_NAME
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 0,
tv_usec = 0
},
eid = EXPIRE_100_TIMEOUT
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 0,
tv_usec = 0
},
eid = EXPIRE_100_TIMEOUT
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 0,
tv_usec = 0
},
eid = EXPIRE_100_TIMEOUT
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 0,
tv_usec = 0
},
eid = EXPIRE_100_TIMEOUT
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 96792,
tv_usec = 217244
},
eid = EXPIRE_RUN_NOW
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 0,
tv_usec = 0
},
eid = EXPIRE_100_TIMEOUT
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 96792,
tv_usec = 414580
},
eid = EXPIRE_TIMEOUT
}, {
list = {
ptr = 0x0,
prev = 0x0,
next = 0x0
},
time = {
tv_sec = 0,
tv_usec = 0
},
eid = EXPIRE_100_TIMEOUT
}},
most_recent_ftp_entrypath = 0x0,
ftp_trying_alternative = false,
httpversion = 0,
expect100header = false,
pipe_broke = false,
prev_block_had_trailing_cr = false,
crlf_conversions = 0,
pathbuffer = 0x612000000348 "/(.0.1Content-Lehg:?n1",
path = 0x612000000349 "(.0.1Content-Lehg:?n1",
slash_removed = false,
use_range = false,
rangestringalloc = false,
range = 0x0,
resume_from = 0,
rtsp_next_client_CSeq = 0,
rtsp_next_server_CSeq = 0,
rtsp_CSeq_recv = 0,
infilesize = -1,
drain = 0,
done = false,
fread_func = 0x5151c0 <fuzz_read_callback(char*, unsigned long, unsigned long, void*)>,
in = 0x7fffffffe080,
stream_depends_on = 0x0,
stream_depends_e = false,
stream_weight = 0
},
wildcard = {
state = CURLWC_CLEAR,
path = 0x0,
pattern = 0x0,
filelist = {
head = 0x0,
tail = 0x0,
dtor = 0x0,
size = 0
},
tmp = 0x0,
tmp_dtor = 0x0,
customptr = 0x0
},
info = {
httpcode = 0,
httpproxycode = 0,
httpversion = 0,
filetime = -1,
timecond = false,
header_size = 0,
request_size = 0,
proxyauthavail = 0,
httpauthavail = 0,
numconnects = 0,
contenttype = 0x0,
wouldredirect = 0x0,
conn_primary_ip = '\000' <repeats 45 times>,
conn_primary_port = 0,
conn_local_ip = '\000' <repeats 45 times>,
conn_local_port = 0,
conn_scheme = 0x0,
conn_protocol = 0,
certs = {
num_of_certs = 0,
certinfo = 0x0
}
},
tsi = {
backend = CURLSSLBACKEND_NONE,
internals = 0x0
},
magic = 3235830701
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.