Skip to content

BUG: Potential uninitialised variables at cleanup. #33

Description

@mhoeben

In the function wfc__create_tiles_overlapping, the tiles and base_tile_cnt variables may be used uninitialised during cleanup if the code jumps early to the CLEANUP label from lines 1322, 1336 and 1340. This will cause undefined behavior at best and a segmentation fault at worst. It is easily fixed by moving the definition of these variable with default values before the earliest point where you goto the CLEANUP label.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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