Anonymous | Login | Signup for a new account | 11-10-2008 12:23 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003874 | [BusyBox] Other | crash | always | 06-26-08 19:53 | 06-27-08 14:31 | ||||
Reporter | rockeychu | View Status | public | ||||||
Assigned To | BusyBox | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | svn | ||||||
Summary | 0003874: Applet vi corrupted since Revision 22460 | ||||||||
Description |
Since Revision 22460, the applet vi worked incorrectly. Patch as following against revision 22525: Index: editors/vi.c =================================================================== --- editors/vi.c (revision 22525) +++ editors/vi.c (working copy) @@ -1883,8 +1883,7 @@ { if (size <= 0) return p; - end += size; // adjust the new END - if (end >= (text + text_size)) { + if ((end + size) >= (text + text_size)) { char *new_text; text_size += end - (text + text_size) + 10240; new_text = xrealloc(text, text_size); @@ -1895,6 +1894,7 @@ text = new_text; } memmove(p + size, p, end - p); + end += size; // adjust the new END memset(p, ' ', size); // clear new hole file_modified++; return p; |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Copyright © 2000 - 2006 Mantis Group |