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
0005594 [BusyBox] Other minor always 10-20-08 04:32 10-21-08 05:59
Reporter kotak View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0005594: atan2, builtin function of awk, causes Segmentation Fault.
Description The following command causes "Segmentation Fault" though should return "0.785398".

awk 'BEGIN {print atan2(1,1);}'

The following patch fixes this.

Index: editors/awk.c
===================================================================
--- editors/awk.c (revision 23739)
+++ editors/awk.c (working copy)
@@ -2025,7 +2025,7 @@

        case B_a2:
 #if ENABLE_FEATURE_AWK_MATH
- setvar_i(res, atan2(getvar_i(av[i]), getvar_i(av[1])));
+ setvar_i(res, atan2(getvar_i(av[0]), getvar_i(av[1])));
 #else
                syntax_error(EMSG_NO_MATH);
 #endif


Regards,
kotak
Additional Information
Attached Files

- Relationships

- Notes
(0013924)
vda
10-21-08 05:59

Fixed in rev 23755, thanks!
 

- Issue History
Date Modified Username Field Change
10-20-08 04:32 kotak New Issue
10-20-08 04:32 kotak Status new => assigned
10-20-08 04:32 kotak Assigned To  => BusyBox
10-20-08 04:34 kotak Issue Monitored: kotak
10-21-08 05:59 vda Status assigned => closed
10-21-08 05:59 vda Note Added: 0013924
10-21-08 05:59 vda Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker