Actions
Optimization #6786
openutil-rohash.c : make code cleaner to make CodeQL happier
Effort:
Difficulty:
Label:
C, Good First Issue, Hardening
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
Updated by Philippe Antoine 4 months ago
- Label C, Good First Issue, Hardening added
Actions