We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
20.18.0
any
src
I think we can add check for self-assigment in ctors/assigment operators
node/src/node_sockaddr-inl.h
Line 87 in 309924f
Expect to see this:
SocketAddress& SocketAddress::operator=(const SocketAddress& addr) { if (this != &addr) { memcpy(&address_, &addr.address_, addr.length()); } return *this; }
Always
Maybe not calling memcpy
Calling memcpy
I wanna hear your opinion about this =)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
20.18.0
Platform
Subsystem
src
What steps will reproduce the bug?
I think we can add check for self-assigment in ctors/assigment operators
node/src/node_sockaddr-inl.h
Line 87 in 309924f
Expect to see this:
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Maybe not calling memcpy
What do you see instead?
Calling memcpy
Additional information
I wanna hear your opinion about this =)
The text was updated successfully, but these errors were encountered: