libid3tag truncates strings on 64 bit systems

Bug #1094794 reported by Brian Havard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libid3tag (Ubuntu)
New
Undecided
Unassigned

Bug Description

In id3tag.h, the type id3_ucs4_t is typedef'd as an unsigned long. Clearly this type needs to be a 32 bit unsigned int but an unsigned long is 64 bit on a 64 bit system. Changing the typedef to read

typedef uint32_t id3_ucs4_t;

and #including <stdint.h> fixes the problem.

Without this fix, strings returned by id3_field_getstrings() are only ever 1 character long.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.