Skip to content

[image] fix TASImage::Append, unify clone of image data - #23787

Merged
linev merged 6 commits into
root-project:masterfrom
linev:image_append
Oct 23, 2026
Merged

linev merged 6 commits into
root-project:masterfrom
linev:image_append

Conversation

@linev

@linev linev commented Oct 21, 2026

Copy link
Copy Markdown
Member

Was breaking ownership

Fix related place in TRootSnifferFull used to generate images

Add testing to http and sniffer

@linev
linev requested a review from bellenot October 21, 2026 15:04
@linev linev self-assigned this Oct 21, 2026
@linev
linev requested a review from silverweed as a code owner October 21, 2026 15:04
Comment thread graf2d/asimage/src/TASImage.cxx Resolved
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Test Results

    24 files      24 suites   4d 2h 16m 54s ⏱️
 3 895 tests  3 894 ✅ 0 💤 1 ❌
83 365 runs  83 364 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 7720358.

♻️ This comment has been updated with latest results.

@linev
linev requested a review from silverweed October 22, 2026 08:29
@linev linev changed the title [image] fix TASImage::Append [image] fix TASImage::Append, unify clone of image data Oct 22, 2026
linev added 6 commits October 22, 2026 10:41
Provide CloneImageData method which clone all memebers of the TASImage
Include argb32 which can be already created because of painting.
Now CloneImageData() does the job - one only need to create new instance
and set new name
When image does not have data - just clone data from source image.

Fixing ownership problem when image pointer was copied and causing
segfault when TASImage was deleted. It was a reason for memory leak
in TRootSniffer when processing root.png request
TImage::Append() was used with "intentional" memory leak while second image took over ownership.
Use of Append not necessary at all - one can use original image.
Verify that code does not crash and returns meaningful image size
@linev linev closed this Oct 22, 2026
@linev linev reopened this Oct 22, 2026
@dpiparo

dpiparo commented Oct 23, 2026

Copy link
Copy Markdown
Member

the failure is spurious. Good to merge.

@linev
linev merged commit 287c370 into root-project:master Oct 23, 2026
49 of 75 checks passed
@linev
linev deleted the image_append branch October 23, 2026 05:16
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.

3 participants