mirror of https://github.com/OISF/suricata
util/log-redis: guard SCCalloc result for redis stream format
When Redis output is configured in stream/xadd mode with a positive stream-maxlen, SCConfLogOpenRedis() allocates redis_setup.stream_format and immediately passes it to snprintf(). If SCCalloc() fails, snprintf() receives a NULL destination pointer and the process can crash during Redis output initialization. Handle this unrecoverable setup failure with FatalError(), matching the surrounding Redis initialization error handling. Ticket: 8588pull/15601/head
parent
39688a6252
commit
b2cd08bb91
Loading…
Reference in New Issue