Skip to content

ascon128 misaligned load #162

@rogerbinns

Description

@rogerbinns

Use a sanitizer.

import apsw

con = apsw.Connection("testdb")
print(f"{con.pragma("cipher", "ascon128")=}")
print(f"{con.pragma("key", "hello")=}")
con.execute("create table x(y); insert into x values(randomblob(32768))")

Results

con.pragma("cipher", "ascon128")='ascon128'
con.pragma("key", "hello")='ok'
/space/mc/sqlite3/sqlite3.c:280144:16: runtime error: load of misaligned address 0x53100005184c for type 'uint64_t', which requires 8 byte alignment
0x53100005184c: note: pointer points here
  00 00 00 00 ef ed 7a 53  7b 6d 43 a3 f2 a4 9c 75  4f 91 56 27 00 00 00 00  00 00 00 00 00 00 00 00
              ^ 

The alignment error is reported ~16 times for ~3 different addresses

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions