Andrew Osmond
153165e174
Bug 1465775 - Fix crash in SourceBuffer::AppendFromInputStream due to incomplete read. r=tnikkel
...
Crash reports indicate that SourceBuffer::mStatus is not set, and thus
SourceBuffer::AppendFromInputStream crashes due to dereferencing an
invalid Maybe<nsresult> object. Since SourceBuffer::Append cannot fail
without mStatus being set (or already set), it must mean that the input
stream failed to read all the data, and swallowed any internal errors.
While we used to assert in this situation, we also silently swallowed
the error historically. This patch will check mStatus, but if it is
unavailable, it will assert like before, and silently return otherwise.
2018-06-05 06:49:24 -04:00
..
2018-06-01 17:59:07 +02:00
2018-04-13 16:01:28 +03:00
2018-06-01 17:59:07 +02:00
2018-06-01 10:45:27 +02:00
2018-05-29 08:36:12 -04:00
2018-05-29 08:36:11 -04:00
2018-06-01 10:45:27 +02:00
2018-05-29 08:36:12 -04:00
2018-06-01 10:45:27 +02:00
2018-02-12 15:44:40 -05:00
2018-04-13 16:01:28 +03:00
2018-02-07 17:00:04 -06:00
2018-06-01 10:45:27 +02:00
2018-03-27 10:57:01 -04:00
2018-05-30 19:35:40 -04:00
2018-06-01 10:45:27 +02:00
2018-06-02 09:33:26 +02:00
2018-02-28 13:34:52 -05:00
2018-04-13 16:01:28 +03:00
2018-05-29 08:36:12 -04:00
2018-06-01 10:45:27 +02:00
2018-05-29 08:36:12 -04:00
2018-02-12 15:44:40 -05:00
2018-02-12 15:44:40 -05:00
2018-04-05 11:45:40 +02:00
2018-02-22 14:26:29 -05:00
2018-06-02 15:51:42 +02:00
2018-03-20 11:29:42 +01:00
2018-05-09 09:31:07 -04:00
2018-06-01 10:45:27 +02:00
2018-04-28 12:50:58 -07:00
2018-05-30 19:35:40 -04:00
2018-06-01 10:45:27 +02:00
2018-05-11 19:46:15 +02:00
2018-05-11 19:46:15 +02:00
2018-06-01 10:45:27 +02:00
2018-04-28 12:50:58 -07:00
2018-06-01 10:45:27 +02:00
2018-06-01 10:45:27 +02:00
2018-02-07 07:27:27 -05:00
2018-06-01 10:45:27 +02:00
2018-02-07 07:27:27 -05:00
2018-06-01 10:45:27 +02:00
2018-06-01 10:45:27 +02:00
2018-05-24 21:11:46 +02:00
2018-02-07 07:27:27 -05:00
2018-02-12 15:44:40 -05:00
2018-01-23 22:25:18 +01:00
2018-02-12 15:44:40 -05:00
2018-02-12 15:44:40 -05:00
2018-02-07 07:27:27 -05:00
2018-06-01 10:45:27 +02:00
2018-02-13 06:43:31 -05:00
2018-06-05 06:49:24 -04:00
2018-06-01 10:45:27 +02:00
2018-06-01 10:45:27 +02:00
2018-06-01 10:45:27 +02:00
2018-05-29 08:36:12 -04:00
2018-05-29 08:36:12 -04:00
2018-06-02 09:33:26 +02:00
2018-06-01 10:45:27 +02:00
2018-04-26 17:07:39 +02:00
2018-04-26 17:07:39 +02:00
2018-06-01 10:45:27 +02:00