Activity log for bug #1034073

Date Who What changed Old value New value Message
2012-08-07 17:21:46 Paul Thomson bug added bug
2012-08-07 17:22:31 Paul Thomson description In pbzip2.cpp, the fileData pointer below is not initialized: void *consumer (void *q) { queue *fifo; // char *FileData = NULL; outBuff *fileData; ... if (!fifo->empty && (fifo->remove(fileData) == 1)) ... It is then passed to the remove function, in pbzip2.h, around line 210: int remove(ElementTypePtr & element) { ... #ifdef PBZIP_DEBUG ... if (element != NULL) { ... (int)element->isLastInSequence, ... ... } #endif if ( (element != NULL) && !element->isLastInSequence ) ... where it is dereferenced if it is not NULL. I believe the pointer should be initialized to NULL. Thanks. In pbzip2.cpp, the fileData pointer below is not initialized: void *consumer (void *q) {  queue *fifo;  // char *FileData = NULL;  outBuff *fileData; ... if (!fifo->empty && (fifo->remove(fileData) == 1)) ... It is then passed to the remove function, which is defined in pbzip2.h, around line 210:  int remove(ElementTypePtr & element)  {   ...   #ifdef PBZIP_DEBUG   ...   if (element != NULL)   {    ...     (int)element->isLastInSequence, ...    ...   }   #endif   if ( (element != NULL) && !element->isLastInSequence ) ... where it is dereferenced if it is not NULL. I believe the pointer should be initialized to NULL. Thanks.
2013-03-23 17:24:38 bwzhou bug added subscriber bwzhou
2015-12-17 23:12:50 Yavor Nikolov pbzip2: status New Fix Released