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
0001352 [BusyBox] Other minor always 05-17-07 18:40 05-18-07 00:31
Reporter rockeychu View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0001352: Patch for "awk.c" to solve minor bug introduced in rev 18645
Description Test cmd:
#before patched
$ echo 123 |./busybox awk '/\06123/{print $1}'
awk: cmd. line:1: Unexpected end of string

#after patched
$ echo 123 |./busybox awk '/\06123/{print $1}'
123

Pacth as following:

Index: editors/awk.c
===================================================================
--- editors/awk.c (revision 18646)
+++ editors/awk.c (working copy)
@@ -895,7 +895,7 @@
                        while (*p != '/') {
                                if (*p == '\0' || *p == '\n')
                                        syntax_error(EMSG_UNEXP_EOS);
- *s++ = *p++;
+ *s = *p++;
                                if (*s++ == '\\') {
                                        pp = p;
                                        *(s-1) = bb_process_escape_sequence((const char **)&p);
Additional Information
Attached Files

- Relationships

- Notes
(0002367)
vda
05-18-07 00:31

Yes, this is my fault! :(
Applied in rev 18647. Thanks rockeychu!
 

- Issue History
Date Modified Username Field Change
05-17-07 18:40 rockeychu New Issue
05-17-07 18:40 rockeychu Status new => assigned
05-17-07 18:40 rockeychu Assigned To  => BusyBox
05-18-07 00:31 vda Status assigned => closed
05-18-07 00:31 vda Note Added: 0002367
05-18-07 00:31 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker