byannoni / qthreads

A POSIX thread wrapper using a pool and queues of functions for C and (soon) C++
Apache License 2.0
1 stars 1 forks source link

Null pointer dereference in fqpeekia() #59

Closed byannoni closed 8 years ago

byannoni commented 8 years ago

The pointer q is dereferenced before it is checked. The simple fix is to initialize tmp to 0 instead of using the value of q immediately