Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
enjoy-your-stay
on Dec 25, 2011
|
parent
|
context
|
favorite
| on:
A Textbook Buffer Overflow: A Look at the FreeBSD ...
I hereby propose a change to memcpy to include a maxbytes parameter and an optional assert() if len exceeds it.
Might turn up a few interesting things.
subleq
on Dec 25, 2011
[–]
memcpy's third argument is the maximum (additionally, the exact) number of bytes it will copy.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Might turn up a few interesting things.