Project

General

Profile

Actions

Bug #1125

closed

Crash in DcmByteString::verify()

Added by Michael Onken about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Library
Target version:
-
Start date:
2024-06-12
Due date:
% Done:

0%

Estimated time:
Module:
dcmdata
Operating System:
Compiler:

Description

DcmByteString::verify(true /* autocorrect */) crashes when the last string is trimmed. This snippet demonstrates the issue:

 DcmCodeString bs(DCM_ReferencedFileID);
 const char str[] = "AZERTYUIOPQSDFGHJ\\AZERTYUIOPQSDFGHJ.DCM";
 bs.putString(str);
 bs.verify(OFTrue); // crashes

Thanks to Mathieu Malaterre for the report and test program.

Actions #1

Updated by Michael Onken about 1 year ago

Fixed in commit #be8c39556a49f5b8eaf0d8119354a5e1188adfae.

Actions #2

Updated by Michael Onken about 1 year ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF