Skip to content

Feature MBEP#291 fix for 0 size requests#17

Merged
Lurkerpas merged 3 commits into
mainfrom
feature-mbep#291-fix-for-0-size-requests
May 26, 2026
Merged

Feature MBEP#291 fix for 0 size requests#17
Lurkerpas merged 3 commits into
mainfrom
feature-mbep#291-fix-for-0-size-requests

Conversation

@Lurkerpas
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a compilation/runtime issue in the Request constructor when PARAMETER_SIZE is 0 (e.g., ASN.1 types requiring 0 bytes for encoding), by guarding the memcpy with a constexpr check. Also adds project README content and the ESA-PL v2.3 LICENSE file.

Changes:

  • Guard memcpy in Request constructor with if constexpr (PARAMETER_SIZE > 0) to handle zero-size requests safely.
  • Expand README.md with project description and ESA funding context.
  • Add LICENSE file (ESA-PL Permissive v2.3).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Request.h Skip memcpy at compile-time when PARAMETER_SIZE == 0 to support zero-byte ASN.1 encodings and allow null data pointer.
README.md Adds project description and ESA project funding references.
LICENSE Adds full text of ESA-PL Permissive v2.3 license.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Lurkerpas Lurkerpas requested a review from Ficzer May 26, 2026 13:16
@Lurkerpas Lurkerpas merged commit 83e9aae into main May 26, 2026
1 check passed
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.

4 participants