Project

General

Profile

Actions

Optimization #6786

open

util-rohash.c : make code cleaner to make CodeQL happier

Added by Philippe Antoine 2 months ago.

Status:
New
Priority:
Low
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

ROHashTable *table = SCMalloc(sizeof(ROHashTable) + size);

We should make ROHashTable struct to match what we are allocating

So, that we get a direct access tot he fiels instead of hacky ROHashTableOffsets *os = (void *)table + sizeof(ROHashTable);

https://github.com/OISF/suricata/security/code-scanning/229 to https://github.com/OISF/suricata/security/code-scanning/233

No data to display

Actions

Also available in: Atom PDF