Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11387

Redundant parameter of zbx_calculate_macro_function()

    XMLWordPrintable

    Details

      Description

      The only place where zbx_calculate_macro_function() is called it is called like so:

      				ret = zbx_calculate_macro_function(*data + token.data.func_macro.func.l,
      						token.data.func_macro.func.r - token.data.func_macro.func.l + 1,
      						&replace_to);
      

      The only use of the second parameter inside zbx_calculate_macro_function() is passing it's address to zbx_function_parse() which just overwrites the addressed memory.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: