mk251.c 919 B

12345678910111213141516171819202122232425262728293031
  1. /* Spew out a long sequence of the byte 251. When fed to bzip2
  2. versions 1.0.0 or 1.0.1, causes it to die with internal error
  3. 1007 in blocksort.c. This assertion misses an extremely rare
  4. case, which is fixed in this version (1.0.2) and above.
  5. */
  6. /* ------------------------------------------------------------------
  7. This file is part of bzip2/libbzip2, a program and library for
  8. lossless, block-sorting data compression.
  9. bzip2/libbzip2 version 1.0.6 of 6 September 2010
  10. Copyright (C) 1996-2010 Julian Seward <jseward@bzip.org>
  11. Please read the WARNING, DISCLAIMER and PATENTS sections in the
  12. README file.
  13. This program is released under the terms of the license contained
  14. in the file LICENSE.
  15. ------------------------------------------------------------------ */
  16. #include <stdio.h>
  17. int main ()
  18. {
  19. int i;
  20. for (i = 0; i < 48500000 ; i++)
  21. putchar(251);
  22. return 0;
  23. }