static h in detect_attack()

Amandeep Singh aman_57 at hotmail.com
Thu May 16 12:27:34 EST 2002


Thanks Ben. The crash only happens if I close the first session. OS 
reallocates memory allocated to hash table to new session thinking that 
memory is no longer in use. But if this routine is being called from 
multiple tasks, should this allocate static memory? Do you know if there is 
any other version of this routine that is not using static h?

Thanks,
Aman


>From: Ben Lindstrom <mouring at etoh.eviladmin.org>
>To: Amandeep Singh <aman_57 at hotmail.com>
>CC: openssh-unix-dev at mindrot.org
>Subject: Re: static h in detect_attack()
>Date: Wed, 15 May 2002 16:43:47 -0500 (CDT)
>
>
>From the looks of the code the first pass initializes the hash table and
>each pass afterwards looks to see if the hash table has grown.
>
>If pSOS OS is having issues I'd question your compiler or OS for
>reallocating memory that should be tagged as used.
>
>- Ben
>
>On Wed, 15 May 2002, Amandeep Singh wrote:
>
> > Hi All,
> >
> > Did anybody ever had problems created by static h in function
> > detect_attack() in deattack.c? In our system which is based on pSOS OS, 
>this
> > static h is causing a crash, because after closing first ssh session, it
> > pSOS system is allocating same memory to another ssh session and this 
>static
> > h is overwriting that memory.
> >
> > I would appreciate if you know why h is statically allocated. 
>detect_attack
> > is used to check crc32 compensation attack.
> > Thanks,
> > Aman
> >
> > _________________________________________________________________
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> > _______________________________________________
> > openssh-unix-dev at mindrot.org mailing list
> > http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
> >
>




Amandeep Singh                                   *
Email:aman_57 at hotmail.com                       *  *
                                               *    *
Life is a mystery, unfolds it!                 * ** *
                                               *    *
                                               *    *


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com




More information about the openssh-unix-dev mailing list