Skip to content

Suspicious memory access #34

Description

@xavierh

byte partNumber = reader.ReadByte();
parts = new ItemValue[4];
if (partNumber != 0) {
for (int i = 0; i < (int)partNumber; i++) {

Bare in mind that I do not know C# at all.
parts array is initialized with a size of 4 but can potentially go beyond 4

(I was having a look at the code to implement new feature in https://github.com/nicolas-f/7DTD-leaflet)

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