Skip to content
Discussion options

You must be logged in to vote

prefixedData is a local variable in this function and does not stay allocated for the lifetime of the StreamSend. The API call returns PENDING, and you need to keep the buffer and all memory it points to allocated until you get a SEND_COMPLETE event for this. Currently, you return immediately and free the memory. So MsQuic ends doing a use-after-free and tries to send junk...

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vitoo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants