[strongSwan-dev] Bug in starter (confread.h)

Владимир Подобаев vpodobaev at mail.ru
Fri Jan 13 13:36:35 CET 2012


Hello.

I have found a bug in starter which occurs on 64bit systems.
In confread.h file in struct starter_config the following fields are defined:
u_int    crlcheckinterval;
u_int    keep_alive;

u_int is typedefed as unsigned int, which is still 32 bit wide on 64 bit systems.
But these fields are defined as ARG_TIME in token_info. And then they are referenced as time_t which is 64 bit wide on 64 bit systems.
The bug reflects on 'cachecrls' field which overwritten by 'crlcheckinterval'.

Please, check other u_int and ARG_TIME fields. Maybe there are some more bugs.

Best regards, Vladimir


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20120113/32f4f58a/attachment.html>


More information about the Dev mailing list