Imported Upstream version 4.0.4.1
Former-commit-id: d8eb832a9a4b58a238f2e069a0b68c70082f8790
This commit is contained in:
parent
c7df8a8f93
commit
363056e66e
@ -85,7 +85,7 @@ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
|
|||||||
$(srcdir)/config.h.in mkinstalldirs \
|
$(srcdir)/config.h.in mkinstalldirs \
|
||||||
$(srcdir)/mono-core.spec.in $(srcdir)/mono-uninstalled.pc.in \
|
$(srcdir)/mono-core.spec.in $(srcdir)/mono-uninstalled.pc.in \
|
||||||
AUTHORS COPYING.LIB ChangeLog NEWS compile config.guess \
|
AUTHORS COPYING.LIB ChangeLog NEWS compile config.guess \
|
||||||
config.rpath config.sub depcomp install-sh missing ltmain.sh
|
config.rpath config.sub install-sh missing ltmain.sh
|
||||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||||
am__aclocal_m4_deps = $(top_srcdir)/m4/iconv.m4 \
|
am__aclocal_m4_deps = $(top_srcdir)/m4/iconv.m4 \
|
||||||
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
$(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
|
||||||
|
@ -1 +1 @@
|
|||||||
d8620aa82da0a0b38b32fce2756391f51b4f0e09
|
0153a4d763e8fdec1bfc6ad8a10db68ae9a8b3ad
|
@ -1 +1 @@
|
|||||||
eb6b931cec597bff05367555adbfdfd531547514
|
4d5ca3baf19b55971eba3a1e4c430304031594ed
|
@ -34,7 +34,7 @@ static class Consts
|
|||||||
// Use these assembly version constants to make code more maintainable.
|
// Use these assembly version constants to make code more maintainable.
|
||||||
//
|
//
|
||||||
|
|
||||||
public const string MonoVersion = "4.0.3.0";
|
public const string MonoVersion = "4.0.4.0";
|
||||||
public const string MonoCompany = "Mono development team";
|
public const string MonoCompany = "Mono development team";
|
||||||
public const string MonoProduct = "Mono Common Language Infrastructure";
|
public const string MonoProduct = "Mono Common Language Infrastructure";
|
||||||
public const string MonoCopyright = "(c) Various Mono authors";
|
public const string MonoCopyright = "(c) Various Mono authors";
|
||||||
|
@ -340,6 +340,8 @@ namespace System.Net.Http
|
|||||||
wrequest.ContentLength = content.Headers.ContentLength.Value;
|
wrequest.ContentLength = content.Headers.ContentLength.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wrequest.ResendContentFactory = content.CopyTo;
|
||||||
|
|
||||||
var stream = await wrequest.GetRequestStreamAsync ().ConfigureAwait (false);
|
var stream = await wrequest.GetRequestStreamAsync ().ConfigureAwait (false);
|
||||||
await request.Content.CopyToAsync (stream).ConfigureAwait (false);
|
await request.Content.CopyToAsync (stream).ConfigureAwait (false);
|
||||||
} else if (HttpMethod.Post.Equals (request.Method) || HttpMethod.Put.Equals (request.Method) || HttpMethod.Delete.Equals (request.Method)) {
|
} else if (HttpMethod.Post.Equals (request.Method) || HttpMethod.Put.Equals (request.Method) || HttpMethod.Delete.Equals (request.Method)) {
|
||||||
|
@ -81,6 +81,12 @@ namespace System.Net.Http
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only used by HttpWebRequest internals which is not async friendly
|
||||||
|
internal void CopyTo (Stream stream)
|
||||||
|
{
|
||||||
|
CopyToAsync (stream).Wait ();
|
||||||
|
}
|
||||||
|
|
||||||
public Task CopyToAsync (Stream stream)
|
public Task CopyToAsync (Stream stream)
|
||||||
{
|
{
|
||||||
return CopyToAsync (stream, null);
|
return CopyToAsync (stream, null);
|
||||||
|
@ -110,6 +110,9 @@ namespace System.Net
|
|||||||
AuthorizationState auth_state, proxy_auth_state;
|
AuthorizationState auth_state, proxy_auth_state;
|
||||||
string host;
|
string host;
|
||||||
|
|
||||||
|
[NonSerialized]
|
||||||
|
internal Action<Stream> ResendContentFactory;
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
static HttpWebRequest ()
|
static HttpWebRequest ()
|
||||||
{
|
{
|
||||||
@ -226,9 +229,15 @@ namespace System.Net
|
|||||||
|
|
||||||
internal bool InternalAllowBuffering {
|
internal bool InternalAllowBuffering {
|
||||||
get {
|
get {
|
||||||
return (allowBuffering && (method != "HEAD" && method != "GET" &&
|
return allowBuffering && MethodWithBuffer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool MethodWithBuffer {
|
||||||
|
get {
|
||||||
|
return method != "HEAD" && method != "GET" &&
|
||||||
method != "MKCOL" && method != "CONNECT" &&
|
method != "MKCOL" && method != "CONNECT" &&
|
||||||
method != "TRACE"));
|
method != "TRACE";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1306,8 +1315,7 @@ namespace System.Net
|
|||||||
bodyBuffer = null;
|
bodyBuffer = null;
|
||||||
writeStream.Close ();
|
writeStream.Close ();
|
||||||
}
|
}
|
||||||
} else if (method != "HEAD" && method != "GET" && method != "MKCOL" && method != "CONNECT" &&
|
} else if (MethodWithBuffer) {
|
||||||
method != "TRACE") {
|
|
||||||
if (getResponseCalled && !writeStream.RequestWritten)
|
if (getResponseCalled && !writeStream.RequestWritten)
|
||||||
return writeStream.WriteRequestAsync (result);
|
return writeStream.WriteRequestAsync (result);
|
||||||
}
|
}
|
||||||
@ -1606,12 +1614,28 @@ namespace System.Net
|
|||||||
(ProxyQuery && !proxy_auth_state.IsCompleted && code == HttpStatusCode.ProxyAuthenticationRequired)) {
|
(ProxyQuery && !proxy_auth_state.IsCompleted && code == HttpStatusCode.ProxyAuthenticationRequired)) {
|
||||||
if (!usedPreAuth && CheckAuthorization (webResponse, code)) {
|
if (!usedPreAuth && CheckAuthorization (webResponse, code)) {
|
||||||
// Keep the written body, so it can be rewritten in the retry
|
// Keep the written body, so it can be rewritten in the retry
|
||||||
if (InternalAllowBuffering) {
|
if (MethodWithBuffer) {
|
||||||
|
if (AllowWriteStreamBuffering) {
|
||||||
if (writeStream.WriteBufferLength > 0) {
|
if (writeStream.WriteBufferLength > 0) {
|
||||||
bodyBuffer = writeStream.WriteBuffer;
|
bodyBuffer = writeStream.WriteBuffer;
|
||||||
bodyBufferLength = writeStream.WriteBufferLength;
|
bodyBufferLength = writeStream.WriteBufferLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Buffering is not allowed but we have alternative way to get same content (we
|
||||||
|
// need to resent it due to NTLM Authentication).
|
||||||
|
//
|
||||||
|
if (ResendContentFactory != null) {
|
||||||
|
using (var ms = new MemoryStream ()) {
|
||||||
|
ResendContentFactory (ms);
|
||||||
|
bodyBuffer = ms.ToArray ();
|
||||||
|
bodyBufferLength = bodyBuffer.Length;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} else if (method != "PUT" && method != "POST") {
|
} else if (method != "PUT" && method != "POST") {
|
||||||
bodyBuffer = null;
|
bodyBuffer = null;
|
||||||
return true;
|
return true;
|
||||||
|
@ -362,6 +362,41 @@ namespace MonoTests.System.IO.Compression
|
|||||||
backing.Close();
|
backing.Close();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
[ExpectedException (typeof (ArgumentException))]
|
||||||
|
public void CheckBufferOverrun ()
|
||||||
|
{
|
||||||
|
byte[] data = new byte [20];
|
||||||
|
MemoryStream backing = new MemoryStream ();
|
||||||
|
DeflateStream compressing = new DeflateStream (backing, CompressionLevel.Fastest, true);
|
||||||
|
compressing.Write (data, 0, data.Length + 1);
|
||||||
|
compressing.Close ();
|
||||||
|
backing.Close ();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void Bug28777_EmptyFlush ()
|
||||||
|
{
|
||||||
|
MemoryStream backing = new MemoryStream ();
|
||||||
|
DeflateStream compressing = new DeflateStream (backing, CompressionLevel.Fastest, true);
|
||||||
|
compressing.Flush ();
|
||||||
|
compressing.Close ();
|
||||||
|
backing.Close ();
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void Bug28777_DoubleFlush ()
|
||||||
|
{
|
||||||
|
byte[] buffer = new byte [4096];
|
||||||
|
MemoryStream backing = new MemoryStream ();
|
||||||
|
DeflateStream compressing = new DeflateStream (backing, CompressionLevel.Fastest, true);
|
||||||
|
compressing.Write (buffer, 0, buffer.Length);
|
||||||
|
compressing.Flush ();
|
||||||
|
compressing.Flush ();
|
||||||
|
compressing.Close ();
|
||||||
|
backing.Close ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
635d63e502807da4ea4ad941b6e58bfab43bd37a
|
68b84e24a06bbb6bb78ef224608dc4eba15d5030
|
@ -1 +1 @@
|
|||||||
2b5f667533551ac33fc9de43b43a62b448b55a90
|
17f4de6638d19cbc68f60a4d532798d87ab7302b
|
@ -1 +1 @@
|
|||||||
5e889cf1e66abc75e57bafd92c7139ab2c808069
|
e29dbe6efa356793ba4738a7a2d9858233c5d502
|
@ -1 +1 @@
|
|||||||
4218f3c3bb5d10cef11ff7c790e5ade5d1b86898
|
2a993e8625896ec805afccd0668cb8f016e84399
|
@ -1 +1 @@
|
|||||||
2bcd9a0ee7ae4393575a446e424e0cd5017ba4c1
|
0bf4ff5424f83891362cc450b801e8168bf5b777
|
@ -1 +1 @@
|
|||||||
ff31c170be712465ad92e7a9205369a179b7fd06
|
58b35960f78d990b0abdf6138caee16ddcde82c8
|
@ -1 +1 @@
|
|||||||
02b350ac4078a8f6791373d728b2866b52268350
|
32112b9a947cfe490e82c9e32a4201dc758359d9
|
@ -1 +1 @@
|
|||||||
ab62521ff428443441e7b5469865bfa7555b53a7
|
bf09282b13961dddc7fd50d446f6246c14bff292
|
@ -15,7 +15,7 @@ License: LGPL v2.1 only
|
|||||||
Group: Development/Languages/Mono
|
Group: Development/Languages/Mono
|
||||||
Summary: A .NET Runtime Environment
|
Summary: A .NET Runtime Environment
|
||||||
Url: http://www.mono-project.com
|
Url: http://www.mono-project.com
|
||||||
Version: 4.0.3
|
Version: 4.0.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Source0: mono-%{version}.tar.bz2
|
Source0: mono-%{version}.tar.bz2
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
|
@ -2007,6 +2007,7 @@ mono_image_load_file_for_image (MonoImage *image, int fileidx)
|
|||||||
mono_image_unlock (image);
|
mono_image_unlock (image);
|
||||||
return image->files [fileidx - 1];
|
return image->files [fileidx - 1];
|
||||||
}
|
}
|
||||||
|
mono_image_unlock (image);
|
||||||
|
|
||||||
fname_id = mono_metadata_decode_row_col (t, fileidx - 1, MONO_FILE_NAME);
|
fname_id = mono_metadata_decode_row_col (t, fileidx - 1, MONO_FILE_NAME);
|
||||||
fname = mono_metadata_string_heap (image, fname_id);
|
fname = mono_metadata_string_heap (image, fname_id);
|
||||||
@ -2020,7 +2021,7 @@ mono_image_load_file_for_image (MonoImage *image, int fileidx)
|
|||||||
if (image->files && image->files [fileidx - 1]) {
|
if (image->files && image->files [fileidx - 1]) {
|
||||||
MonoImage *old = res;
|
MonoImage *old = res;
|
||||||
res = image->files [fileidx - 1];
|
res = image->files [fileidx - 1];
|
||||||
mono_loader_unlock ();
|
mono_image_unlock (image);
|
||||||
mono_image_close (old);
|
mono_image_close (old);
|
||||||
} else {
|
} else {
|
||||||
int i;
|
int i;
|
||||||
@ -2034,7 +2035,7 @@ mono_image_load_file_for_image (MonoImage *image, int fileidx)
|
|||||||
if (!image->files)
|
if (!image->files)
|
||||||
image->files = g_new0 (MonoImage*, t->rows);
|
image->files = g_new0 (MonoImage*, t->rows);
|
||||||
image->files [fileidx - 1] = res;
|
image->files [fileidx - 1] = res;
|
||||||
mono_loader_unlock ();
|
mono_image_unlock (image);
|
||||||
/* vtable fixup can't happen with the image lock held */
|
/* vtable fixup can't happen with the image lock held */
|
||||||
#ifdef HOST_WIN32
|
#ifdef HOST_WIN32
|
||||||
if (res->is_module_handle)
|
if (res->is_module_handle)
|
||||||
|
@ -759,7 +759,7 @@ EXTRA_DIST = TestDriver.cs ldscript ldscript.mono \
|
|||||||
Makefile.am.in
|
Makefile.am.in
|
||||||
|
|
||||||
version.h: Makefile
|
version.h: Makefile
|
||||||
echo "#define FULL_VERSION \"Stable 4.0.3.20/d6946b4\"" > version.h
|
echo "#define FULL_VERSION \"Stable 4.0.4.1/5ab4c0d\"" > version.h
|
||||||
|
|
||||||
# Utility target for patching libtool to speed up linking
|
# Utility target for patching libtool to speed up linking
|
||||||
patch-libtool:
|
patch-libtool:
|
||||||
|
@ -759,7 +759,7 @@ EXTRA_DIST = TestDriver.cs ldscript ldscript.mono \
|
|||||||
Makefile.am.in
|
Makefile.am.in
|
||||||
|
|
||||||
version.h: Makefile
|
version.h: Makefile
|
||||||
echo "#define FULL_VERSION \"Stable 4.0.3.20/d6946b4\"" > version.h
|
echo "#define FULL_VERSION \"Stable 4.0.4.1/5ab4c0d\"" > version.h
|
||||||
|
|
||||||
# Utility target for patching libtool to speed up linking
|
# Utility target for patching libtool to speed up linking
|
||||||
patch-libtool:
|
patch-libtool:
|
||||||
|
@ -1 +1 @@
|
|||||||
7ac03b3cefbbfa9d11d67b9d04a42870367a4eff
|
8959e291e0e5f26397d9b96d257b52820f9acee0
|
@ -398,14 +398,20 @@ MonoSeqPointInfo*
|
|||||||
get_seq_points (MonoDomain *domain, MonoMethod *method)
|
get_seq_points (MonoDomain *domain, MonoMethod *method)
|
||||||
{
|
{
|
||||||
MonoSeqPointInfo *seq_points;
|
MonoSeqPointInfo *seq_points;
|
||||||
|
MonoMethod *declaring_generic_method = NULL, *shared_method = NULL;
|
||||||
|
|
||||||
|
if (method->is_inflated) {
|
||||||
|
declaring_generic_method = mono_method_get_declaring_generic_method (method);
|
||||||
|
shared_method = mini_get_shared_method (method);
|
||||||
|
}
|
||||||
|
|
||||||
mono_domain_lock (domain);
|
mono_domain_lock (domain);
|
||||||
seq_points = g_hash_table_lookup (domain_jit_info (domain)->seq_points, method);
|
seq_points = g_hash_table_lookup (domain_jit_info (domain)->seq_points, method);
|
||||||
if (!seq_points && method->is_inflated) {
|
if (!seq_points && method->is_inflated) {
|
||||||
/* generic sharing + aot */
|
/* generic sharing + aot */
|
||||||
seq_points = g_hash_table_lookup (domain_jit_info (domain)->seq_points, mono_method_get_declaring_generic_method (method));
|
seq_points = g_hash_table_lookup (domain_jit_info (domain)->seq_points, declaring_generic_method);
|
||||||
if (!seq_points)
|
if (!seq_points)
|
||||||
seq_points = g_hash_table_lookup (domain_jit_info (domain)->seq_points, mini_get_shared_method (method));
|
seq_points = g_hash_table_lookup (domain_jit_info (domain)->seq_points, shared_method);
|
||||||
}
|
}
|
||||||
mono_domain_unlock (domain);
|
mono_domain_unlock (domain);
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
#define FULL_VERSION "Stable 4.0.3.20/d6946b4"
|
#define FULL_VERSION "Stable 4.0.4.1/5ab4c0d"
|
||||||
|
BIN
po/mcs/de.gmo
BIN
po/mcs/de.gmo
Binary file not shown.
@ -1 +1 @@
|
|||||||
d1651edd05db3ae091ca4cff9b02f7b13bc86b7b
|
e87480f17a6c70946d156af39e4c2b189a80a620
|
BIN
po/mcs/es.gmo
BIN
po/mcs/es.gmo
Binary file not shown.
@ -1 +1 @@
|
|||||||
0cbda66ec4508d25622b97072009968a56cb03d4
|
2d59fc55951ca122f9721573dc99b29f419e68f4
|
BIN
po/mcs/ja.gmo
BIN
po/mcs/ja.gmo
Binary file not shown.
@ -1 +1 @@
|
|||||||
08920bb207a693b25bcc18c57476e3b1b4acecc0
|
da5278e6aae3a989cf1ff0239c17fa754ba52af5
|
@ -6,9 +6,9 @@
|
|||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: mono 4.0.3\n"
|
"Project-Id-Version: mono 4.0.4\n"
|
||||||
"Report-Msgid-Bugs-To: http://www.mono-project.com/Bugs\n"
|
"Report-Msgid-Bugs-To: http://www.mono-project.com/Bugs\n"
|
||||||
"POT-Creation-Date: 2015-08-04 04:01-0400\n"
|
"POT-Creation-Date: 2015-08-25 18:21-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
BIN
po/mcs/pt_BR.gmo
BIN
po/mcs/pt_BR.gmo
Binary file not shown.
@ -1 +1 @@
|
|||||||
2775b413837b22ff92ad5e1825f70bdd7f111994
|
cd2f738943dff96c92171c37e6c30716428ffd26
|
@ -90,6 +90,8 @@ CreateZStream (gint compress, guchar gzip, read_write_func func, void *gchandle)
|
|||||||
result->gchandle = gchandle;
|
result->gchandle = gchandle;
|
||||||
result->compress = compress;
|
result->compress = compress;
|
||||||
result->buffer = g_new (guchar, BUFFER_SIZE);
|
result->buffer = g_new (guchar, BUFFER_SIZE);
|
||||||
|
result->stream->next_out = result->buffer;
|
||||||
|
result->stream->avail_out = BUFFER_SIZE;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,7 +150,7 @@ flush_internal (ZStream *stream, gboolean is_final)
|
|||||||
if (!stream->compress)
|
if (!stream->compress)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (!is_final) {
|
if (!is_final && stream->stream->avail_in != 0) {
|
||||||
status = deflate (stream->stream, Z_PARTIAL_FLUSH);
|
status = deflate (stream->stream, Z_PARTIAL_FLUSH);
|
||||||
if (status != Z_OK && status != Z_STREAM_END)
|
if (status != Z_OK && status != Z_STREAM_END)
|
||||||
return status;
|
return status;
|
||||||
|
@ -642,5 +642,5 @@
|
|||||||
/* #undef USE_MONO_MUTEX */
|
/* #undef USE_MONO_MUTEX */
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
#define VERSION "4.0.3"
|
#define VERSION "4.0.4"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user