Add sandboxing, interruptible I/O, and fix memory leaks#1
Closed
Add sandboxing, interruptible I/O, and fix memory leaks#1
Conversation
- Add QoreSandboxManager filesystem access checks before all file I/O operations in CairoSurface (SVG/PS create, PNG load/write) and CairoSvgReader (SVG file load) - Add qore_check_io_interrupt() calls before blocking I/O for interruptible I/O support - Fix memory leaks: add ReferenceHolder for QPP object parameters in setSourceSurface, setSource, createForSurface, and renderTo per QPP Object Parameter Handling pattern - Fix double-ref leak in CairoContext constructor (HARD_QORE_VALUE_OBJ_DATA already adds reference via getReferencedPrivateData) - Add private constructors to CairoSurface and CairoPattern for proper QPP lifecycle management Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
Superseded by new PR with additional doc build fixes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
QoreSandboxManagerHelperfilesystem access checks before all file I/O operations inCairoSurface(SVG/PS create, PNG load/write) andCairoSvgReader(SVG file load)qore_check_io_interrupt()calls before blocking I/O for interruptible I/O supportReferenceHolderfor QPP object parameters insetSourceSurface,setSource,createForSurface, andrenderToper QPP Object Parameter Handling patternCairoContextconstructor (HARD_QORE_VALUE_OBJ_DATAalready adds a reference viagetReferencedPrivateData())CairoSurfaceandCairoPatternfor proper QPP lifecycle managementTest plan
FcPatternDuplicate)🤖 Generated with Claude Code