summaryrefslogtreecommitdiff
path: root/attache/bzip2-1.0.3/mk251.c
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:28:18 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:28:18 +0000
commit31d3a6408d045eadaff094d4c11bf017817743d7 (patch)
tree61f75240490677d57477fea63d6f771bf3d754d9 /attache/bzip2-1.0.3/mk251.c
parent31654bd814b4e5fdc1b68807e341c623d74f357d (diff)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@4 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'attache/bzip2-1.0.3/mk251.c')
-rw-r--r--attache/bzip2-1.0.3/mk251.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/attache/bzip2-1.0.3/mk251.c b/attache/bzip2-1.0.3/mk251.c
new file mode 100644
index 0000000..205778a
--- /dev/null
+++ b/attache/bzip2-1.0.3/mk251.c
@@ -0,0 +1,16 @@
+
+/* Spew out a long sequence of the byte 251. When fed to bzip2
+ versions 1.0.0 or 1.0.1, causes it to die with internal error
+ 1007 in blocksort.c. This assertion misses an extremely rare
+ case, which is fixed in this version (1.0.2) and above.
+*/
+
+#include <stdio.h>
+
+int main ()
+{
+ int i;
+ for (i = 0; i < 48500000 ; i++)
+ putchar(251);
+ return 0;
+}