Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2105

Review results of compile with -Wstrict-overflow

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • None
    • None

    Description

      The code base has had a number of pointer/length overflow bugs, so I thought it would be a good idea to do a gcc build with -O2 -Wall -Wstrict-overflow=5 to flag any cases where we're doing pointer math on potentially huge offset values that might overflow. This can defeat boundary checking because of compiler optimizations.

      Attaching a build on RH7 with the libtool commands altered to output the warnings for review.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            scantor Scott Cantor
            scantor Scott Cantor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment