Skip to content

Fix memory error in agents on Windows XP when receiving a WPK file#2486

Merged
vikman90 merged 2 commits into3.8from
3.8-fix-segfault-xp
Feb 5, 2019
Merged

Fix memory error in agents on Windows XP when receiving a WPK file#2486
vikman90 merged 2 commits into3.8from
3.8-fix-segfault-xp

Conversation

@vikman90
Copy link
Copy Markdown
Member

Fixes Components involved
#2467 Agent (WPK receiving), Framework (Agent class)

This PR applies the fix proposal described at #2467 (comment).

It also replaces strdup() with os_strdup() in the command request dispatching library, in order to prevent uncontrolled crashes due to low memory.

This will prevent the agent from crasing on low memory error.
strlen() seems to fail when reading 3-byte data blocks.
Fix: replace message "ok" with "ok ".
@vikman90 vikman90 added type/bug Something isn't working module/framework module/agent Issues related to the agent daemon platform/windows labels Jan 29, 2019
@vikman90 vikman90 assigned vikman90 and unassigned albertomn86 Feb 5, 2019
@vikman90 vikman90 merged commit d0ac1f1 into 3.8 Feb 5, 2019
@vikman90 vikman90 deleted the 3.8-fix-segfault-xp branch February 5, 2019 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module/agent Issues related to the agent daemon module/framework platform/windows type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants