fix(userspace/engine): replace invalid chars while JSON-encoding#3866
fix(userspace/engine): replace invalid chars while JSON-encoding#3866poiana merged 1 commit intofalcosecurity:masterfrom
Conversation
Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
|
This PR may bring feature or behavior changes in the Falco engine and may require the engine version to be bumped. Please double check userspace/engine/falco_engine_version.h file. See versioning for FALCO_ENGINE_VERSION. /hold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ekoops, irozzo-1A, leogr The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
False positive. |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area engine
What this PR does / why we need it:
This PR adds a second layer of sanitization in code encoding the output as JSON. The main sanitization issues should have been already addressed in libs (see falcosecurity/libs#2965): this second layer just ensures Falco doesn't crash if we missed something there.
I want to thank again https://github.com/naokato for discovering the issue and helping us with fixing it 🙏 .
Which issue(s) this PR fixes:
Related to falcosecurity/libs#2965
Fixes #
Special notes for your reviewer:
/milestone 0.44.0
Does this PR introduce a user-facing change?: