You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Scott Cantor (JIRA)" <xe...@xml.apache.org> on 2017/07/06 19:49:00 UTC

[jira] [Resolved] (XERCESC-2105) Review results of compile with -Wstrict-overflow

     [ https://issues.apache.org/jira/browse/XERCESC-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor resolved XERCESC-2105.
-----------------------------------
    Resolution: Fixed

> Review results of compile with -Wstrict-overflow
> ------------------------------------------------
>
>                 Key: XERCESC-2105
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2105
>             Project: Xerces-C++
>          Issue Type: Task
>            Reporter: Scott Cantor
>            Assignee: Scott Cantor
>             Fix For: 3.2.0
>
>         Attachments: xerces-build.txt
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org