Skip to content

Bad alignment in MultiSource/Benchmarks/PAQ8p #18876

Open
@stoklund

Description

@stoklund
Bugzilla Link 18502
Version trunk
OS All

Extended Description

The template instantiation BH<4>::operator[] in paq8p.cpp contains:

static U8 tmp[B]; // element to move to front
if (j==M) {
--j;
memset(tmp, 0, B);
(U16)tmp=chk;
if (M>2 && t[(i+j)*B+2]>t[(i+j-1)*B+2]) --j;
}

The SPARC linker is evil and doesn't align the global 'static U8 tmp[B]', so the U16 store is unaligned and crashes.

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