Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2704

Segfault when doing a mergedata with a json primitive

    XMLWordPrintable

    Details

      Description

      The following code segfaults (on 3.10.2):

       

      bundle agent main {
        vars:
          "data" data => "{\"env\":\"test\"}";
          "node" data => mergedata("{}", "data[env]");
      }
      

      Because it tries to merge the two arguments as json containers, and one of them is not.

       

        Attachments

          Activity

            People

            Assignee:
            a10038 jimis (Dimitrios Apostolou)
            Reporter:
            amousset Alexis Mousset
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: