Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util/thash: decrease memuse if array was allocated #11425

Closed

Conversation

catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7135

Describe changes:

  • util/thash: decrease memuse only if array was allocated

THashInitConfig may not allocate array and increase memuse.
Such a failure leads to THashShutdown which should not decrease
the memuse.

Ticket: 7135
@catenacyber catenacyber requested a review from victorjulien as a code owner July 4, 2024 11:59
@victorjulien victorjulien requested a review from inashivb July 4, 2024 12:02
@catenacyber
Copy link
Contributor Author

cc @inashivb commit f1b44ca #11402

Copy link
Member

@inashivb inashivb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Please note that this was a pre-existing issue just discovered due to assertion check added in f1b44ca
Thank you! :)

@catenacyber
Copy link
Contributor Author

LGTM 🚀

Please note that this was a pre-existing issue just discovered due to assertion check added in f1b44ca Thank you! :)

Indeed 👍

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.44%. Comparing base (a7af371) to head (e4c20d0).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #11425   +/-   ##
=======================================
  Coverage   82.44%   82.44%           
=======================================
  Files         938      938           
  Lines      248086   248086           
=======================================
+ Hits       204534   204535    +1     
+ Misses      43552    43551    -1     
Flag Coverage Δ
fuzzcorpus 60.10% <100.00%> (ø)
livemode 18.72% <100.00%> (-0.01%) ⬇️
pcap 43.72% <100.00%> (-0.07%) ⬇️
suricata-verify 61.43% <100.00%> (+0.02%) ⬆️
unittests 59.43% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 21371

@victorjulien
Copy link
Member

Merged in #11431, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants