r92007 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92006‎ | r92007 | r92008 >
Date:21:02, 12 July 2011
Author:ariel
Status:ok
Tags:
Comment:
need initialized output buffers in find_first_bz2_block since it attempts a decompress
Modified paths:
  • /branches/ariel/xmldumps-backup/mwbzutils/mwbzlib.c (modified) (history)

Diff [purge]

Index: branches/ariel/xmldumps-backup/mwbzutils/mwbzlib.c
@@ -626,6 +626,7 @@
627627 off_t find_first_bz2_block_from_offset(bz_info_t *bfile, int fin, off_t position, int direction) {
628628 off_t seekresult;
629629 int res;
 630+ unsigned char buffout[5000];
630631
631632 bfile->bufin_size = BUFINSIZE;
632633 bfile->marker = init_marker();
@@ -635,6 +636,8 @@
636637 bfile->bytes_written = 0;
637638 bfile->eof = 0;
638639 bfile->bits_shifted = -1;
 640+ bfile->bufout = buffout;
 641+ bfile->bufout_size = 5000;
639642
640643 bfile->file_size = get_file_size(fin);
641644

Status & tagging log