Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-5053

const char **argv passed to TSPluginInit is not null terminated

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: Plugins
    • Labels:
      None

      Description

      See title. Typically **argv is null terminated in other systems. And who are we to question 1000 years of tradition?

      One example of an issue is that lib/ts/ink_args.cc actually relies on **argv being null terminated. Interesting segfaults occur in plugins usings the ATS argument parser.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                danobi Daniel Xu
                Reporter:
                danobi Daniel Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m