Skip to content

Bug #970 tcprewrite: --fixlen: do not use realloc#975

Merged
fklassen merged 1 commit into4.5.2from
Bg_#970_tcprewrite_fixlen_use_after_free
Aug 19, 2025
Merged

Bug #970 tcprewrite: --fixlen: do not use realloc#975
fklassen merged 1 commit into4.5.2from
Bg_#970_tcprewrite_fixlen_use_after_free

Conversation

@fklassen
Copy link
Copy Markdown
Member

No need to realloc if buffer is already proven to be big enough.

Standards checklist:

  • The PR title is descriptive.
  • The PR doesn't replicate another PR which is already open.
  • I have read the contribution guide and followed all the instructions.
  • The code follows the code style guide detailed in the wiki.
  • The code is mine or it's from somewhere with an MIT-compatible license.
  • The code is efficient, to the best of my ability, and does not waste computer resources.
  • The code is stable and I have tested it myself, to the best of my abilities.
  • If the code introduces new aliases, I provide a valid use case for all plugin users down below.

No need to realloc if buffer is already proven to be big enough.
@fklassen fklassen merged commit a93ae46 into 4.5.2 Aug 19, 2025
2 checks passed
@fklassen fklassen deleted the Bg_#970_tcprewrite_fixlen_use_after_free branch August 19, 2025 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant