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

refactor: Use operator== for equality tests of Node_format. #2545

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Jan 11, 2024

It has padding bytes, so memcmp isn't necessarily safe. It is definitely unsafe for fuzzed node formats.


This change is Reviewable

It has padding bytes, so memcmp isn't necessarily safe. It is definitely
unsafe for fuzzed node formats.
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (9592d59) 69.03% compared to head (af4cb31) 69.08%.

Files Patch % Lines
toxcore/network_test_util.cc 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2545      +/-   ##
==========================================
+ Coverage   69.03%   69.08%   +0.04%     
==========================================
  Files          96       96              
  Lines       28029    28042      +13     
==========================================
+ Hits        19350    19372      +22     
+ Misses       8679     8670       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iphydf iphydf merged commit af4cb31 into TokTok:master Jan 11, 2024
54 of 55 checks passed
@iphydf iphydf deleted the equals branch January 11, 2024 13:45
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants