Project

General

Profile

Actions

Bug #5186

closed

tenant_id should have consistent data type across all structs

Added by Balachandran Sivakumar over 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 6.0

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 over 2 years ago

  • Assignee changed from OISF Dev to Balachandran Sivakumar
Actions #2

Updated by Victor Julien over 1 year ago

  • Status changed from New to Resolved
  • Assignee changed from Balachandran Sivakumar to Jeff Lucovsky
  • Target version changed from TBD to 7.0.0
  • Label Needs backport to 6.0 added
Actions #3

Updated by Jeff Lucovsky over 1 year ago

This commit has already been backported to master-6.0.x: e25082c08493385850c3d4795d7eb92af07a1aa1

Actions #4

Updated by Jeff Lucovsky about 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF