Skip to content

Use of uninitialised value in libbacktrace/pecoff.c #3

@ranma42

Description

@ranma42

In coff_add(), str_size is declared as a size_t, but if there is a symbol table, only 4 bytes of it are initialised:

memcpy (&str_size, syms_view.data + syms_size, 4);

str_size should probably be declared as a uint32_t.

The bug at rust-lang/rust#28447 was caused by this.
It was fixed in the Rust local copy of libbacktrace: rust-lang/rust@55e2b7e

This was reported at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69314

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