Lennart B�ng <[EMAIL PROTECTED]>:

> I am in the process of porting all the apps/*.c to target
> in order to get the whole 'openssl' program running
> on OSE RTOS on a powerpc.
> 
> The problem is that the programs use global variables
> and does not bother to clear them and the simple
> shell I am using on the RTOS does NOT clear
> the data before a program runs. Hence after one
> run of an openssl program, the variables have
> the same value as the last time the program ran... ack :(
[...]
> So my question is. Do you want a huge patch for all the apps that properly
> restores statically initialized global data and clears global bss data after
> a run and/or will you enter that patch if you get it?

I don't think so.  All those variables have their proper values when
the program is started according to the C standard.  If your C
environment works otherwise, then it's obviously non-standard -- but
maybe there's some switch to enable an ANSI C mode that avoids this
peculiar behaviour (which, for efficiency's sake, surely makes sense
for certain programs that are especially written with that environment
in mind, but is not appropriate for most normal C programs)?
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to