Project

General

Profile

Actions

Bug #7475

closed
EL

Problem in HashTable remove function

Bug #7475: Problem in HashTable remove function

Added by Eric Leblond over 1 year ago. Updated 9 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

When the HashTableRemove function is called and when there is only one item in the bucket list, then the compare function is not called which could result in remove an entry without having the correct data.


Related issues 1 (0 open1 closed)

Is duplicate of Suricata - Bug #7828: util/hash: unexpected remove behaviorClosedCharles VigueActions

PA Updated by Philippe Antoine 9 months ago Actions #1

I do not see a commit for this, is this really in review ?

PA Updated by Philippe Antoine 9 months ago Actions #2

  • Affected Versions 8.0.0 added

I can see the buggy code, but maybe callers do not try to remove elements that are not in the hash table...

PA Updated by Philippe Antoine 9 months ago Actions #3

  • Tracker changed from Bug to Optimization
  • Affected Versions deleted (8.0.0)

PA Updated by Philippe Antoine 9 months ago Actions #4

  • Related to Bug #7828: util/hash: unexpected remove behavior added

PA Updated by Philippe Antoine 9 months ago Actions #5

  • Tracker changed from Optimization to Bug

PA Updated by Philippe Antoine 9 months ago Actions #6

  • Affected Versions 8.0.0 added

SB Updated by Shivani Bhardwaj 9 months ago Actions #7

  • Related to deleted (Bug #7828: util/hash: unexpected remove behavior)

SB Updated by Shivani Bhardwaj 9 months ago Actions #8

  • Is duplicate of Bug #7828: util/hash: unexpected remove behavior added

SB Updated by Shivani Bhardwaj 9 months ago Actions #9

  • Status changed from In Review to Rejected
  • Assignee deleted (Eric Leblond)
  • Target version deleted (TBD)

@Eric Leblond rejecting this ticket as duplicate since the other one has a PR ready and you confirmed it's the same issue afterall.

Actions

Also available in: PDF Atom