Skip to content

Prevent malloc when newlength is 0#1270

Closed
LumioseSil wants to merge 1 commit intoOpenPrinting:masterfrom
LumioseSil:prevent-0
Closed

Prevent malloc when newlength is 0#1270
LumioseSil wants to merge 1 commit intoOpenPrinting:masterfrom
LumioseSil:prevent-0

Conversation

@LumioseSil
Copy link
Copy Markdown
Contributor

I do not know if this is even impossible but given how I think we should be aware, because options can be null. We should handle this case just in case.

I do not know if this is even impossible but given how I think we should be aware, because options can be null. We should handle this case just in case.
Copy link
Copy Markdown
Member

@michaelrsweet michaelrsweet left a comment

Choose a reason for hiding this comment

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

optlength can never be 0. We always have room for a nul character (optlength == 1).

@michaelrsweet michaelrsweet self-assigned this May 17, 2025
@michaelrsweet michaelrsweet added the wontfix This will not be worked on label May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants