Skip to content

lineStart is used uninitialised in the flatLand example #8

Open

Description

@thenickdude

The variable lineStart is declared uninitialised on line 121 of /bramstein/typeset/blob/master/examples/flatland/index.html , then later read on line 176 with no intervening write.

Activity

  1. PhilterPaper commented on Jan 21, 2021

    @PhilterPaper

    Same problem in examples/article/browser-assist.js. In examples/article/index.html, it appears to have been addressed by initializing it to 0 before the first loop. I haven't examined the code carefully, but I suspect that initializing lineStart = 0 where it is declared should do the trick (assuming the logic in browser-assist.js and flatland/index.html are using it in the same way).

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