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

readfile() segfaults when no size is given

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11.0, 3.10.2
    • Component/s: None
    • Labels:
      None

      Description

      It seems I forgot to add a default size to readfile. This policy will segfault cf-agent:

      bundle agent main
      {
          vars:
              "some_data" string => readfile("/some_file");
      }
      

      I will fix this asap. Also working on acceptance tests so will add some.

        Attachments

          Activity

            People

            • Assignee:
              olehermanse Ole Herman Schumacher Elgesem
              Reporter:
              olehermanse Ole Herman Schumacher Elgesem
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel