#3 cp_pooled_thread_create: access to unallocated mem

closed-fixed
nobody
None
5
2006-05-26
2006-05-26
smartyxt
No

Found a bug in cp_pooled_thread_create() at the
beginning of that function
the element worker is accessed before verifying that
calloc succeeded,
potentially resulting in a Segmentation fault.

Martin

Discussion

  • Ilan Aelion
    Ilan Aelion
    2006-05-26

    Logged In: YES
    user_id=1301624

    Hi Martin,

    Thanks for pointing this out. I've committed a change to cvs
    which you could check out from cprops.cvs.sf.net. I'm also
    attaching a patch here.

    - Ilan

     
  • Ilan Aelion
    Ilan Aelion
    2006-05-26

    patch for allocation checking in cp_pooled_thread_create() in version 0.1.2

     
    Attachments
  • Ilan Aelion
    Ilan Aelion
    2006-05-26

    • status: open --> closed-fixed