https://bugs.kde.org/show_bug.cgi?id=525120
Bug ID: 525120
Summary: ASan mismatched new[]/delete[] in kimg_jp2
Classification: Frameworks and Libraries
Product: frameworks-kimageformats
Version First 6.28.0
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Target Milestone: ---
DESCRIPTION
Pointer allocated with new[], released with delete when it should be delete[]
Suspect line:
std::unique_ptr<opj_image_cmptparm_t> cmptparm(new
opj_image_cmptparm_t[ncomp]);
STEPS TO REPRODUCE
1. Build host application (qt application) with asan enabled
2. Save image using jpeg2000 plugin
3. Process aborted
OBSERVED RESULT
backtrace:
==3439136==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new []
vs operator delete) on 0x50d00191b8d0
==3439136==WARNING: invalid path to external symbolizer!
==3439136==WARNING: Failed to use and restart external symbolizer!
#0 0x57c5b0831bf6
(/dev/shm/tmp/nomacs-qtc/clang/qt6_clang-Debug/nomacs+0x126bf6) (BuildId:
5b87a0a32ce5ccc61415932527e71aa21230c064)
#1 0x73e800ce89e7
(/opt/qt/6.11/6.11.0/plugins/imageformats/kimg_jp2.so+0xc9e7) (BuildId:
10053eb12278e622ccfacc80bf85866e084b733f)
#2 0x73e800ce7d4d
(/opt/qt/6.11/6.11.0/plugins/imageformats/kimg_jp2.so+0xbd4d) (BuildId:
10053eb12278e622ccfacc80bf85866e084b733f)
#3 0x73e800ce5d6c
(/opt/qt/6.11/6.11.0/plugins/imageformats/kimg_jp2.so+0x9d6c) (BuildId:
10053eb12278e622ccfacc80bf85866e084b733f)
#4 0x73e800ce5ee8
(/opt/qt/6.11/6.11.0/plugins/imageformats/kimg_jp2.so+0x9ee8) (BuildId:
10053eb12278e622ccfacc80bf85866e084b733f)
#5 0x73e800ce1930
(/opt/qt/6.11/6.11.0/plugins/imageformats/kimg_jp2.so+0x5930) (BuildId:
10053eb12278e622ccfacc80bf85866e084b733f)
SOFTWARE/OS VERSIONS
kimageformats (6.28-6.29) 7ec1170
compiler: clang
--
You are receiving this mail because:
You are watching all bug changes.