<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/lib/pingpong.c, branch bagder/https-proxy-tests</title>
<subtitle>github.com: bagder/curl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/'/>
<entry>
<title>timediff: make it 64 bit (if possible) even with 32 bit time_t</title>
<updated>2019-08-01T05:43:24+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-07-31T13:30:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=b1616dad8f088d873d88f88b4d884335a4ca285f'/>
<id>b1616dad8f088d873d88f88b4d884335a4ca285f</id>
<content type='text'>
... to make it hold microseconds too.

Fixes #4165
Closes #4168
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... to make it hold microseconds too.

Fixes #4165
Closes #4168
</pre>
</div>
</content>
</entry>
<entry>
<title>cleanup: remove the 'numsocks' argument used in many places</title>
<updated>2019-07-30T21:16:44+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-07-30T09:02:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=a55faf33d4b868c8e8173e7aabfe1e286a1a7658'/>
<id>a55faf33d4b868c8e8173e7aabfe1e286a1a7658</id>
<content type='text'>
It was used (intended) to pass in the size of the 'socks' array that is
also passed to these functions, but was rarely actually checked/used and
the array is defined to a fixed size of MAX_SOCKSPEREASYHANDLE entries
that should be used instead.

Closes #4169
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was used (intended) to pass in the size of the 'socks' array that is
also passed to these functions, but was rarely actually checked/used and
the array is defined to a fixed size of MAX_SOCKSPEREASYHANDLE entries
that should be used instead.

Closes #4169
</pre>
</div>
</content>
</entry>
<entry>
<title>pingpong: ignore regular timeout in disconnect phase</title>
<updated>2018-12-17T11:33:00+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2018-12-14T08:21:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=154a17b6ee5097642e2330fb14ba52e317b95430'/>
<id>154a17b6ee5097642e2330fb14ba52e317b95430</id>
<content type='text'>
The timeout set with CURLOPT_TIMEOUT is no longer used when
disconnecting from one of the pingpong protocols (FTP, IMAP, SMTP,
POP3).

Reported-by: jasal82 on github

Fixes #3264
Closes #3374
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The timeout set with CURLOPT_TIMEOUT is no longer used when
disconnecting from one of the pingpong protocols (FTP, IMAP, SMTP,
POP3).

Reported-by: jasal82 on github

Fixes #3264
Closes #3374
</pre>
</div>
</content>
</entry>
<entry>
<title>Curl_debug: remove dead printhost code</title>
<updated>2018-06-12T14:00:27+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2018-06-11T22:10:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=5ae22272d1506e5c0e431f4ad60f1dc446f76715'/>
<id>5ae22272d1506e5c0e431f4ad60f1dc446f76715</id>
<content type='text'>
The struct field is never set (since 5e0d9aea3) so remove the use of it
and remove the connectdata pointer from the prototype.

Reported-by: Tejas
Bug: https://curl.haxx.se/mail/lib-2018-06/0054.html
Closes #2647
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The struct field is never set (since 5e0d9aea3) so remove the use of it
and remove the connectdata pointer from the prototype.

Reported-by: Tejas
Bug: https://curl.haxx.se/mail/lib-2018-06/0054.html
Closes #2647
</pre>
</div>
</content>
</entry>
<entry>
<title>cppcheck: fix warnings</title>
<updated>2018-06-11T09:14:48+00:00</updated>
<author>
<name>Marian Klymov</name>
<email>nekto1989@gmail.com</email>
</author>
<published>2018-06-02T20:52:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=c45360d4633850839bb9c2d77dbf8a8285e9ad49'/>
<id>c45360d4633850839bb9c2d77dbf8a8285e9ad49</id>
<content type='text'>
- Get rid of variable that was generating false positive warning
(unitialized)

- Fix issues in tests

- Reduce scope of several variables all over

etc

Closes #2631
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Get rid of variable that was generating false positive warning
(unitialized)

- Fix issues in tests

- Reduce scope of several variables all over

etc

