pbzip 1.1.6 uninitialized pointer
Bug #1034073 reported by
Paul Thomson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pbzip2 |
Fix Released
|
Undecided
|
Unassigned |
Bug 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->
...
It is then passed to the remove function, which is defined in pbzip2.h, around line 210:
int remove(
{
...
#ifdef PBZIP_DEBUG
...
if (element != NULL)
{
...
(int)
...
}
#endif
if ( (element != NULL) && !element-
...
where it is dereferenced if it is not NULL.
I believe the pointer should be initialized to NULL.
Thanks.
description: | updated |
Changed in pbzip2: | |
status: | New → Fix Released |
To post a comment you must log in.