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

Codeql 5307 v6 #7456

Closed
wants to merge 6 commits into from
Closed

Codeql 5307 v6 #7456

wants to merge 6 commits into from

Conversation

catenacyber
Copy link
Contributor

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/5307
https://redmine.openinfosecfoundation.org/issues/5308
https://redmine.openinfosecfoundation.org/issues/5310

Describe changes:

Updated lgtm.yml and codeql.yml so :
-Suricata will works on LGTM
-Codeql workflow for C will successfully run

Fixes 18 warnings found by CodeQL

Replaces #7364 taking comment into account : adding rs_to_hex_sep (and rustfmt rust/src/common.rs)

@catenacyber catenacyber requested review from victorjulien, jasonish and a team as code owners June 1, 2022 11:31
@catenacyber catenacyber mentioned this pull request Jun 1, 2022
Without dangerous snprintf pattern identified by CodeQL
even if this pattern is not a problem in those precise cases,
it may easily get copy pasted in a dangerous place, so better
get rid of it and make CodeQL happy
by comparing size_t to strlen result
Instead of uint16_t which would loop

Ticket: OISF#5310
So as not to recompile every C file inclusing rust.h
@catenacyber catenacyber force-pushed the codeql-5307-v6 branch 2 times, most recently from 8224caa to 0f34da6 Compare June 1, 2022 12:02
@codecov
Copy link

codecov bot commented Jun 1, 2022

Codecov Report

Merging #7456 (0f34da6) into master (43d28f2) will increase coverage by 0.00%.
The diff coverage is 44.73%.

@@           Coverage Diff           @@
##           master    #7456   +/-   ##
=======================================
  Coverage   75.88%   75.88%           
=======================================
  Files         657      657           
  Lines      189473   189437   -36     
=======================================
- Hits       143775   143748   -27     
+ Misses      45698    45689    -9     
Flag Coverage Δ
fuzzcorpus 60.51% <26.31%> (-0.09%) ⬇️
suricata-verify 52.03% <43.75%> (+0.05%) ⬆️
unittests 60.90% <12.50%> (+<0.01%) ⬆️

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

@victorjulien victorjulien mentioned this pull request Jun 2, 2022
@victorjulien
Copy link
Member

Merged the code commits in #7467, thanks!

@suricata-qa
Copy link

ERROR:

ERROR: QA failed on tlpw1_files_sha256.

ERROR: QA failed on tlpr1_alerts_cmp.

ERROR: QA failed on ips_afp_drop_chk.

Pipeline 7667

@catenacyber
Copy link
Contributor Author

Replaced by #7471

@catenacyber catenacyber closed this Jun 3, 2022
jufajardini added a commit to jufajardini/suricata that referenced this pull request Dec 13, 2024
Flowbits can make a rule such as a packet rule be treated as a stateful
rule, without actually changing the rule type.

Add a flag to allow report such cases via the engine analysis.

Task OISF#7456
jufajardini added a commit to jufajardini/suricata that referenced this pull request Dec 20, 2024
Flowbits can make a rule such as a packet rule be treated as a stateful
rule, without actually changing the rule type.

Add a flag to allow report such cases via the engine analysis.

Task OISF#7456
jufajardini added a commit to jufajardini/suricata that referenced this pull request Dec 20, 2024
Flowbits can make a rule such as a packet rule be treated as a stateful
rule, without actually changing the rule type.

Add a flag to allow report such cases via the engine analysis.

Task OISF#7456
jufajardini added a commit to jufajardini/suricata that referenced this pull request Dec 20, 2024
Flowbits can make a rule such as a packet rule be treated as a stateful
rule, without actually changing the rule type.

Add a flag to allow reporting such cases via engine analysis.

Task OISF#7456
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jan 10, 2025
Flowbits can make a rule such as a packet rule be treated as a stateful
rule, without actually changing the rule type.

Add a flag to allow reporting such cases via engine analysis.

Task OISF#7456
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jan 17, 2025
Flowbits can make a rule such as a packet rule be treated as a stateful
rule, without actually changing the rule type.

Add a flag to allow reporting such cases via engine analysis.

Task OISF#7456
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jan 17, 2025
Flowbits can make a rule such as a packet rule be treated as a stateful
rule, without actually changing the rule type.

Add a flag to allow reporting such cases via engine analysis.

Task OISF#7456
jufajardini added a commit to jufajardini/suricata that referenced this pull request Jan 31, 2025
Flowbits can make a rule such as a packet rule be treated as a stateful
rule, without actually changing the rule type.

Add a flag to allow reporting such cases via engine analysis.

Task OISF#7456
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