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

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: None
    • Labels:
      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

            People

            • Assignee:
              scantor Scott Cantor
              Reporter:
              scantor Scott Cantor

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment