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

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

Applied to trunk, r1801221

> Crash in PSVIWriter due to strrchr returning NULL
> -------------------------------------------------
>
>                 Key: XERCESC-2085
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2085
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Samples/Tests
>    Affects Versions: 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4
>         Environment: Debian GNU/Linux amd64
>            Reporter: Bill Blough
>            Assignee: Scott Cantor
>            Priority: Minor
>             Fix For: 3.2.0
>
>         Attachments: psviwriter_segfault.diff
>
>
> This was reported in Debian quite some time ago (I was not maintainer then).  
> I have fixed it in Debian and am forwarding my patch.
> The original Debian bug report can be found at 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715592
> PSVIWriter uses strrchr but does not properly handle a NULL return value, 
> causing strcat to attempt to dereference a NULL pointer.
> My patch adds a check that the result of strrchr (for the '/' case) is not 
> null before executing the strcat.  The case for '\\' is not affected because 
> of the "greater than" check just prior.



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

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

Reply via email to