Bug in pj_generate_unique_string() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Benny,

I got this message from Thomas:

<snip>
Hi,

I found a bug in the file "os_core_win32.c"

The function pj_generate_unique_string() is called before initiializing 
mutex but needs access to it.
You should change it this way:



--------------------------------------------------------------------------------


/* Initialize critical section. */

if ((rc=init_mutex(&critical_section_mutex, "pj%p")) != PJ_SUCCESS)
    return rc;

/* Init random seed. */
/* Or probably not. Let application in charge of this */
/* pj_srand( GetCurrentProcessId() ); */
/* Startup GUID. */

guid.ptr = dummy_guid;
pj_generate_unique_string( &guid );

</snip>

Nearly the latest SVN version.

Regards









[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux