Michael Niedermayer
37b2a19afa
avutil/avstring: Fix bug and undefined behavior in av_strncasecmp()
...
The function in case of n=0 would read more bytes than 0.
The end pointer could be beyond the allocated space, which
is undefined.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 6f0e9a863466bfcbd75ee15d4d8a6aad2a5126a4)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-12-02 19:41:48 +01:00
..
2015-07-20 17:20:16 +02:00
2016-11-26 15:12:25 +01:00
2015-06-05 19:12:58 +02:00
2016-01-08 14:02:27 -03:00
2015-06-19 02:25:48 +02:00
2015-06-19 02:25:48 +02:00
2015-08-19 16:15:13 +00:00
2015-08-19 16:15:13 +00:00
2019-12-02 19:41:48 +01:00
2015-03-31 23:50:46 +02:00
2015-08-22 10:07:05 -07:00
2015-09-05 13:02:29 -03:00
2015-09-05 13:02:29 -03:00
2015-05-02 14:37:48 +02:00
2016-04-27 04:40:11 +02:00
2015-08-24 10:40:24 +02:00
2016-04-27 04:40:12 +02:00
2018-07-10 01:52:56 +02:00
2015-05-31 23:59:48 +02:00
2015-05-31 12:07:11 +02:00
2015-05-31 22:47:50 +02:00
2015-06-19 02:25:48 +02:00
2015-09-05 13:02:29 -03:00
2015-09-05 13:02:29 -03:00
2015-05-10 16:09:07 +02:00
2015-03-24 01:14:31 +01:00
2015-03-24 01:14:31 +01:00
2015-08-12 00:14:14 +02:00
2015-08-19 16:15:13 +00:00
2015-08-19 16:15:13 +00:00
2015-11-02 19:15:32 +01:00
2015-06-20 03:39:09 -03:00
2015-06-03 22:50:53 +02:00
2015-08-07 22:46:27 +02:00
2015-06-01 16:22:27 +02:00
2016-02-13 21:08:23 +01:00
2015-07-18 10:46:36 +02:00
2015-07-29 21:32:05 -03:00
2015-07-29 21:32:05 -03:00
2017-02-08 21:17:50 +01:00
2017-02-08 21:17:50 +01:00
2018-10-25 00:24:55 +02:00
2017-06-05 23:16:54 +02:00
2015-08-22 10:07:05 -07:00
2015-10-08 13:15:42 +02:00
2015-06-26 14:02:35 +02:00
2015-08-12 00:14:14 +02:00
2015-12-09 17:53:44 +01:00
2015-07-13 21:54:15 -03:00
2019-12-02 19:41:47 +01:00
2019-07-23 01:21:55 -03:00
2015-04-28 12:28:53 +02:00
2015-04-28 12:28:53 +02:00
2016-01-28 15:53:54 +01:00
2016-08-15 20:25:13 +02:00
2015-07-21 16:55:39 +02:00
2015-04-07 20:46:25 +02:00
2015-03-30 04:37:42 +02:00
2016-02-22 03:50:51 +01:00
2018-07-20 13:15:48 +02:00
2017-02-08 21:17:50 +01:00
2015-05-26 18:31:53 +02:00
2015-05-26 18:31:53 +02:00
2015-09-05 13:02:29 -03:00
2015-09-05 13:02:29 -03:00
2015-08-12 00:14:14 +02:00
2015-05-07 15:40:56 +02:00
2015-04-30 17:38:41 -03:00
2015-11-12 00:00:57 +01:00
2018-01-31 22:56:14 +01:00
2015-07-21 23:10:44 +02:00
2015-07-21 23:10:44 +02:00
2015-12-06 02:51:27 +01:00
2015-03-27 04:44:58 +01:00
2015-08-18 15:57:20 -04:00
2015-09-05 13:02:29 -03:00
2015-09-05 13:02:29 -03:00
2015-09-05 13:02:29 -03:00