Skip to content

Detect transform decompress 7846 v4#14825

Closed
catenacyber wants to merge 2 commits intoOISF:mainfrom
catenacyber:detect-transform-decompress-7846-v4
Closed

Detect transform decompress 7846 v4#14825
catenacyber wants to merge 2 commits intoOISF:mainfrom
catenacyber:detect-transform-decompress-7846-v4

Conversation

@catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7846

Describe changes:

  • adds gunzip transform
  • adds zlib_deflate transform (maybe we can find a better name)

SV_BRANCH=OISF/suricata-verify#2882

#14678 with code review into account

  • more doc for the max-size param
  • more code comment for the in-place transform
  • copy the input buffer rather than decompressed output buffer in case of in-place
  • and better code factorization
  • rustfmt

}

unsafe extern "C" fn gunzip_transform(
_det: *mut DetectEngineThreadCtx, buffer: *mut InspectionBuffer, ctx: *mut c_void,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For a follow-up cleanup : should we make ctx const instead of mut for Transform callback ?

Copy link
Member

Choose a reason for hiding this comment

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

I think so ya. In C we also have this as a plain void *, which should also be changed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@victorjulien victorjulien added this to the 9.0 milestone Feb 16, 2026
@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline = 29615

@victorjulien
Copy link
Member

Merged in #14827, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants