Skip to content

Wall emissivity array out of bounds #2211

@maxaehle

Description

@maxaehle

Describe the bug

The serial regression test p1rad, which runs SU2_CFD on TestCases/radiation/p1model/configp1.cfg, has a heap-buffer-overflow in CConfig::GetWall_Emissivity according to Clang's address sanitizer.

According to my printf debugging, nMarker_Emissivity is 2 and Wall_Emissivity is {"left", "right"} (matching the cfg file), but CRadP1Solver::BC_Marshak calls GetWall_Emissivity with the marker string "upper".

Bug report checklist

Desktop (please complete the following information):
Ubuntu 22.04 with Clang++ 16.0.6, MPI disabled, SU2 at current develop branch, commit f9f7a01.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions