Skip to content

Compiler automatically null terminates#194

Merged
douzzer merged 1 commit into
wolfSSL:mainfrom
anhu:nulltermoverflow
Jan 19, 2026
Merged

Compiler automatically null terminates#194
douzzer merged 1 commit into
wolfSSL:mainfrom
anhu:nulltermoverflow

Conversation

@anhu

@anhu anhu commented Jan 14, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes redundant explicit null terminators from string literal initializations in two key generation functions. The compiler automatically null-terminates string literals in C, making the explicit \0 characters unnecessary and potentially confusing.

Changes:

  • Removed explicit null terminators from .priv and .pub file extension strings in wolfCLU_genKey_Dilithium
  • Removed explicit null terminators from .priv and .pub file extension strings in wolfCLU_genKey_ML_DSA

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

Comment thread src/genkey/clu_genkey.c
Comment thread src/genkey/clu_genkey.c
@dgarske
dgarske requested review from JacobBarthelmeh and removed request for wolfSSL-Bot January 15, 2026 01:01
@douzzer
douzzer merged commit 1bdde37 into wolfSSL:main Jan 19, 2026
23 checks 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.

5 participants