change the default recursion limit in the code to 3000, the value which we currently have in the conf file. Also change print modifier for printing timeval

remotes/origin/master-1.1.x
Anoop Saldanha 15 years ago committed by Victor Julien
parent 5d9a453e0d
commit 59923316bc

@ -784,7 +784,6 @@ static int PayloadTestSig13(void)
SigMatchSignatures(&th_v, de_ctx, det_ctx, p);
if (PacketAlertCheck(p, de_ctx->sig_list->id) != 1) {
printf("signature didn't alert: ");
goto end;
}
@ -805,7 +804,7 @@ static int PayloadTestSig13(void)
tv_diff.tv_sec = tv_end.tv_sec - tv_start.tv_sec;
tv_diff.tv_usec = tv_end.tv_usec - tv_start.tv_usec;
printf("%"PRIuMAX".%06"PRIuMAX"\n", tv_diff.tv_sec, tv_diff.tv_usec);
printf("%ld.%06ld\n", tv_diff.tv_sec, tv_diff.tv_usec);
result = 1;

@ -54,7 +54,7 @@
#include "util-var-name.h"
#include "tm-modules.h"
#define DETECT_ENGINE_DEFAULT_INSPECTION_RECURSION_LIMIT 10000
#define DETECT_ENGINE_DEFAULT_INSPECTION_RECURSION_LIMIT 3000
static uint8_t DetectEngineCtxLoadConf(DetectEngineCtx *);

Loading…
Cancel
Save