Opened 6 years ago

Closed 6 years ago

#10370 closed bug (fixed)

[translators/psd] PSDLoader.cpp: Mismatching allocation and deallocation

Reported by: mt Owned by: 3dEyes
Priority: normal Milestone: R1
Component: Add-Ons/Translators/PSD Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

In PSDLoader::Decode(), variable fStreamBuffer is allocated by new[], but deallocated by delete. Please see attached report.

Attachments (3)

0001-Fix-mismatching-allocation-and-deallocation.patch (927 bytes ) - added by mt 6 years ago.
Patch
report-88dff4.html (66.7 KB ) - added by mt 6 years ago.
Report by Clang Static Analyzer
0006-Fix-mismatching-allocation-and-deallocation.patch (1.3 KB ) - added by mt 6 years ago.
Patch

Download all attachments as: .zip

Change History (7)

comment:1 by mt, 6 years ago

Has a Patch: set

by mt, 6 years ago

Attachment: report-88dff4.html added

Report by Clang Static Analyzer

comment:2 by mt, 6 years ago

More new[]/delete mismatching for variable lineData and colorData (both pointed by cppcheck) and imageData is added.

comment:3 by anevilyak, 6 years ago

Component: Add-Ons/TranslatorsAdd-Ons/Translators/PSD
Keywords: PSDTranslator removed
Owner: changed from nobody to 3dEyes

comment:4 by 3dEyes, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.