[jira] [Closed] (XERCESC-2214) Wrong delete[] in MemBufInputSource dtor

"Scott Cantor (Jira)" <[email protected]>
Newsgroups gmane.text.xml.xerces-c.devel
Message-ID <[email protected]>
     [ https://issues.apache.org/jira/browse/XERCESC-2214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor closed XERCESC-2214.
---------------------------------

> Wrong delete[] in MemBufInputSource dtor
> ----------------------------------------
>
>                 Key: XERCESC-2214
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2214
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Miscellaneous
>    Affects Versions: 3.2.3
>            Reporter: Tobias Elbrandt
>            Assignee: Scott Cantor
>            Priority: Minor
>             Fix For: 4.0.0, 3.2.4
>
>
> Our address sanatizer found a mismatching delete[] for memory allocated via {{new}} (not {{new[]}}) in the destructor of {color:#000000}MemBufInputSource{color}.
> I looked at the code to find places where {{new[]}} is used which would make it necessary to use {{delete[]}} instead of {{delete}} - without success. It seems to me that using {{delete[]}} is simply wrong here.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.