Files
suricata/src/util-coredump-config.h
Fupeng Zhao d618585c4f util/coredump: refactor parsing and respect zero core dump limit
- Replaced strtoul/strtoull with ByteExtractString* for safer and more consistent parsing.
- Allowed max-dump to be set to 0, and correctly apply a core dump limit of 0, maintaining behavior consistent with the commented default in suricata.yaml.in.
- Added and registered unit tests to validate the updated logic.

Ticket: #7212
2025-06-27 18:58:42 +02:00

35 lines
1.0 KiB
C

/* Copyright (C) 2007-2010 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
* Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* version 2 along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
/**
* \file
*
* \author Eileen Donlon <[email protected]>
*/
#ifndef SURICATA_COREDUMP_CONFIG_H
#define SURICATA_COREDUMP_CONFIG_H
#include "suricata-common.h"
int32_t CoredumpLoadConfig(void);
void CoredumpEnable(void);
void CoredumpConfigRegisterTests(void);
#endif /* SURICATA_COREDUMP_CONFIG_H */