[Mono-bugs] [Bug 75018][Wis] Changed - Report 'file' is a binary
file instead of a source code file
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat May 21 13:08:59 EDT 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer at users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=75018
--- shadow/75018 2005-05-21 12:54:34.000000000 -0400
+++ shadow/75018.tmp.29053 2005-05-21 13:08:59.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 75018
Product: Mono: Compilers
Version: 1.1
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Wishlist
Component: C#
AssignedTo: mono-bugs at ximian.com
ReportedBy: bmaurer at users.sf.net
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -32,6 +32,17 @@
Rather than
mcs foo.cs
Not sure how this would be detected though.
+
+------- Additional Comments From bmaurer at users.sf.net 2005-05-21 13:08 -------
+One really easy way to detect this is to read the first N bytes and
+see if any of them contain the null byte. Assuming the file is random,
+if we read the first 4 kb of the file, the chance that it would escape
+this test is
+
+(255/256)^(4*1024)=0.000000109
+
+It also looks like all .exe files will have a \0 in their first few
+bytes, so they would all be detected.
More information about the mono-bugs
mailing list