Skip to content

Don't use a va_list twice in vasprintf() - #166

Open
rosenrost wants to merge 1 commit into
freemint:masterfrom
rosenrost:fix/vasprintf-va-copy
Open

rosenrost wants to merge 1 commit into
freemint:masterfrom
rosenrost:fix/vasprintf-va-copy

Conversation

@rosenrost

Copy link
Copy Markdown
Contributor

vasprintf() passed the same va_list to vsnprintf() twice. After the first use its value is indeterminate.

vasprintf() passed the same va_list to vsnprintf() twice. After the
first use its value is indeterminate; it only worked by chance with the
m68k calling convention. Use a copy for the first pass.
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