1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 17:31:46 -05:00
Daniel Stenberg 1514c44655
http2: avoid strstr() on data not zero terminated
It's not strictly clear if the API contract allows us to call strstr()
on a string that isn't zero terminated even when we know it will find
the substring, and clang's ASAN check dislikes us for it.

Also added a check of the return code in case it fails, even if I can't
think of a situation how that can trigger.

Detected by OSS-Fuzz
Closes #2513
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7760
2018-04-20 22:16:50 +02:00
..
2018-01-05 23:34:30 -05:00
2018-04-15 03:05:45 -04:00
2018-01-05 23:34:30 -05:00
2018-01-05 23:34:30 -05:00
2017-12-05 23:21:02 +01:00
2017-03-26 23:56:23 +02:00
2018-02-23 23:29:01 +00:00
2017-07-28 16:41:29 +02:00
2017-09-11 09:29:50 +02:00
2017-04-22 11:25:27 +02:00
2017-04-22 11:25:27 +02:00
2017-04-22 11:25:27 +02:00
2017-06-18 23:57:45 +02:00
2016-12-21 11:07:26 +01:00
2018-04-09 15:54:52 +02:00
2017-09-11 09:29:50 +02:00
2017-08-23 23:58:49 +02:00
2018-03-04 22:21:46 +01:00
2017-10-15 15:59:43 +00:00
2017-04-22 11:25:27 +02:00
2017-03-26 23:56:23 +02:00
2017-06-21 07:46:21 +02:00
2018-02-23 23:29:01 +00:00
2017-09-02 17:47:10 +01:00
2017-03-13 23:11:45 +01:00
2018-02-23 23:29:01 +00:00
2018-03-19 19:22:42 +01:00
2017-10-25 18:48:05 +02:00
2017-10-25 18:48:05 +02:00
2017-12-13 00:45:42 +01:00
2017-06-30 10:17:27 +02:00
2018-01-05 23:34:30 -05:00
2017-10-30 16:40:28 +01:00
2018-02-23 23:29:01 +00:00
2018-02-23 23:29:01 +00:00
2017-12-01 17:38:37 +01:00
2017-09-11 09:29:50 +02:00
2017-03-26 23:56:23 +02:00
2018-02-23 23:29:01 +00:00
2017-12-01 17:38:37 +01:00