Actions
Bug #5079
closedswf: coverity warning
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 5.0, Needs backport to 6.0
Description
** CID 1499365: (UNINIT) /src/util-file-swf-decompression.c: 98 in FileSwfZlibDecompression() /src/util-file-swf-decompression.c: 98 in FileSwfZlibDecompression() ________________________________________________________________________________________________________ *** CID 1499365: (UNINIT) /src/util-file-swf-decompression.c: 98 in FileSwfZlibDecompression() 92 infstream.avail_in = (uInt)compressed_data_len; 93 infstream.next_in = (Bytef *)compressed_data; 94 infstream.avail_out = (uInt)decompressed_data_len; 95 infstream.next_out = (Bytef *)decompressed_data; 96 97 inflateInit(&infstream); >>> CID 1499365: (UNINIT) >>> Using uninitialized value "infstream.total_out" when calling "inflate". 98 int result = inflate(&infstream, Z_NO_FLUSH); 99 switch(result) { 100 case Z_STREAM_END: 101 break; 102 case Z_OK: 103 break; /src/util-file-swf-decompression.c: 98 in FileSwfZlibDecompression() 92 infstream.avail_in = (uInt)compressed_data_len; 93 infstream.next_in = (Bytef *)compressed_data; 94 infstream.avail_out = (uInt)decompressed_data_len; 95 infstream.next_out = (Bytef *)decompressed_data; 96 97 inflateInit(&infstream); >>> CID 1499365: (UNINIT) >>> Using uninitialized value "infstream.total_out" when calling "inflate". 98 int result = inflate(&infstream, Z_NO_FLUSH); 99 switch(result) { 100 case Z_STREAM_END: 101 break; 102 case Z_OK: 103 break;
** CID 1499363: Error handling issues (CHECKED_RETURN) /src/util-file-swf-decompression.c: 97 in FileSwfZlibDecompression() ________________________________________________________________________________________________________ *** CID 1499363: Error handling issues (CHECKED_RETURN) /src/util-file-swf-decompression.c: 97 in FileSwfZlibDecompression() 91 92 infstream.avail_in = (uInt)compressed_data_len; 93 infstream.next_in = (Bytef *)compressed_data; 94 infstream.avail_out = (uInt)decompressed_data_len; 95 infstream.next_out = (Bytef *)decompressed_data; 96 >>> CID 1499363: Error handling issues (CHECKED_RETURN) >>> Calling "inflateInit_(&infstream, "1.2.11", 112)" without checking return value. This library function may fail and return an error code. 97 inflateInit(&infstream); 98 int result = inflate(&infstream, Z_NO_FLUSH); 99 switch(result) { 100 case Z_STREAM_END: 101 break; 102 case Z_OK:
Updated by Victor Julien almost 3 years ago
- Status changed from In Progress to Closed
Updated by Jeff Lucovsky almost 3 years ago
- Copied to Bug #5108: swf: coverity warning added
Updated by Jeff Lucovsky almost 3 years ago
- Copied to Bug #5109: swf: coverity warning added
Actions