Segment fault

박흥열 imp at airlinktek.com
Thu May 8 22:39:04 EDT 2003


Dear jouni 

Actually, I compile the hostap for ARM based cross compile enviromnent ..
So, I could not generate the core dump file. Sorry..

BTW, as I know, radius+AF8-change+AF8-server function in radius+AF8-client.c include  file 
begin, with 

        if (+ACE-oserv +AHwAfA- nserv-+AD4-shared+AF8-secret+AF8-len +ACEAPQ- oserv-+AD4-shared+AF8-secret+AF8-len +AHwAfA-
            memcmp(nserv-+AD4-shared+AF8-secret, oserv-+AD4-shared+AF8-secret, nserv-+AD4-shared+AF8-secret+AF8-len) +ACEAPQ- 0) +AHs-
	...
	+AH0-

in case oserv is NULL the +ACIAIQ-oserv condition+ACI- make it TRUE and +ACI-oserv-+AD4-shared+AF8-secret+AF8-len+ACI- is not exist in memory
but, the condition try to access oserv-+AD4-XXX  member event though oserv is NULL. So, segment fault generated..

So, I add some condition for my environment function begin..with

        // by imp....
        if(oserv +AD0APQ- NULL)
                goto byimp+ADs-

        if (+ACE-oserv +AHwAfA- nserv-+AD4-shared+AF8-secret+AF8-len +ACEAPQ- oserv-+AD4-shared+AF8-secret+AF8-len +AHwAfA-
            memcmp(nserv-+AD4-shared+AF8-secret, oserv-+AD4-shared+AF8-secret, nserv-+AD4-shared+AF8-secret+AF8-len) +ACEAPQ- 0) +AHs-
	...
	+AH0- else +AHs-
	...
	+AH0-
byimp : 
	memset(...) 
	...

Thanks for your attention...





More information about the HostAP mailing list