[BusyBox 0001352]: Patch for "awk.c" to solve minor bug introduced in rev 18645
bugs at busybox.net
bugs at busybox.net
Fri May 18 07:31:32 UTC 2007
The following issue has been CLOSED
======================================================================
http://busybox.net/bugs/view.php?id=1352
======================================================================
Reported By: rockeychu
Assigned To: BusyBox
======================================================================
Project: BusyBox
Issue ID: 1352
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: closed
Resolution: open
Fixed in Version:
======================================================================
Date Submitted: 05-17-2007 18:40 PDT
Last Modified: 05-18-2007 00:31 PDT
======================================================================
Summary: 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);
======================================================================
----------------------------------------------------------------------
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
======================================================================
More information about the busybox-cvs
mailing list