Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-507

Safety improvements for XalanVector::insert()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: CurrentCVS
    • Fix Version/s: CurrentCVS
    • Component/s: XalanC
    • Labels:
      None

      Description

      XalanVector::insert() should assert that the supplied iterator is legal.

      Also, there is an overload for non-const iterators which is not necessary, since we use pointers and pointer-to-type converts trivially to pointer-to-const-type.

      A patch is attached. Committers, can you please review?

        Attachments

        1. patch.txt
          1 kB
          David N Bertoni

          Activity

            People

            • Assignee:
              dbertoni David N Bertoni
              Reporter:
              dbertoni David N Bertoni
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: