Hi,

commit 2e36ac0ecefb45ff4b741a9afe4d33a40025e346
Author: Paul Alfille <paul.alfi...@gmail.com>
Date:   Tue Aug 26 15:23:36 2014 -0400

    Coverity changes
    
    Not sure if these are really issues, but making changes for Coverity
    scanning error.


The above commit introduces a Coverity induced bug!

in file module/owlib/src/c/ow_net_server.c memory cleanup belongs to the child thread (routine ProcessAcceptSocket) and not to the calling routine (ProcessListenSocket).

In fact pthread_create returns before processing in ProcessAcceptSocket is ended, so struct asd must not be freed in the calling routine.

A patch that undoes the modification is enclosed.

Stefano

Attachment: 0001-correcting-bug-for-cleanup-routines-in-ow_net_server.patch
Description: Binary data

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to