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

ftp: completely resets port_line #8379

Closed
wants to merge 1 commit into from

Conversation

catenacyber
Copy link
Contributor

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

Describe changes:

  • ftp: completely resets port_line

As approved on Gitlab

In the case port_line is first allocated and port_line_len is set,
Then a second request reaches memcap and frees port_line,
port_line_len should also be reset, because both will get used
by the response parsing.

Ticket: OISF#5701
@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Merging #8379 (c38d5de) into master (55c4834) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8379      +/-   ##
==========================================
+ Coverage   81.92%   81.94%   +0.02%     
==========================================
  Files         963      963              
  Lines      277674   277675       +1     
==========================================
+ Hits       227472   227535      +63     
+ Misses      50202    50140      -62     
Flag Coverage Δ
fuzzcorpus 64.13% <0.00%> (+0.03%) ⬆️
suricata-verify 59.64% <0.00%> (-0.04%) ⬇️
unittests 63.59% <0.00%> (-0.01%) ⬇️

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

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPW1_stats_chk
.app_layer.error.tls.parser 931 1145 122.99%
SURI_TLPR1_stats_chk
.app_layer.flow.http 3118951 3340797 107.11%
.app_layer.flow.tls 510462 623355 122.12%
.app_layer.flow.ssh 8937 11032 123.44%
.app_layer.flow.telnet 1624 2334 143.72%
TREX_GENERIC_stats_chk
.capture.kernel_drops 0 35134 0.01

Pipeline 11610

This was referenced Jan 17, 2023
@victorjulien
Copy link
Member

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

3 participants