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

fix: correct broken reflection compare #81

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

secDre4mer
Copy link
Contributor

reflect.DeepEqual compared a header pointer and a header, which always resulted in false.
Use == instead, which is type secure and faster.

reflect.DeepEqual compared a header pointer and a header, which
always resulted in false.
Use == instead, which is type secure and faster.
@LordNoteworthy
Copy link
Member

Very good catch @secDre4mer, I missed that when I switched the section Header from a normal type to a pointer.

@LordNoteworthy LordNoteworthy merged commit 43f1595 into saferwall:main Jun 21, 2023
@LordNoteworthy
Copy link
Member

Tag v1.4.4 have the fix.

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.

None yet

2 participants