[LLVMbugs] [Bug 18500] New: Bad alignment in MultiSource/Applications/ALAC/encode test

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 15 20:20:00 PST 2014


            Bug ID: 18500
           Summary: Bad alignment in MultiSource/Applications/ALAC/encode
           Product: Test Suite
           Version: trunk
          Hardware: Sun
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Nightly Tester
          Assignee: unassignedbugs at nondot.org
          Reporter: stoklund at 2pi.dk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140116/310d3e15/attachment.html>

More information about the llvm-bugs mailing list