summaryrefslogtreecommitdiff
path: root/updater/bzip2-1.0.3/mk251.c
diff options
context:
space:
mode:
authorsje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:48:34 +0000
committersje <sje@4f64403b-2f21-0410-a795-97e2b3489a10>2006-11-01 14:48:34 +0000
commitd123e0ce94bf90b2adb0a4000930eb467e293226 (patch)
treed414dea59908105c4d2f256199a610e0a69c8690 /updater/bzip2-1.0.3/mk251.c
parenta13e82647294da4add976a24335fec50d7bfe905 (diff)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@16 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'updater/bzip2-1.0.3/mk251.c')
-rw-r--r--updater/bzip2-1.0.3/mk251.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/updater/bzip2-1.0.3/mk251.c b/updater/bzip2-1.0.3/mk251.c
new file mode 100644
index 0000000..205778a
--- /dev/null
+++ b/updater/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;
+}