Developer
Status:
|
NOT LOGGED IN  
|
BerliOS Developer Foundries
|


|
|
|
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:28 | stevensheehy | 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:39 | razzloss | Please submit defects in the core to upstream DC++:
https://bugs.launchpad.net/dcplusplus/ | 2008-Feb-24 18:31 | stevensheehy |
| |
|
|
No Other Bugs are Dependent on This Bug |
Bug Change History
| Field |
Old Value |
Date |
By |
| close_date | 1970-Jan-01 01:00 | 2008-May-11 02:28 | stevensheehy |
| resolution_id | None | 2008-May-11 02:28 | stevensheehy |
| assigned_to | none | 2008-May-11 02:28 | stevensheehy |
| status_id | Open | 2008-May-11 02:28 | stevensheehy |
| summary | ver. 1.0.1 crash if receive an empty msg body in "$To:"
| 2008-Feb-24 18:31 | stevensheehy |
|
|
|