Closes #2631
</pre>
</div>
</content>
</entry>
<entry>
<title>pingpong: fix response cache memcpy overflow</title>
<updated>2018-05-14T05:40:31+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2018-03-23T22:30:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=583b42cb3b809b1bf597af160468ccba728c2248'/>
<id>583b42cb3b809b1bf597af160468ccba728c2248</id>
<content type='text'>
Response data for a handle with a large buffer might be cached and then
used with the "closure" handle when it has a smaller buffer and then the
larger cache will be copied and overflow the new smaller heap based
buffer.

Reported-by: Dario Weisser
CVE: CVE-2018-1000300
Bug: https://curl.haxx.se/docs/adv_2018-82c2.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Response data for a handle with a large buffer might be cached and then
used with the "closure" handle when it has a smaller buffer and then the
larger cache will be copied and overflow the new smaller heap based
buffer.

Reported-by: Dario Weisser
CVE: CVE-2018-1000300
Bug: https://curl.haxx.se/docs/adv_2018-82c2.html
</pre>
</div>
</content>
</entry>
<entry>
<title>time: rename Curl_tvnow to Curl_now</title>
<updated>2017-10-25T16:48:05+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2017-10-25T09:59:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=5d543fe90670c1924fd2c7d6be871b3ad90c438d'/>
<id>5d543fe90670c1924fd2c7d6be871b3ad90c438d</id>
<content type='text'>
... since the 'tv' stood for timeval and this function does not return a
timeval struct anymore.

Also, cleaned up the Curl_timediff*() functions to avoid typecasts and
clean up the descriptive comments.

Closes #2011
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... since the 'tv' stood for timeval and this function does not return a
timeval struct anymore.

Also, cleaned up the Curl_timediff*() functions to avoid typecasts and
clean up the descriptive comments.

Closes #2011
</pre>
</div>
</content>
</entry>
<entry>
<title>timediff: return timediff_t from the time diff functions</title>
<updated>2017-10-25T07:54:37+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2017-10-23T10:05:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=b9d25f9a6b3ca791385b80a6a3c3fa5ae113e1e0'/>
<id>b9d25f9a6b3ca791385b80a6a3c3fa5ae113e1e0</id>
<content type='text'>
... to cater for systems with unsigned time_t variables.

- Renamed the functions to curlx_timediff and Curl_timediff_us.

- Added overflow protection for both of them in either direction for
  both 32 bit and 64 bit time_ts

- Reprefixed the curlx_time functions to use Curl_*

Reported-by: Peter Piekarski
Fixes #2004
Closes #2005
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... to cater for systems with unsigned time_t variables.

- Renamed the functions to curlx_timediff and Curl_timediff_us.

- Added overflow protection for both of them in either direction for
  both 32 bit and 64 bit time_ts

- Reprefixed the curlx_time functions to use Curl_*

Reported-by: Peter Piekarski
Fixes #2004
Closes #2005
</pre>
</div>
</content>
</entry>
<entry>
<title>pingpong: return error when trying to send without connection</title>
<updated>2017-10-06T22:20:31+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2017-10-06T15:20:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=5b54df06d2cec422d5f237e0fa0212be0303edce'/>
<id>5b54df06d2cec422d5f237e0fa0212be0303edce</id>
<content type='text'>
When imap_done() got called before a connection is setup, it would try
to "finish up" and dereffed a NULL pointer.

Test case 1553 managed to reproduce. I had to actually use a host name
to try to resolve to slow it down, as using the normal local server IP
will make libcurl get a connection in the first curl_multi_perform()
loop and then the bug doesn't trigger.

Fixes #1953
Assisted-by: Max Dymond
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When imap_done() got called before a connection is setup, it would try
to "finish up" and dereffed a NULL pointer.

Test case 1553 managed to reproduce. I had to actually use a host name
to try to resolve to slow it down, as using the normal local server IP
will make libcurl get a connection in the first curl_multi_perform()
loop and then the bug doesn't trigger.

Fixes #1953
Assisted-by: Max Dymond
</pre>
</div>
</content>
</entry>
<entry>
<title>code style: use spaces around pluses</title>
<updated>2017-09-11T07:29:50+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2017-09-09T21:55:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e5743f08e7efb387bb39c0dc28f36838ece3bc1e'/>
<id>e5743f08e7efb387bb39c0dc28f36838ece3bc1e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
