[go: up one dir, main page]

Menu

#683 Improper error checking for pthread_cond_init(3)

SVN
open
nobody
None
5
2017-02-17
2016-05-09
Anonymous
No

vegastrike/src/networking/webcam_support.cpp:3661 compare the return value of pthread_cond_init(3) against -1 to check for error. However, the function returns non-zero on error, the return value being an error number indicating why it failed. See the man page for details.

Thanks,
Mike

Discussion

  • Anonymous

    Anonymous - 2016-05-09

    To clarify, this function can reasonably fail and its failure can cause subtle bugs under memory pressure because it dynamically allocates memory.

     

Anonymous
Anonymous

Add attachments
Cancel