Project

General

Profile

Actions

Optimization #6786

open

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

Added by Philippe Antoine 9 months ago. Updated 3 months ago.

Status:
New
Priority:
Low
Assignee:
Target version:
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

Actions #1

Updated by Philippe Antoine 3 months ago

  • Label C, Good First Issue, Hardening added
Actions

Also available in: Atom PDF