Skip to content

Potential unaligned memory access causes bus error on ARM #10782

@gengliqi

Description

@gengliqi

Bug Report

const size_t string_size = *reinterpret_cast<const size_t *>(pos);

size_t array_size = *reinterpret_cast<const size_t *>(pos);

const size_t string_size = *reinterpret_cast<const size_t *>(pos);

These raw pointer reads may dereference non-aligned addresses, which is unsafe on strict-alignment ARM systems and can cause bus errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.affects-9.0This bug affects the 9.0.x versions.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions