Skip to content

Conversation

mathieucarbou
Copy link
Member

No description provided.

if (!((String *)request->_tempObject)->length()) {
if (!data->length()) {
delete data;
request->_tempObject = nullptr;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if applicable here, but as a rule of thumb, those two lines should be swapped in case that tempObject is accessed in between the lines from another task and we risk use after free

@mathieucarbou mathieucarbou merged commit f80248b into main May 29, 2025
31 checks passed
@mathieucarbou mathieucarbou deleted the fix branch May 29, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants