Share

Embedded Unit

Tracker: Bugs

5 segmentation fault on x86_64 - ID: 2888216
Last Update: Tracker Item Submitted ( nobody )

there is a bug in embUnit/stdImpl.c - code assumes unsigned long is max 32
bit long, which is not true in general. C/C++ specification says only that
sizeof(int)<=sizeof(long) - nothing more. if you expect unsigned type,
32-bits-long use uint32_t instead (#include <stdint.h>).

fix for this requires addition of 'stdint.h' header and changing 'unisgned
long' to 'unit32_t' in embUnit/stdImpl.c in functions _xtoa() (line 113)
and stdimpl_itoa() (lines 140 and 142).


Nobody/Anonymous ( nobody ) - 2009-10-28 19:51

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.