Skip to content
Snippets Groups Projects
Commit 353bf9e6 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Compiler: Fixed NULL-deref by docode().

Call fix_type_field() before calling docode() in eval_low() to
ensure that the parsetree node types have been properly set.

This fixes a NULL-deref in docode() when compiling the line:

  string system_module_path=master()->system_module_path[-1];

(The F_ARROW node in the rvalue had a NULL type).
docode() requires that the parsetree node types h

This fixes a NULL-deref in docode() when compiling the line
(from lib/modules/Tools.pmod/Standalone.pmod/module.pmod:28):

  string system_module_path=master()->system_module_path[-1];

(The F_ARROW node in the rvalue had a NULL type).
parent 68165cde
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment