BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001268 [uClibc++] Other major always 03-09-07 13:56 05-29-07 17:01
Reporter tommi View Status public  
Assigned To gkajmowi
Priority normal Resolution fixed  
Status resolved   Product Version 0.2.2
Summary 0001268: std::string::compare(size_type, size_type, const std::string&, size_type, size_type) does not work properly
Description Due to a wrong calculation of the length of the second substring the method returns a wrong value.
    std::string l = "Tommi Maekitalo";
    std::string s = "Mae";
    int c = l.compare(6, 3, s);
c should be 0, but is -1.
Additional Information Patch attached. The patch also adds some "else" just for aesthetic reasons.
Attached Files  string.diff [^] (1,062 bytes) 03-09-07 13:56

- Relationships

- Notes
(0002413)
gkajmowi
05-29-07 17:01

Fixed in SVN. I used the provided example code in the test suite itself.
 

- Issue History
Date Modified Username Field Change
03-09-07 13:56 tommi New Issue
03-09-07 13:56 tommi Status new => assigned
03-09-07 13:56 tommi Assigned To  => gkajmowi
03-09-07 13:56 tommi File Added: string.diff
05-29-07 17:01 gkajmowi Status assigned => resolved
05-29-07 17:01 gkajmowi Fixed in Version  => 0.2.2
05-29-07 17:01 gkajmowi Resolution open => fixed
05-29-07 17:01 gkajmowi Note Added: 0002413


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker