possible bug in silcunixschedule.c (trunk)

stesie@brokenpipe.de stesie at brokenpipe.de
Tue May 8 22:48:42 CEST 2007


Hi,

I suppose there is a bug in ./lib/silcutil/unix/silcunixschedule.c 
[! SILC_THREADS] (silc_schedule_internal_init)
  * internal->wakeup_task is only initialized if [SILC_THREADS]
  * silc_schedule_internal_schedule_fd is called, which in turn
    relies on internal->wakeup_task and segfauls because of null
    pointer deref

possible solution: call silc_schedule_internal_schedule_fd on
[SILC_THREADS] only (i.e. move #ifdef down by three lines)

I'm not convinced that that's the right fix since I'm not into
libsilcutil at all.  Therefore please reconsider this :-)

cheers, 
  stesie


PS: I'm currently trying to get silc-client-1.1-beta2 to run with a
silc-server (cvs), but failing.  I Always get
`Error during key exchange with vs150090.vserver.de: Unsupported cipher'
errors +  silcfsm.c:305: silc_fsm_finish: Assertion
`silc_atomic_get_int32(&f->u.m.threads) == 0' failed

I'll give it another go tomorrow and maybe have a look what's wrong
soon.

-- 
Do not worry about your difficulties in mathematics;
I can assure you that mine are still greater.
                                  -- Albert Einstein


More information about the silc-devel mailing list