| Index: sdk/lib/io/http_impl.dart
|
| diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
|
| index 5539f3adb92b29bf49eb70840d19d4d080c7c5ef..7f701ab143df3024df94c0aaa671182412098a2a 100644
|
| --- a/sdk/lib/io/http_impl.dart
|
| +++ b/sdk/lib/io/http_impl.dart
|
| @@ -683,6 +683,9 @@ class _HttpOutputStream extends _BaseOutputStream implements OutputStream {
|
| }
|
|
|
| bool writeFrom(List<int> buffer, [int offset = 0, int len]) {
|
| + if (offset < 0 || offset >= buffer.length) throw new ArgumentError();
|
| + len = len != null ? len : buffer.length - offset;
|
| + if (len < 0) throw new ArgumentError();
|
| return _requestOrResponse._streamWriteFrom(buffer, offset, len);
|
| }
|
|
|
|
|