-
Notifications
You must be signed in to change notification settings - Fork 135
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
Undefined behavior sanitizer (ubsan) => Null pointer passed as argument 2, which is declared to never be null. #52
Comments
From test it is reachable. In the end it calls
|
From the code, data_producer_is always initializesed in function QuicSession::Initialize()
|
If the situation is never possible I would propose to reflect this into tests. Also remove dead code |
in fact I use the follow code for long time.
|
It is about calling memcpy(...) with null for src argument from WriteBytes(...) which is called from AppendStreamFrame(...) - In Process of packet serialization. It seems this is completely valid for stream frame - To have zero data. It is not good to call memcpy where this causes undefined behavior according to C++ standard:
In my memcpy implementation see __nonnull attribute:
The problematic code is here calling WriteBytes(...) which leads to calling memcpy(...) with nullptr for src argument:
The text was updated successfully, but these errors were encountered: