Skip to content

Fix NULL pointer dereference in fflush(NULL) - #164

Open
rosenrost wants to merge 1 commit into
freemint:masterfrom
rosenrost:fix/null-pointer-dereference-in-fflush-null
Open

rosenrost wants to merge 1 commit into
freemint:masterfrom
rosenrost:fix/null-pointer-dereference-in-fflush-null

Conversation

@rosenrost

Copy link
Copy Markdown
Contributor

fflush(NULL) is defined to flush all output streams. The implementation unconditionally dereferenced the stream pointer and therefore crashed.

fflush(NULL) is defined to flush all output streams. The implementation
unconditionally dereferenced the stream pointer and therefore crashed.
As streams are unbuffered there is nothing to do in this case.
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