#define MAX_SUBSTRINGS 30
int ret = 0, res = 0;
int ov[MAX_SUBSTRINGS];
- char key[64] = "";
- char content[1024] = "";
+ char key[REFERENCE_SYSTEM_NAME_MAX] = "";
+ char content[REFERENCE_CONTENT_NAME_MAX] = "";
ret = pcre_exec(parse_regex, parse_regex_study, rawstr, strlen(rawstr),
0, 0, ov, MAX_SUBSTRINGS);
-/* Copyright (C) 2007-2010 Open Information Security Foundation
+/* Copyright (C) 2007-2019 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
*/
static int SCRConfAddReference(char *rawstr, DetectEngineCtx *de_ctx)
{
- char system[64];
- char url[1024];
+ char system[REFERENCE_SYSTEM_NAME_MAX];
+ char url[REFERENCE_CONTENT_NAME_MAX];
SCRConfReference *ref_new = NULL;
SCRConfReference *ref_lookup = NULL;
#ifndef __UTIL_REFERENCE_CONFIG_H__
#define __UTIL_REFERENCE_CONFIG_H__
+#define REFERENCE_SYSTEM_NAME_MAX 64
+#define REFERENCE_CONTENT_NAME_MAX 1024
+
/**
* \brief Holds a reference from the file - reference.config.
*/