add protection agains big vla
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
*/
|
||||
|
||||
#define DOUBLE_PRECISION 0.00001
|
||||
// maximum exponent supported to avoid excessive variable-length stack allocation (VLA),
|
||||
// maximum size 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
|
||||
#define MAX_VLA_SIZE 1024
|
||||
|
||||
/** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* MAIN.C
|
||||
|
||||
Reference in New Issue
Block a user