Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash reading level (TLZ) file #637

Merged
merged 1 commit into from
Jul 14, 2016
Merged

Fix crash reading level (TLZ) file #637

merged 1 commit into from
Jul 14, 2016

Conversation

ideasman42
Copy link
Collaborator

@ideasman42 ideasman42 commented Jul 14, 2016

  • double fclose call on the same file/
    (readVersion closed the file, however this is already closed when the class is freed)
    The error was that setting the file pointer to NULL only changed the local value.
    It could be passed as a reference or pointer to pointer, however since its closed when the class is freed, not sure its worth extra hassles.
  • buffer overrun reading file magic which isn't \0 terminated.
    use memcmp instead.

- double fclose call
  (readVersion closed the file, however this is already closed when the class is freed)

- buffer overrun reading a char pointer which isn't NULL terminated.
  use memcmp instead.
@ideasman42
Copy link
Collaborator Author

ideasman42 commented Jul 14, 2016

Accidentally pushed the branch to this repo, since removed but seems to have confused travis-ci.

@skitaoka
Copy link
Member

Jenkins, test this.

@skitaoka
Copy link
Member

OK. LGTM

@skitaoka skitaoka merged commit 4e9ecfd into opentoonz:master Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants