BerliOS :   · SourceAgency  · News  · DocsWell  · Developer  · DevCounter  ·  Partners ·  Contact Us ·  Legal Notice 
 BerliOS   BerliOS Developer
  Fostering Open Source Development
Fraunhofer FOKUS

BerliOS Developer Logo
Developer

Status:
NOT LOGGED IN
Login via SSL 
New User via SSL 

Search

Require All Words


Project: LinuxDC++
Project Summary 
Discussion Forums 
Submit Bugs 
Request Support 
Request Features 

Project Admin 

Software
Software Map 
New Releases 
Other Site Mirrors 
Code Snippet Library 

BerliOS Developer
Site Docs 
Project Help Wanted 
Top Projects 
XML/RSS 

Contact BerliOS 
About BerliOS 

BerliOS Developer Foundries
About Foundries 

E-Government 

Language:


     

Project: LinuxDC++ - Bugs


Summary |  Home Page |  Forums |  Bugs |  Features |  Patches |  Lists |  CVS |  Files |  FTP |  Screenshots |  Wiki |  Memberlist |  Admin | 

Submit A Bug | Open Bugs | Admin

[ Bug #13195 ] ver. 1.0.1 crash if receive an empty msg body in "$To:"

Date:
2008-Feb-24 16:01
Submitted By:
antanius
Assigned To:
stevensheehy
Category:
None
Priority:
5
Bug Group:
None
Resolution:
Fixed
Summary:
ver. 1.0.1 crash if receive an empty msg body in "$To:"

Original Submission:
the application crashes with the following error:

terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr

the problem happens when the client receives a "$To:" with
an empty message body.

I have fixed with:

File: NmdcHub.cpp
699c701,705
< string msg = param.substr(j + 2);
---
> j+=2;
> if(j >param.size())
> j=param.size();
>
> string msg = param.substr(j);

bye

Followups

Comment Date By
Will be fixed once we upgrade to 0.705 soon.2008-May-11 02:28stevensheehy
Submitted this to dc++.

Fix was committed:
http://dcplusplus.svn.sourceforge.net/viewvc/dcplusplus/dcplusplus/trunk/dcpp/NmdcHub.cpp?r1=1022&r2=1027&view=patch

Should probably fix the linuxdcpp also.

--RZ
2008-Mar-06 19:39razzloss
Please submit defects in the core to upstream DC++:

https://bugs.launchpad.net/dcplusplus/
2008-Feb-24 18:31stevensheehy
Dependent on Bug
summary

No Other Bugs are Dependent on This Bug

Bug Change History

Field Old Value Date By
close_date1970-Jan-01 01:002008-May-11 02:28stevensheehy
resolution_idNone2008-May-11 02:28stevensheehy
assigned_tonone2008-May-11 02:28stevensheehy
status_idOpen2008-May-11 02:28stevensheehy
summaryver. 1.0.1 crash if receive an empty msg body in "$To:" 2008-Feb-24 18:31stevensheehy

 

SourceForge is a trademark or registered trademark of VA Software Corporation in the United States and/or other countries. Linux is a registered trademark of Linus Torvalds. All other trademarks and copyrights on this page are property of their respective owners. For information about other site Content ownership and sitewide terms of service, please see the BerliOS Developer Terms of Service. For privacy policy information, please see the BerliOS Developer Privacy Policy. Content owned by Fraunhofer FOKUS is copyright 2000-2010 Fraunhofer FOKUS. All rights reserved.