Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

sys/newlib/syscalls: _read_r fix potential buffer overflow #3110

Closed

Conversation

jnohlgard
Copy link
Member

(separated from #3101 because this is more than a simple warning fix)
Fixes a potential buffer overflow if more bytes are available than the count parameter.

Fixes a potential buffer overflow if more bytes are available than the count parameter.
@jnohlgard jnohlgard added the Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) label May 29, 2015
@jnohlgard jnohlgard added this to the Release 2015.06 milestone May 29, 2015
@jnohlgard jnohlgard mentioned this pull request May 29, 2015
@jnohlgard jnohlgard added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label May 29, 2015
@kaspar030
Copy link
Contributor

I had #3111 lying around for a while. Seems shorter, what do you think?

@jnohlgard
Copy link
Member Author

@kaspar030 your implementation is cleaner.

Closing in favour of #3111

@jnohlgard jnohlgard closed this May 29, 2015
@jnohlgard jnohlgard deleted the pr/newlib-read-buf-overflow-fix branch May 30, 2015 16:50
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants