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 17:46:00 UTC

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

    [ https://issues.apache.org/jira/browse/XERCESC-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16076967#comment-16076967 ] 

Scott Cantor commented on XERCESC-2105:
---------------------------------------

r1801083

Added autoconf and (hopefully) CMake rules for defining XERCES_SIZE_MAX and XERCES_SSIZE_MAX to assist with correct bounds checking of XMLSize_t types.

> 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