Skip to content

Fix some uninitialized values#249

Merged
pinterf merged 1 commit intoAviSynth:masterfrom
magiblot:uninitialized-values
Dec 28, 2021
Merged

Fix some uninitialized values#249
pinterf merged 1 commit intoAviSynth:masterfrom
magiblot:uninitialized-values

Conversation

@magiblot
Copy link
Copy Markdown

  • 'readlink' does not null-terminate the buffer, so zero-initialize it. We could check the result of 'readlink', but since an ifdef is involved, this solution is simpler.
  • 'ScriptEnvironment::LogLevel' and 'ScriptEnvironment::cacheMode'.
  • 'Tokenizer::type' when cloning a Tokenizer.

* 'readlink' does not null-terminate the buffer, so zero-initialize it. We could check the result of 'readlink', but since an ifdef is involved, this solution is simpler.
* 'ScriptEnvironment::LogLevel' and 'ScriptEnvironment::cacheMode'.
* 'Tokenizer::type' when cloning a Tokenizer.
@pinterf pinterf merged commit b61202a into AviSynth:master Dec 28, 2021
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.

2 participants