1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 15:50:48 -04:00
Jay Satiro b65f79d9e8 http2: Fix address sanitizer memcpy warning
- In Curl_http2_switched don't call memcpy when src is NULL.

Curl_http2_switched can be called like:

Curl_http2_switched(conn, NULL, 0);

.. and prior to this change memcpy was then called like:

memcpy(dest, NULL, 0)

.. causing address sanitizer to warn:

http2.c:2057:3: runtime error: null pointer passed as argument 2, which
is declared to never be null
2016-11-16 02:16:10 -05:00
..
2016-10-18 13:59:54 +02:00
2016-09-07 10:41:57 +02:00
2016-10-10 19:47:31 +02:00
2016-02-04 18:46:54 -05:00
2016-11-01 20:40:26 +01:00
2016-10-08 15:13:46 +02:00
2016-10-08 15:13:46 +02:00
2016-10-31 09:50:41 +01:00
2016-10-18 13:59:54 +02:00
2016-11-07 10:36:23 +01:00
2016-11-08 15:30:33 +01:00
2016-04-03 23:07:30 +02:00
2016-04-03 23:07:30 +02:00
2016-11-14 08:23:52 +01:00
2016-11-14 08:23:52 +01:00
2016-10-18 11:05:45 +02:00
2016-10-18 11:05:45 +02:00
2016-04-03 22:38:36 +02:00
2016-10-31 09:37:54 +01:00