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

detect/krb5: avoid integer underflow with krb5.ticket_encryption #12598

Closed

Conversation

catenacyber
Copy link
Contributor

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

Describe changes:

  • detect/krb5: avoid integer underflow with krb5.ticket_encryption

#12596 with clippy fix

Ticket: 7560

When passing INT32_MIN aka 0x80000000, we cannot compute -vali
as it does not fit into a i32
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.75%. Comparing base (c861685) to head (7c9b81f).
Report is 28 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12598      +/-   ##
==========================================
+ Coverage   80.73%   80.75%   +0.01%     
==========================================
  Files         931      931              
  Lines      259136   259143       +7     
==========================================
+ Hits       209215   209265      +50     
+ Misses      49921    49878      -43     
Flag Coverage Δ
fuzzcorpus 56.97% <100.00%> (+0.01%) ⬆️
livemode 19.38% <0.00%> (+<0.01%) ⬆️
pcap 44.16% <0.00%> (+0.03%) ⬆️
suricata-verify 63.43% <100.00%> (+0.01%) ⬆️
unittests 58.34% <87.50%> (+<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 24770

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.

Thanks for adding a test as well! :)
LGTM 🚀

@victorjulien victorjulien added this to the 8.0 milestone Feb 19, 2025
@victorjulien
Copy link
Member

Merged in #12625, 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