Skip to content

Commit

Permalink
Increase sice of hcusp array to fix ASAN error on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
rstub committed Jul 8, 2019
1 parent f8949a9 commit 24c29c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions external/patch/16_hcusp_asan.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/libswe/swehouse.c b/src/libswe/swehouse.c
index 627796a..551d26b 100644
--- a/src/libswe/swehouse.c
+++ b/src/libswe/swehouse.c
@@ -1810,7 +1810,7 @@ double CALL_CONV swe_house_pos(
//double demc;
double fh, ra0, tanfi, fac, dfac, tanx;
double x[3], xasc[3], raep, raaz, oblaz, xtemp; /* BK 21.02.2006 */
- double hcusp[36], ascmc[10];
+ double hcusp[37], ascmc[10];
double sine = sind(eps);
double cose = cosd(eps);
double c1, c2, d, hsize;
2 changes: 1 addition & 1 deletion src/libswe/swehouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ double CALL_CONV swe_house_pos(
//double demc;
double fh, ra0, tanfi, fac, dfac, tanx;
double x[3], xasc[3], raep, raaz, oblaz, xtemp; /* BK 21.02.2006 */
double hcusp[36], ascmc[10];
double hcusp[37], ascmc[10];
double sine = sind(eps);
double cose = cosd(eps);
double c1, c2, d, hsize;
Expand Down

0 comments on commit 24c29c9

Please sign in to comment.