-
- Downloads
initialize the blocked context pointer to prevent undefined unblock
Not initializing blockedContext means its original value is undefined and probably some random stack value != nullptr. If the first put() is executed before the first blocking get(), put() will read a random value from blockedContext and will call unblock with this random context pointer leading to execution of random memory.
Please register or sign in to comment