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

Next/20230117/v6 #8387

Closed
wants to merge 16 commits into from
Closed

Conversation

victorjulien
Copy link
Member

Staging:

victorjulien and others added 16 commits January 17, 2023 11:25
Tested on Fedora 37 with clang 15.

app-layer.c:1055:27: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void AppLayerSetupCounters()
                          ^
                           void
app-layer.c:1176:29: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void AppLayerDeSetupCounters()
                            ^
                             void
2 errors generated.
Tested on Fedora 37 with clang 15.

datasets.c:852:9: error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable]
    int n = 0;
        ^
1 error generated.
Tested on Fedora 37 with clang 15.

util-strlcatu.c:45:8: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
size_t strlcat(dst, src, siz)
           ^
1 error generated.
After a gap in a file transaction, the file tracker is truncated. However
this did not clear any stored out of order chunks from memory or stop more
chunks to be stored, leading to accumulation of a large number of chunks.

This patches fixes this be clearing the stored chunks on trunc. It also
makes sure no more chunks are stored in the tracker after the trunc.

Bug: OISF#5781.
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
packet timestamp is not set when function returns error.
also use C positive modulo for microseconds
That is microseconds should be positive
@codecov
Copy link

codecov bot commented Jan 17, 2023

Codecov Report

Merging #8387 (39b626c) into master (55c4834) will increase coverage by 0.02%.
The diff coverage is 71.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8387      +/-   ##
==========================================
+ Coverage   81.92%   81.94%   +0.02%     
==========================================
  Files         963      963              
  Lines      277674   277683       +9     
==========================================
+ Hits       227472   227554      +82     
+ Misses      50202    50129      -73     
Flag Coverage Δ
fuzzcorpus 64.13% <70.17%> (+0.03%) ⬆️
suricata-verify 59.67% <70.17%> (+<0.01%) ⬆️
unittests 63.59% <36.84%> (+<0.01%) ⬆️

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

@victorjulien victorjulien mentioned this pull request Jan 17, 2023
@victorjulien
Copy link
Member Author

Replaced by #8389

@victorjulien victorjulien deleted the next/20230117/v6 branch January 31, 2023 18:37
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