Project

General

Profile

Actions

Bug #5186

open

tenant_id should have consistent data type across all structs

Added by Balachandran Sivakumar 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

tenant_id is defined as an int in some structures and as uint32_t in some structures. In some edge case values of tenant_id (For eg. 2^32), this can cause problems.

Defined as uint32_t in :
DetectEngineThreadCtx
DetectEngineTenantMapping
Flow
PcapPacketVars_

Defined as int in :
DetectEngineCtx
PcapFiles
param in DetectEngineGetByTenantId(...)
param in DetectEngineLoadTenantBlocking(...)

Actual:
Inconsistent data type for tenant_id across the sources

Expected:
Use a consistent data type for tenant_id across the sources

Actions #1

Updated by Balachandran Sivakumar 7 months ago

  • Assignee changed from OISF Dev to Balachandran Sivakumar
Actions

Also available in: Atom PDF