add max component

This commit is contained in:
hugogogo
2026-05-26 15:14:28 +02:00
parent abc5754bba
commit 487191c516
4 changed files with 31 additions and 8 deletions

View File

@@ -13,7 +13,9 @@
*/
#define DOUBLE_PRECISION 0.00001
#define MAX_EXPONENT 1000
// maximum exponent supported to avoid excessive variable-length stack allocation (VLA),
// which can lead to stack overflows, segmentation faults, and potential denial-of-service (DoS)
#define MAX_EXPONENT 1024
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* MAIN.C