Project

General

Profile

Actions

Bug #1070

closed

missing check of fclose() return value can lead to defective DICOM files

Added by Marco Eichelberg over 2 years ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
Library
Target version:
Start date:
2023-03-24
Due date:
% Done:

100%

Estimated time:
4:00 h
Module:
Operating System:
Compiler:

Description

DCMTK does not check the return value of fclose() in most of the calls of this function.
However, fclose() can fail when a full filesystem causes the flushing of the file buffer to fail.
DCMTK does not detect this, does not report an error or warning, but the result is a defective file.

Reported 2023-03-23 by Christian Wetzel <>.

Actions #1

Updated by Jörg Riesmeier about 1 year ago

  • Target version set to 3.6.9
Actions #2

Updated by Marco Eichelberg 11 months ago

  • Status changed from New to Closed
  • Assignee set to Marco Eichelberg
  • % Done changed from 0 to 100
  • Estimated time set to 4:00 h

Closed by commit #a6e7f3452 for the public modules and #a006e70a6 for the private modules.

Actions

Also available in: Atom PDF