Skip to content

Bad alignment in MultiSource/Applications/ALAC/encode test #18874

Open
@stoklund

Description

@stoklund
Bugzilla Link 18500
Version trunk
OS All

Extended Description

The file ac_enc.c contains this code:

static inline void ALWAYS_INLINE dyn_jam_noDeref_large(unsigned char *out, uint32_t bitPos, uint32_t numBits, uint32_t value)
{
uint32_t * i = (uint32_t *)(out + (bitPos>>3));
uint32_t curr;
curr = *i;

In can't find any indication that "out + (bitPos>>3)" should be an aligned pointer, and this crashes with an alignment exception when running the test on SPARC.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions