Actions
Bug #678
closedUninitialized structure in libcharls
Start date:
2016-02-09
Due date:
% Done:
0%
Estimated time:
Module:
dcmjpls
Operating System:
Compiler:
Description
Bruno Milutin <bmilutin@digithurst.de> writes:
Hi guys,
I found a bug in the latest version of header.cc in libcharls
In some cases Jpeg LS files could not be displayed. The "_rect" structure in JLSInputStream is not initialized.
220 JLSInputStream::JLSInputStream(const BYTE* pdata, size_t cbyteLength) : 221 _pdata(pdata), 222 _cbyteOffset(0), 223 _cbyteLength(cbyteLength), 224 _bCompare(false), 225 _info(), 226 _rect() 227 { 228 ::memset(&_info, 0, sizeof(_info)); 229 }
220 JLSInputStream::JLSInputStream(const BYTE* pdata, size_t cbyteLength) : 221 _pdata(pdata), 222 _cbyteOffset(0), 223 _cbyteLength(cbyteLength), 224 _bCompare(false), 225 _info(), 226 _rect() 227 { 228 ::memset(&_info, 0, sizeof(_info)); 229 ::memset(&_rect, 0, sizeof(_rect)); << missing 230 }
Actions