-
Notifications
You must be signed in to change notification settings - Fork 685
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
Fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61820 #1234
Conversation
ac54506
to
5a0cb39
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #1234 +/- ##
==========================================
+ Coverage 82.70% 82.72% +0.01%
==========================================
Files 159 159
Lines 20329 20394 +65
Branches 7687 7707 +20
==========================================
+ Hits 16814 16870 +56
- Misses 2893 2902 +9
Partials 622 622
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
76fdad1
to
7589abc
Compare
@seladb, too big? |
Yes, it'll take me some time to review. Sorry for the delay. Is it possible to make the PR smaller? |
7589abc
to
27212a1
Compare
I have already put everything that can be considered unrelated into separate commits in the pr. Extracting it to 4 different prs doesn't make much sense. |
@sashashura if I understand correctly the main issue is in Add |
724834e
to
c4f0c66
Compare
c4f0c66
to
6b0183c
Compare
6b0183c
to
22b16d7
Compare
CMakeLists.txt
Outdated
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.
Why are the changes in this file needed?
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.
As I wrote previously The second commit is to make it build - it is not the first deprecated function in the project, but all of sudden it started giving warnings for the deprecated functions and they are treated as errors.
Since now I do not deprecate anything, the changes are not needed, I have reverted it.
The root cause was that
assign
was called with a pointer close the end of buffer, so accessingTLVRawData
to retrieverecordLen
as already reading past the end of the buffer.The main fix is in TLVData.h and NflogLayer.h, but I had to change the signature of
assign
and constructors.