xref: /netbsd-src/external/bsd/bzip2/dist/mk251.c (revision bdc22b2e01993381dcefeff2bc9b56ca75a4235c)
1 /*	$NetBSD: mk251.c,v 1.1.1.2 2012/05/07 00:41:46 wiz Exp $	*/
2 
3 
4 /* Spew out a long sequence of the byte 251.  When fed to bzip2
5    versions 1.0.0 or 1.0.1, causes it to die with internal error
6    1007 in blocksort.c.  This assertion misses an extremely rare
7    case, which is fixed in this version (1.0.2) and above.
8 */
9 
10 /* ------------------------------------------------------------------
11    This file is part of bzip2/libbzip2, a program and library for
12    lossless, block-sorting data compression.
13 
14    bzip2/libbzip2 version 1.0.6 of 6 September 2010
15    Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
16 
17    Please read the WARNING, DISCLAIMER and PATENTS sections in the
18    README file.
19 
20    This program is released under the terms of the license contained
21    in the file LICENSE.
22    ------------------------------------------------------------------ */
23 
24 
25 #include <stdio.h>
26 
27 int main ()
28 {
29    int i;
30    for (i = 0; i < 48500000 ; i++)
31      putchar(251);
32    return 0;
33 }
34