Compare commits

...
3 Commits
Author SHA1 Message Date
Gabriel Garcia d1578a16da Protect against overflow
https://github.com/mono/mono/pull/1682#commitcomment-10578913
2015-11-02 14:01:13 -05:00
Gabriel Garcia e6a6ef6c58 Check for buffer overrun 2015-11-02 14:01:05 -05:00
Rolf Bjarne Kvinge 6e13f7f284 Look for resgen2 where mcs is.
Fixes an issue on El Capitán where resgen2 isn't necessarily in PATH.
2015-10-28 13:27:45 -04:00
4 changed files with 6 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PA
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# Use system resgen as we don't want local System.Windows.Forms dependency
RESGEN = resgen2
RESGEN := $(dir $(shell which $(EXTERNAL_MCS)))resgen2
profile-check:
@:
+1 -1
View File
@@ -6,7 +6,7 @@ BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PA
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# Use system resgen as we don't want local System.Windows.Forms dependency
RESGEN = resgen2
RESGEN := $(dir $(shell which $(EXTERNAL_MCS)))resgen2
# nuttzing!
+1 -1
View File
@@ -4,7 +4,7 @@ BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PA
MCS = MONO_PATH="$(topdir)/class/lib/$(BOOTSTRAP_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_GMCS)
# Use system resgen as we don't want local System.Windows.Forms dependency
RESGEN = resgen2
RESGEN := $(dir $(shell which $(EXTERNAL_MCS)))resgen2
profile-check:
@:
@@ -171,6 +171,9 @@ namespace System.IO.Compression
if (!CanWrite)
throw new NotSupportedException ("Stream does not support writing");
if (src_offset > src.Length - count)
throw new ArgumentException ("Buffer too small. count/offset wrong.");
WriteInternal (src, src_offset, count);
}