Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.34/00, 6.00.00
    • Fix Version/s: 6.00.00
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      Error handling when reading ROOT files

    • Bug / Feature:
      Suggestion
    • Severity:
      3 - Normal
    • Development:

      Description

      In TKey.cxx. line 776

      http://root.cern.ch/root/html/src/TKey.cxx.html#776

      One could potentially make arithmetic with NULL pointer, which is not good.
      I propose to check pobj before performing arithmetic.

      if (!pobj)

      { Error("ReadObj", "Cannot create new object of class %s", fClassName.Data()); return 0; }

      TObject* tobj = (TObject*)(pobj+baseOffset);

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              slinev Serguei Linev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                PlannedEnd:
                PlannedStart:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified