Skip to content

Random buffer overruns #37

@Noxygen

Description

@Noxygen

I was experiencing an "Stack cookie instrumentation code detected a stack-based buffer overrun." exception on large maps and it seems the following line is responsible for this:
BrickTerrainGenerationLibrary.cpp:134 CavernProbabilitySamples[LocalZ + 4] = NextCavernProbabilitySample;
On rare occasions CavernProbabilitySamples is being addressed at index 128 there but the maximum is 127.
A simple workaround for this is to increase the array size (Line 123) by +1.

Please consider changing this if there will be a future update. Took me a couple of hours to figure this out.

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