Project

General

Profile

Actions

Bug #678

closed

Uninitialized structure in libcharls

Added by Marco Eichelberg over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Category:
Library
Target version:
Start date:
2016-02-09
Due date:
% Done:

0%

Estimated time:
Module:
dcmjpls
Operating System:
Compiler:

Description

Bruno Milutin <> 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 #1

Updated by Marco Eichelberg over 9 years ago

  • Status changed from New to Closed

Fixed in commit 6561c0177cd9c14414c356428d77be0bfb74fc47.

Actions

Also available in: Atom PDF