Skip to content

[zip] check return value of R__memcompress, adjust R__zipOld - #22988

Merged
linev merged 6 commits into
root-project:masterfrom
linev:after_memcompress
Aug 3, 2026
Merged

[zip] check return value of R__memcompress, adjust R__zipOld#22988
linev merged 6 commits into
root-project:masterfrom
linev:after_memcompress

Conversation

@linev

@linev linev commented Aug 3, 2026

Copy link
Copy Markdown
Member
  1. In R__zipOld allocate dynamically bits_internal_state struct, use std::unique_ptr to simplify cleanup
  2. Return 0 in case of error from R__memcompress.
  3. Check return value of R__memcompress in all places where it used
  4. In THttpServer remove special handling of external civetweb; now R__memcompress can be called also with smaller stack

linev added 6 commits August 3, 2026 09:30
Now use of external civetweb does not lead to failure in R__memcompress.
Therefore no need to disable compression with external civetweb
Also now is possible to move civetweb into builtins and use original cmake file for it
Use unique_ptr while code compiled with C++
Simplify release of the structure in case of failure
If content of http request failed to compress,
request marked as failed and such result will be returned as reply to user

@ferdymercury ferdymercury left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 18h 27m 36s ⏱️
 3 855 tests  3 854 ✅ 0 💤 1 ❌
79 425 runs  79 423 ✅ 1 💤 1 ❌

For more details on these failures, see this check.

Results for commit d2f6b0f.

@pcanal pcanal left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks.

@linev
linev merged commit cdc23eb into root-project:master Aug 3, 2026
35 of 38 checks passed
@linev
linev deleted the after_memcompress branch August 3, 2026 16:15
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