-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Warnint util 4516 v2 #6792
Warnint util 4516 v2 #6792
Conversation
Ticket: 4516
Ticket: 4516
60e4bcc
to
1057399
Compare
Codecov Report
@@ Coverage Diff @@
## master #6792 +/- ##
=======================================
Coverage 77.19% 77.19%
=======================================
Files 615 615
Lines 185624 185617 -7
=======================================
- Hits 143285 143283 -2
+ Misses 42339 42334 -5
Flags with carried forward coverage won't be shown. Click here to find out more. |
// TODO rewrite all this to have app-layer events | ||
find_len = UINT16_MAX; | ||
} | ||
return BasicSearchNocase(src, len, find, (uint16_t)find_len); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should just update BasicSearchNocase
to accept uint32_t
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
len
is uint32_t
(haystack)
The needle is uint16_t
That looks reasonable...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, makes sense. Can you add a ticket for tracking the events setting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or should this mime code get rustified first ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For master that would be nice. Would we need a backport for this int handling though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not know.
It will be a big work I guess...
I am not sure it is worth it...
Information:
Pipeline 5699 |
replaced by #6820 |
Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/4516
Describe changes:
-Wimplicit-int-conversion
in all util filesModifies #6791