http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2043

*** shadow/2043 Wed Jun  6 17:28:36 2001
--- shadow/2043.tmp.12618       Wed Jun  6 17:28:36 2001
***************
*** 0 ****
--- 1,31 ----
+ +============================================================================+
+ | XMLFormatter unallocates arrays incorrectly                                |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2043                        Product: Xerces-C                |
+ |       Status: NEW                         Version: 1.4                     |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Critical                 OS/Version: Solaris                 |
+ |     Priority: Other                     Component: Miscellaneous           |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ In framework/XMLFormatter.cpp, arrays such as 
+ XMLByte* fAmpRef, fAposRef,
+ etc.
+ are being unallocated with "delete array"
+ instead of the correct "delete [] array".
+ 
+ Example:
+ 
+ ((XMLFormatter*)this)->fAmpRef = new XMLByte[outBytes + 4]; (line 510)
+ 
+ is unallocated in the destructor with
+ delete fAmpRef; (line 235)
+ 
+ Purify reports this as FMM (freeing mismatched memory) and I believe it may be 
+ causing some memory corruption in my application.
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to