[Debian-med-packaging] Bug#716769: dcmtk: Conditional jump or move depends on uninitialised value(s)

Jörg Riesmeier debian at riesmeier.de
Fri Jul 12 16:08:08 UTC 2013


Hi Mathieu!

Thank you for the report. This issue has been introduced with this commit 
(after DCMTK 3.6.0 release)

  http://git.dcmtk.org/web?p=dcmtk.git;a=commit;h=17872db6c2fef53ba4a243fd7425934ed887ee9f

and was just fixed by this one

  http://git.dcmtk.org/web?p=dcmtk.git;a=commit;h=6fe9adc72bcb9a1ac9202efa9e8f4065ebf40220

Regards,
Jörg

> Package: dcmtk
> Version: 3.6.1~20121102-3
> Severity: important
> 
> For some reason I am seeing some issue with valgrind [*]. It would be nice
> if someone could have a look at them.
> 
> Thanks
> 
> [*]
> $ valgrind movescu -v -d -xi  www.dicomserver.co.uk 11112   -S -k 8,52=STUDY
>  -k 20,d=1.2.840.113704.1.111.4808.1277955896.1 +P 11112 ==8786== Memcheck,
> a memory error detector
> ==8786== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
> ==8786== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for
> copyright info ==8786== Command: movescu -v -d -xi www.dicomserver.co.uk
> 11112 -S -k 8,52=STUDY -k 20,d=1.2.840.113704.1.111.4808.1277955896.1 +P
> 11112 ==8786==
> D: DcmDataDictionary: Loading file: /usr/share/dcmtk/dicom.dic
> D: DcmDataDictionary: Loading file: /usr/share/dcmtk/private.dic
> D: $dcmtk: movescu v3.6.1 2012-11-02 $
> D:
> D: Request Parameters:
> D: ====================== BEGIN A-ASSOCIATE-RQ =====================
> D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.1
> D: Our Implementation Version Name:   OFFIS_DCMTK_361
> D: Their Implementation Class UID:
> D: Their Implementation Version Name:
> D: Application Context Name:    1.2.840.10008.3.1.1.1
> D: Calling Application Name:    XYZISPDC
> D: Called Application Name:     ANY-SCP
> D: Responding Application Name: resp. AP Title
> D: Our Max PDU Receive Size:    16384
> D: Their Max PDU Receive Size:  0
> D: Presentation Contexts:
> D:   Context ID:        1 (Proposed)
> D:     Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
> D:     Proposed SCP/SCU Role: Default
> D:     Proposed Transfer Syntax(es):
> D:       =LittleEndianImplicit
> D:   Context ID:        3 (Proposed)
> D:     Abstract Syntax: =MOVEStudyRootQueryRetrieveInformationModel
> D:     Proposed SCP/SCU Role: Default
> D:     Proposed Transfer Syntax(es):
> D:       =LittleEndianImplicit
> D: Requested Extended Negotiation: none
> D: Accepted Extended Negotiation:  none
> D: Requested User Identity Negotiation: none
> D: User Identity Negotiation Response:  none
> D: ======================= END A-ASSOCIATE-RQ ======================
> I: Requesting Association
> D: setting network send timeout to 60 seconds
> D: setting network receive timeout to 60 seconds
> D: Constructing Associate RQ PDU
> D: PDU Type: Associate Accept, PDU Length: 224 + 6 bytes PDU header
> D:   02  00  00  00  00  e0  00  01  00  00  41  4e  59  2d  53  43
> D:   50  20  20  20  20  20  20  20  20  20  4c  49  52  49  53  50
> D:   44  43  20  20  20  20  20  20  20  20  00  00  00  00  00  00
> D:   00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00
> D:   00  00  00  00  00  00  00  00  00  00  10  00  00  15  31  2e
> D:   32  2e  38  34  30  2e  31  30  30  30  38  2e  33  2e  31  2e
> D:   31  2e  31  21  00  00  19  01  00  00  00  40  00  00  11  31
> D:   2e  32  2e  38  34  30  2e  31  30  30  30  38  2e  31  2e  32
> D:   21  00  00  19  03  00  00  00  40  00  00  11  31  2e  32  2e
> D:   38  34  30  2e  31  30  30  30  38  2e  31  2e  32  50  00  00
> D:   45  51  00  00  04  00  01  00  00  52  00  00  25  31  2e  32
> D:   2e  38  32  36  2e  30  2e  31  2e  33  36  38  30  30  34  33
> D:   2e  31  2e  32  2e  31  30  30  2e  35  2e  36  2e  33  2e  31
> D:   36  36  55  00  00  10  44  69  63  6f  6d  4f  62  6a  65  63
> D:   74  73  2e  4e  45  54
> D: Parsing an A-ASSOCIATE PDU
> D: Association Parameters Negotiated:
> D: ====================== BEGIN A-ASSOCIATE-AC =====================
> D: Our Implementation Class UID:      1.2.276.0.7230010.3.0.3.6.1
> D: Our Implementation Version Name:   OFFIS_DCMTK_361
> D: Their Implementation Class UID:    1.2.826.0.1.3680043.1.2.100.5.6.3.166
> D: Their Implementation Version Name: DicomObjects.NET
> D: Application Context Name:    1.2.840.10008.3.1.1.1
> D: Calling Application Name:    XYZISPDC
> D: Called Application Name:     ANY-SCP
> D: Responding Application Name: ANY-SCP
> D: Our Max PDU Receive Size:    16384
> D: Their Max PDU Receive Size:  65536
> D: Presentation Contexts:
> D:   Context ID:        1 (Accepted)
> D:     Abstract Syntax: =FINDStudyRootQueryRetrieveInformationModel
> D:     Proposed SCP/SCU Role: Default
> D:     Accepted SCP/SCU Role: Default
> D:     Accepted Transfer Syntax: =LittleEndianImplicit
> D:   Context ID:        3 (Accepted)
> D:     Abstract Syntax: =MOVEStudyRootQueryRetrieveInformationModel
> D:     Proposed SCP/SCU Role: Default
> D:     Accepted SCP/SCU Role: Default
> D:     Accepted Transfer Syntax: =LittleEndianImplicit
> D: Requested Extended Negotiation: none
> D: Accepted Extended Negotiation:  none
> D: Requested User Identity Negotiation: none
> D: User Identity Negotiation Response:  none
> D: ======================= END A-ASSOCIATE-AC ======================
> I: Association Accepted (Max Send PDV: 65524)
> I: Sending Move Request
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25D9C: strcmp (mc_replace_strmem.c:426)
> ==8786==    by 0x525A916: dcmFindNameOfUID(char const*, char const*)
> (dcuid.cc:1165) ==8786==    by 0x4E6417D: DIMSE_dumpMessage(OFString&,
> T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*, unsigned char)
> (dimdump.cc:564) ==8786==    by 0x408C00: moveSCU(T_ASC_Association*, char
> const*) (movescu.cc:1573) ==8786==    by 0x409632:
> cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==    by
> 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25DC7: strcmp (mc_replace_strmem.c:426)
> ==8786==    by 0x525A916: dcmFindNameOfUID(char const*, char const*)
> (dcuid.cc:1165) ==8786==    by 0x4E6417D: DIMSE_dumpMessage(OFString&,
> T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*, unsigned char)
> (dimdump.cc:564) ==8786==    by 0x408C00: moveSCU(T_ASC_Association*, char
> const*) (movescu.cc:1573) ==8786==    by 0x409632:
> cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==    by
> 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x525A919: dcmFindNameOfUID(char const*, char const*)
> (dcuid.cc:1165) ==8786==    by 0x4E6417D: DIMSE_dumpMessage(OFString&,
> T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*, unsigned char)
> (dimdump.cc:564) ==8786==    by 0x408C00: moveSCU(T_ASC_Association*, char
> const*) (movescu.cc:1573) ==8786==    by 0x409632:
> cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==    by
> 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x5EC374A: std::ostreambuf_iterator<char,
> std::char_traits<char> > std::num_put<char, std::ostreambuf_iterator<char,
> std::char_traits<char> > >::_M_insert_int<unsigned
> long>(std::ostreambuf_iterator<char, std::char_traits<char> >,
> std::ios_base&, char, unsigned long) const (locale_facets.tcc:855) ==8786==
>    by 0x5EC0318: std::num_put<char, std::ostreambuf_iterator<char,
> std::char_traits<char> > >::do_put(std::ostreambuf_iterator<char,
> std::char_traits<char> >, std::ios_base&, char, unsigned long) const
> (locale_facets.h:2471) ==8786==    by 0x5EBF866: std::num_put<char,
> std::ostreambuf_iterator<char, std::char_traits<char> >
> >::put(std::ostreambuf_iterator<char, std::char_traits<char> >,
> std::ios_base&, char, unsigned long) const (locale_facets.h:2332) ==8786== 
>   by 0x5ECF45B: std::ostream& std::ostream::_M_insert<unsigned
> long>(unsigned long) (ostream.tcc:73) ==8786==    by 0x4E641EC:
> DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*,
> unsigned char) (ostream:184) ==8786==    by 0x408C00:
> moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Use of uninitialised value of size 8
> ==8786==    at 0x5ECBB7B: int std::__int_to_char<char, unsigned long>(char*,
> unsigned long, char const*, std::_Ios_Fmtflags, bool)
> (locale_facets.tcc:783) ==8786==    by 0x5EC378D:
> std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char,
> std::ostreambuf_iterator<char, std::char_traits<char> >
> >::_M_insert_int<unsigned long>(std::ostreambuf_iterator<char,
> std::char_traits<char> >, std::ios_base&, char, unsigned long) const
> (locale_facets.tcc:856) ==8786==    by 0x5EC0318: std::num_put<char,
> std::ostreambuf_iterator<char, std::char_traits<char> >
> >::do_put(std::ostreambuf_iterator<char, std::char_traits<char> >,
> std::ios_base&, char, unsigned long) const (locale_facets.h:2471) ==8786== 
>   by 0x5EBF866: std::num_put<char, std::ostreambuf_iterator<char,
> std::char_traits<char> > >::put(std::ostreambuf_iterator<char,
> std::char_traits<char> >, std::ios_base&, char, unsigned long) const
> (locale_facets.h:2332) ==8786==    by 0x5ECF45B: std::ostream&
> std::ostream::_M_insert<unsigned long>(unsigned long) (ostream.tcc:73)
> ==8786==    by 0x4E641EC: DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&,
> DIMSE_direction, DcmItem*, unsigned char) (ostream:184) ==8786==    by
> 0x408C00: moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573)
> ==8786==    by 0x409632: cmove(T_ASC_Association*, char const*)
> (movescu.cc:1628) ==8786==    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x5ECBBB2: int std::__int_to_char<char, unsigned long>(char*,
> unsigned long, char const*, std::_Ios_Fmtflags, bool)
> (locale_facets.tcc:781) ==8786==    by 0x5EC378D:
> std::ostreambuf_iterator<char, std::char_traits<char> > std::num_put<char,
> std::ostreambuf_iterator<char, std::char_traits<char> >
> >::_M_insert_int<unsigned long>(std::ostreambuf_iterator<char,
> std::char_traits<char> >, std::ios_base&, char, unsigned long) const
> (locale_facets.tcc:856) ==8786==    by 0x5EC0318: std::num_put<char,
> std::ostreambuf_iterator<char, std::char_traits<char> >
> >::do_put(std::ostreambuf_iterator<char, std::char_traits<char> >,
> std::ios_base&, char, unsigned long) const (locale_facets.h:2471) ==8786== 
>   by 0x5EBF866: std::num_put<char, std::ostreambuf_iterator<char,
> std::char_traits<char> > >::put(std::ostreambuf_iterator<char,
> std::char_traits<char> >, std::ios_base&, char, unsigned long) const
> (locale_facets.h:2332) ==8786==    by 0x5ECF45B: std::ostream&
> std::ostream::_M_insert<unsigned long>(unsigned long) (ostream.tcc:73)
> ==8786==    by 0x4E641EC: DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&,
> DIMSE_direction, DcmItem*, unsigned char) (ostream:184) ==8786==    by
> 0x408C00: moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573)
> ==8786==    by 0x409632: cmove(T_ASC_Association*, char const*)
> (movescu.cc:1628) ==8786==    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25819: __GI_strlen (mc_replace_strmem.c:284)
> ==8786==    by 0x5EB7770: std::char_traits<char>::length(char const*)
> (char_traits.h:263) ==8786==    by 0x5ECED05: std::basic_ostream<char,
> std::char_traits<char> >& std::operator<< <std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
> (ostream:510) ==8786==    by 0x4E6420E: DIMSE_dumpMessage(OFString&,
> T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*, unsigned char)
> (dimdump.cc:575) ==8786==    by 0x408C00: moveSCU(T_ASC_Association*, char
> const*) (movescu.cc:1573) ==8786==    by 0x409632:
> cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==    by
> 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25828: __GI_strlen (mc_replace_strmem.c:284)
> ==8786==    by 0x5EB7770: std::char_traits<char>::length(char const*)
> (char_traits.h:263) ==8786==    by 0x5ECED05: std::basic_ostream<char,
> std::char_traits<char> >& std::operator<< <std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
> (ostream:510) ==8786==    by 0x4E6420E: DIMSE_dumpMessage(OFString&,
> T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*, unsigned char)
> (dimdump.cc:575) ==8786==    by 0x408C00: moveSCU(T_ASC_Association*, char
> const*) (movescu.cc:1573) ==8786==    by 0x409632:
> cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==    by
> 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x5ECECD3: std::basic_ostream<char, std::char_traits<char> >&
> std::operator<< <std::char_traits<char> >(std::basic_ostream<char,
> std::char_traits<char> >&, char const*) (ostream:507) ==8786==    by
> 0x4E64230: DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&, DIMSE_direction,
> DcmItem*, unsigned char) (dimdump.cc:575) ==8786==    by 0x408C00:
> moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Use of uninitialised value of size 8
> ==8786==    at 0x4C25812: __GI_strlen (mc_replace_strmem.c:284)
> ==8786==    by 0x5EB7770: std::char_traits<char>::length(char const*)
> (char_traits.h:263) ==8786==    by 0x5ECED05: std::basic_ostream<char,
> std::char_traits<char> >& std::operator<< <std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
> (ostream:510) ==8786==    by 0x4E64230: DIMSE_dumpMessage(OFString&,
> T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*, unsigned char)
> (dimdump.cc:575) ==8786==    by 0x408C00: moveSCU(T_ASC_Association*, char
> const*) (movescu.cc:1573) ==8786==    by 0x409632:
> cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==    by
> 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Use of uninitialised value of size 8
> ==8786==    at 0x4C25824: __GI_strlen (mc_replace_strmem.c:284)
> ==8786==    by 0x5EB7770: std::char_traits<char>::length(char const*)
> (char_traits.h:263) ==8786==    by 0x5ECED05: std::basic_ostream<char,
> std::char_traits<char> >& std::operator<< <std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
> (ostream:510) ==8786==    by 0x4E64230: DIMSE_dumpMessage(OFString&,
> T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*, unsigned char)
> (dimdump.cc:575) ==8786==    by 0x408C00: moveSCU(T_ASC_Association*, char
> const*) (movescu.cc:1573) ==8786==    by 0x409632:
> cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==    by
> 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25F13: memcpy (mc_replace_strmem.c:77)
> ==8786==    by 0x5E867D2: std::char_traits<char>::copy(char*, char const*,
> unsigned long) (char_traits.h:275) ==8786==    by 0x5ED97C1:
> std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*,
> long) (streambuf.tcc:89) ==8786==    by 0x5ED921E:
> std::basic_streambuf<char, std::char_traits<char> >::sputn(char const*,
> long) (streambuf:427) ==8786==    by 0x5ED319B: void
> std::__ostream_write<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
> (ostream_insert.h:48) ==8786==    by 0x5ECF067: std::basic_ostream<char,
> std::char_traits<char> >& std::__ostream_insert<char,
> std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*, long) (ostream_insert.h:99) ==8786==    by 0x5ECED1B:
> std::basic_ostream<char, std::char_traits<char> >& std::operator<<
> <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*) (ostream:510) ==8786==    by 0x4E64230:
> DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*,
> unsigned char) (dimdump.cc:575) ==8786==    by 0x408C00:
> moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25F28: memcpy (mc_replace_strmem.c:497)
> ==8786==    by 0x5E867D2: std::char_traits<char>::copy(char*, char const*,
> unsigned long) (char_traits.h:275) ==8786==    by 0x5ED97C1:
> std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*,
> long) (streambuf.tcc:89) ==8786==    by 0x5ED921E:
> std::basic_streambuf<char, std::char_traits<char> >::sputn(char const*,
> long) (streambuf:427) ==8786==    by 0x5ED319B: void
> std::__ostream_write<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
> (ostream_insert.h:48) ==8786==    by 0x5ECF067: std::basic_ostream<char,
> std::char_traits<char> >& std::__ostream_insert<char,
> std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*, long) (ostream_insert.h:99) ==8786==    by 0x5ECED1B:
> std::basic_ostream<char, std::char_traits<char> >& std::operator<<
> <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*) (ostream:510) ==8786==    by 0x4E64230:
> DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*,
> unsigned char) (dimdump.cc:575) ==8786==    by 0x408C00:
> moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25F75: memcpy (mc_replace_strmem.c:497)
> ==8786==    by 0x5E867D2: std::char_traits<char>::copy(char*, char const*,
> unsigned long) (char_traits.h:275) ==8786==    by 0x5ED97C1:
> std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*,
> long) (streambuf.tcc:89) ==8786==    by 0x5ED921E:
> std::basic_streambuf<char, std::char_traits<char> >::sputn(char const*,
> long) (streambuf:427) ==8786==    by 0x5ED319B: void
> std::__ostream_write<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
> (ostream_insert.h:48) ==8786==    by 0x5ECF067: std::basic_ostream<char,
> std::char_traits<char> >& std::__ostream_insert<char,
> std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*, long) (ostream_insert.h:99) ==8786==    by 0x5ECED1B:
> std::basic_ostream<char, std::char_traits<char> >& std::operator<<
> <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*) (ostream:510) ==8786==    by 0x4E64230:
> DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*,
> unsigned char) (dimdump.cc:575) ==8786==    by 0x408C00:
> moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Use of uninitialised value of size 8
> ==8786==    at 0x4C25F98: memcpy (mc_replace_strmem.c:497)
> ==8786==    by 0x5E867D2: std::char_traits<char>::copy(char*, char const*,
> unsigned long) (char_traits.h:275) ==8786==    by 0x5ED97C1:
> std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*,
> long) (streambuf.tcc:89) ==8786==    by 0x5ED921E:
> std::basic_streambuf<char, std::char_traits<char> >::sputn(char const*,
> long) (streambuf:427) ==8786==    by 0x5ED319B: void
> std::__ostream_write<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
> (ostream_insert.h:48) ==8786==    by 0x5ECF067: std::basic_ostream<char,
> std::char_traits<char> >& std::__ostream_insert<char,
> std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*, long) (ostream_insert.h:99) ==8786==    by 0x5ECED1B:
> std::basic_ostream<char, std::char_traits<char> >& std::operator<<
> <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*) (ostream:510) ==8786==    by 0x4E64230:
> DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*,
> unsigned char) (dimdump.cc:575) ==8786==    by 0x408C00:
> moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Use of uninitialised value of size 8
> ==8786==    at 0x4C25FF8: memcpy (mc_replace_strmem.c:497)
> ==8786==    by 0x5E867D2: std::char_traits<char>::copy(char*, char const*,
> unsigned long) (char_traits.h:275) ==8786==    by 0x5ED97C1:
> std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*,
> long) (streambuf.tcc:89) ==8786==    by 0x5ED921E:
> std::basic_streambuf<char, std::char_traits<char> >::sputn(char const*,
> long) (streambuf:427) ==8786==    by 0x5ED319B: void
> std::__ostream_write<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
> (ostream_insert.h:48) ==8786==    by 0x5ECF067: std::basic_ostream<char,
> std::char_traits<char> >& std::__ostream_insert<char,
> std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*, long) (ostream_insert.h:99) ==8786==    by 0x5ECED1B:
> std::basic_ostream<char, std::char_traits<char> >& std::operator<<
> <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*) (ostream:510) ==8786==    by 0x4E64230:
> DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*,
> unsigned char) (dimdump.cc:575) ==8786==    by 0x408C00:
> moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Use of uninitialised value of size 8
> ==8786==    at 0x4C2600A: memcpy (mc_replace_strmem.c:497)
> ==8786==    by 0x5E867D2: std::char_traits<char>::copy(char*, char const*,
> unsigned long) (char_traits.h:275) ==8786==    by 0x5ED97C1:
> std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*,
> long) (streambuf.tcc:89) ==8786==    by 0x5ED921E:
> std::basic_streambuf<char, std::char_traits<char> >::sputn(char const*,
> long) (streambuf:427) ==8786==    by 0x5ED319B: void
> std::__ostream_write<char, std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)
> (ostream_insert.h:48) ==8786==    by 0x5ECF067: std::basic_ostream<char,
> std::char_traits<char> >& std::__ostream_insert<char,
> std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*, long) (ostream_insert.h:99) ==8786==    by 0x5ECED1B:
> std::basic_ostream<char, std::char_traits<char> >& std::operator<<
> <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char>
> >&, char const*) (ostream:510) ==8786==    by 0x4E64230:
> DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*,
> unsigned char) (dimdump.cc:575) ==8786==    by 0x408C00:
> moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4E6424E: DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&,
> DIMSE_direction, DcmItem*, unsigned char) (dimdump.cc:576) ==8786==    by
> 0x408C00: moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573)
> ==8786==    by 0x409632: cmove(T_ASC_Association*, char const*)
> (movescu.cc:1628) ==8786==    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4E64257: DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&,
> DIMSE_direction, DcmItem*, unsigned char) (dimdump.cc:576) ==8786==    by
> 0x408C00: moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573)
> ==8786==    by 0x409632: cmove(T_ASC_Association*, char const*)
> (movescu.cc:1628) ==8786==    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4E64260: DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&,
> DIMSE_direction, DcmItem*, unsigned char) (dimdump.cc:576) ==8786==    by
> 0x408C00: moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573)
> ==8786==    by 0x409632: cmove(T_ASC_Association*, char const*)
> (movescu.cc:1628) ==8786==    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25819: __GI_strlen (mc_replace_strmem.c:284)
> ==8786==    by 0x5EB7770: std::char_traits<char>::length(char const*)
> (char_traits.h:263) ==8786==    by 0x5ECED05: std::basic_ostream<char,
> std::char_traits<char> >& std::operator<< <std::char_traits<char>
> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
> (ostream:510) ==8786==    by 0x4E6428B: DIMSE_dumpMessage(OFString&,
> T_DIMSE_C_MoveRQ&, DIMSE_direction, DcmItem*, unsigned char)
> (dimdump.cc:588) ==8786==    by 0x408C00: moveSCU(T_ASC_Association*, char
> const*) (movescu.cc:1573) ==8786==    by 0x409632:
> cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==    by
> 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25828: __GI_strlen (mc_replace_strmem.c:284)
> ==8786==    by 0x57D0C8C: OFString::OFString(char const*) (ofstring.cc:85)
> ==8786==    by 0x57D28A8: OFString::append(char const*) (ofstring.cc:195)
> ==8786==    by 0x4E642AF: DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&,
> DIMSE_direction, DcmItem*, unsigned char) (dimdump.cc:591) ==8786==    by
> 0x408C00: moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573)
> ==8786==    by 0x409632: cmove(T_ASC_Association*, char const*)
> (movescu.cc:1628) ==8786==    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x4C25897: strcpy (mc_replace_strmem.c:311)
> ==8786==    by 0x57D0CA5: OFString::OFString(char const*) (string3.h:105)
> ==8786==    by 0x57D28A8: OFString::append(char const*) (ofstring.cc:195)
> ==8786==    by 0x4E642AF: DIMSE_dumpMessage(OFString&, T_DIMSE_C_MoveRQ&,
> DIMSE_direction, DcmItem*, unsigned char) (dimdump.cc:591) ==8786==    by
> 0x408C00: moveSCU(T_ASC_Association*, char const*) (movescu.cc:1573)
> ==8786==    by 0x409632: cmove(T_ASC_Association*, char const*)
> (movescu.cc:1628) ==8786==    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> D: ===================== OUTGOING DIMSE MESSAGE ====================
> D: Message Type                  : C-MOVE RQ
> D: Presentation Context ID       : 3
> D: Message ID                    : 62896
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x57D1125: OFString::find(char, unsigned long) const
> (ofstring.cc:556) ==8786==    by 0x5588CF1:
> dcmtk::log4cplus::PatternLayout::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:901)
> ==8786==    by 0x5575236:
> dcmtk::log4cplus::ConsoleAppender::append(dcmtk::log4cplus::spi::InternalLo
> ggingEvent const&) (consap.cc:96) ==8786==    by 0x556E9DB:
> dcmtk::log4cplus::Appender::doAppend(dcmtk::log4cplus::spi::InternalLogging
> Event const&) (appender.cc:206) ==8786==    by 0x556E02C:
> dcmtk::log4cplus::helpers::AppenderAttachableImpl::appendLoopOnAppenders(dc
> mtk::log4cplus::spi::InternalLoggingEvent const&) const (apndimpl.cc:183)
> ==8786==    by 0x5583C83:
> dcmtk::log4cplus::spi::LoggerImpl::callAppenders(dcmtk::log4cplus::spi::Int
> ernalLoggingEvent const&) (logimpl.cc:62) ==8786==    by 0x5583AE3:
> dcmtk::log4cplus::spi::LoggerImpl::forcedLog(int, OFString const&, char
> const*, int, char const*) (logimpl.cc:160) ==8786==    by 0x408C6B:
> moveSCU(T_ASC_Association*, char const*) (oflog.h:84) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> ==8786== Conditional jump or move depends on uninitialised value(s)
> ==8786==    at 0x57D1125: OFString::find(char, unsigned long) const
> (ofstring.cc:556) ==8786==    by 0x5588AD7:
> dcmtk::log4cplus::PatternLayout::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:894)
> ==8786==    by 0x5588CB8:
> dcmtk::log4cplus::PatternLayout::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:911)
> ==8786==    by 0x5575236:
> dcmtk::log4cplus::ConsoleAppender::append(dcmtk::log4cplus::spi::InternalLo
> ggingEvent const&) (consap.cc:96) ==8786==    by 0x556E9DB:
> dcmtk::log4cplus::Appender::doAppend(dcmtk::log4cplus::spi::InternalLogging
> Event const&) (appender.cc:206) ==8786==    by 0x556E02C:
> dcmtk::log4cplus::helpers::AppenderAttachableImpl::appendLoopOnAppenders(dc
> mtk::log4cplus::spi::InternalLoggingEvent const&) const (apndimpl.cc:183)
> ==8786==    by 0x5583C83:
> dcmtk::log4cplus::spi::LoggerImpl::callAppenders(dcmtk::log4cplus::spi::Int
> ernalLoggingEvent const&) (logimpl.cc:62) ==8786==    by 0x5583AE3:
> dcmtk::log4cplus::spi::LoggerImpl::forcedLog(int, OFString const&, char
> const*, int, char const*) (logimpl.cc:160) ==8786==    by 0x408C6B:
> moveSCU(T_ASC_Association*, char const*) (oflog.h:84) ==8786==    by
> 0x409632: cmove(T_ASC_Association*, char const*) (movescu.cc:1628) ==8786==
>    by 0x40EADE: main (movescu.cc:820)
> ==8786==
> D: ==8786== Syscall param write(buf) points to uninitialised byte(s)
> ==8786==    at 0x64328D0: __write_nocancel (syscall-template.S:82)
> ==8786==    by 0x63DCEE2: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1276)
> ==8786==    by 0x63DCB59: new_do_write (fileops.c:530)
> ==8786==    by 0x63DCE4D: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1370)
> ==8786==    by 0x63D319C: fwrite (iofwrite.c:45)
> ==8786==    by 0x5ECC814: __gnu_cxx::stdio_sync_filebuf<char,
> std::char_traits<char> >::xsputn(char const*, long)
> (stdio_sync_filebuf.h:213) ==8786==    by 0x5ED921E:
> std::basic_streambuf<char, std::char_traits<char> >::sputn(char const*,
> long) (streambuf:427) ==8786==    by 0x5ECDF34: std::ostream::_M_write(char
> const*, long) (ostream:289) ==8786==    by 0x5ECDFBC:
> std::ostream::write(char const*, long) (ostream.tcc:196) ==8786==    by
> 0x5588642:
> dcmtk::log4cplus::pattern::PatternConverter::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:326)
> ==8786==    by 0x5588A94:
> dcmtk::log4cplus::PatternLayout::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:923)
> ==8786==    by 0x5588CB8:
> dcmtk::log4cplus::PatternLayout::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:911)
> ==8786==  Address 0x84cd6f0 is 32 bytes inside a block of size 36 alloc'd
> ==8786==    at 0x4C24A72: operator new[](unsigned long)
> (vg_replace_malloc.c:305) ==8786==    by 0x57D0417:
> OFString::reserve(unsigned long) (ofstring.cc:395) ==8786==    by
> 0x57D097A: OFString::assign(OFString const&, unsigned long, unsigned long)
> (ofstring.cc:219) ==8786==    by 0x55884B4:
> dcmtk::log4cplus::pattern::BasicPatternConverter::convert(dcmtk::log4cplus:
> :spi::InternalLoggingEvent const&) (patlay.cc:367) ==8786==    by 0x55885F1:
> dcmtk::log4cplus::pattern::PatternConverter::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:309)
> ==8786==    by 0x5588A94:
> dcmtk::log4cplus::PatternLayout::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:923)
> ==8786==    by 0x5588CB8:
> dcmtk::log4cplus::PatternLayout::formatAndAppend(std::ostream&,
> dcmtk::log4cplus::spi::InternalLoggingEvent const&) (patlay.cc:911)
> ==8786==    by 0x5575236:
> dcmtk::log4cplus::ConsoleAppender::append(dcmtk::log4cplus::spi::InternalLo
> ggingEvent const&) (consap.cc:96) ==8786==    by 0x556E9DB:
> dcmtk::log4cplus::Appender::doAppend(dcmtk::log4cplus::spi::InternalLogging
> Event const&) (appender.cc:206) ==8786==    by 0x556E02C:
> dcmtk::log4cplus::helpers::AppenderAttachableImpl::appendLoopOnAppenders(dc
> mtk::log4cplus::spi::InternalLoggingEvent const&) const (apndimpl.cc:183)
> ==8786==    by 0x5583C83:
> dcmtk::log4cplus::spi::LoggerImpl::callAppenders(dcmtk::log4cplus::spi::Int
> ernalLoggingEvent const&) (logimpl.cc:62) ==8786==    by 0x5583AE3:
> dcmtk::log4cplus::spi::LoggerImpl::forcedLog(int, OFString const&, char
> const*, int, char const*) (logimpl.cc:160) ==8786==
> Affected SOP Class UID        : ��
> D: Data Set                      : present
> D: Priority                      : medium
> D: Move Destination              :
> D: ======================= END DIMSE MESSAGE =======================
> I: Request Identifiers:
> I:
> I: # Dicom-Data-Set
> I: # Used TransferSyntax: Little Endian Explicit
> I: (0008,0052) CS [STUDY]                                  #   6, 1
> QueryRetrieveLevel I: (0020,000d) UI
> [1.2.840.113704.1.111.4808.1277955896.1] #  38, 1 StudyInstanceUID I:
> D: DcmDataset::read() TransferSyntax="Little Endian Implicit"
> I: Received Final Move Response
> D: ===================== INCOMING DIMSE MESSAGE ====================
> D: Message Type                  : C-MOVE RSP
> D: Message ID Being Responded To : 1
> D: Affected SOP Class UID        :
> MOVEStudyRootQueryRetrieveInformationModel D: Remaining Suboperations      
> : none
> D: Completed Suboperations       : none
> D: Failed Suboperations          : none
> D: Warning Suboperations         : none
> D: Data Set                      : none
> D: DIMSE Status                  : 0xc001: Error: Failed - Unable to process
> D: ======================= END DIMSE MESSAGE ======================= D:
> Status Detail:
> D:
> D: # Dicom-Data-Set
> D: # Used TransferSyntax: Little Endian Implicit
> D: (0000,0902) LO [A connection attempt failed because the connected party
> did not properly respond after a period of time, or established connection
> failed because connected host has failed to respond 134.214.142.101:11112]
> # 204, 1 ErrorComment D:
> I: Releasing Association
> ==8786==
> ==8786== HEAP SUMMARY:
> ==8786==     in use at exit: 691 bytes in 11 blocks
> ==8786==   total heap usage: 73,656 allocs, 73,645 frees, 2,408,098 bytes
> allocated ==8786==
> ==8786== LEAK SUMMARY:
> ==8786==    definitely lost: 0 bytes in 0 blocks
> ==8786==    indirectly lost: 0 bytes in 0 blocks
> ==8786==      possibly lost: 0 bytes in 0 blocks
> ==8786==    still reachable: 691 bytes in 11 blocks
> ==8786==         suppressed: 0 bytes in 0 blocks
> ==8786== Rerun with --leak-check=full to see details of leaked memory
> ==8786==
> ==8786== For counts of detected and suppressed errors, rerun with: -v
> ==8786== Use --track-origins=yes to see where uninitialised values come from
> ==8786== ERROR SUMMARY: 1059 errors from 26 contexts (suppressed: 4 from 4)



More information about the Debian-med-packaging mailing list