diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2016-11-16 02:16:10 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2016-11-16 02:16:10 -0500 |
commit | b65f79d9e84277594f0df98ae4b997053176983d (patch) | |
tree | b758a851bc2770418dce807e1c4e70f5b2b520d1 /docs/CODE_OF_CONDUCT.md | |
parent | 03d707fc5fe137376a0ae4e5c6fe3d918367550f (diff) |
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
Diffstat (limited to 'docs/CODE_OF_CONDUCT.md')
0 files changed, 0 insertions, 0 deletions