| Anonymous | Login | Signup for a new account | 11-10-2008 13:41 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 | ||||
| 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 | |||||||||
|
|
|||||||||
| Copyright © 2000 - 2006 Mantis Group |