Problems porting to an ARM platform

Christoph Baumann c.baumann at ppc-ag.de
Sat Oct 31 00:25:41 EST 2009


On 30.10.2009 03:41, Peter Stuge wrote:
> Christoph Baumann wrote:
>> Here again the environment variables are accessed. The parameter 'env'
>> of 'client_session2_setup' has the value 0x58585858, which looks like
>> a rather improbable value for a pointer.
> 
> 0x58 == 'X'

That's a good point! I searched for the values 0x58585858 and 'X' in the
sources and added more trace output. At the moment it looks like the
function "initialize_options" in readconf.c is the culprit. It uses a
"memset(options, 'X', sizeof(* options));" right at the start. After
calling this function the "environ" is overwritten with 'X'. But I can't
see why this happens.




-- 

Dipl.-Phys. Christoph Baumann
Power PLUS Communications AG
Am Exerzierplatz 2
68167 Mannheim
Germany

phone: +49(621)40165-???
fax:   +49(621)40165-???
mailto://c.baumann@ppc-ag.de
http://www.ppc-ag.de

Handelsregister-Nr.: HRB 8853
Sitz und Registergericht: Mannheim
Vorstand: Ingo Schönberg (Vorsitzender), Eugen Mayer
Vorsitzender des Aufsichtsrates Univ.-Prof. Dr. Torsten Gerpott


THE INFORMATION CONTAINED IN THIS ELECTRONIC MAIL TRANSMISSION IS
CONFIDENTIAL AND MAY ALSO CONTAIN PRIVILEGED INFORMATION OR WORK
PRODUCT. THE INFORMATION IS INTENDED ONLY FOR THE USE OF THE
INDIVIDUAL OR ENTITY TO WHOM IT IS ADDRESSED. IF YOU ARE NOT THE
INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY USE,
DISSEMINATION, DISTRIBUTION OR COPYING OF THIS COMMUNICATION IS
STRICTLY PROHIBITED. IF YOU HAVE RECEIVED THIS ELECTRONIC MAIL
TRANSMISSION IN ERROR, PLEASE IMMEDIATELY ERASE AND DELETE THE
ORIGINAL MESSAGE FROM YOUR DATABASE



More information about the openssh-unix-dev mailing list