Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
marc_omorain
on Nov 8, 2013
|
parent
|
context
|
favorite
| on:
OpenSSH security advisory
It seems odd to see a commit in this day and age with no unit test. When you make a new newkey struct the clean-up callback should be NULL.
djmdjm
on Nov 8, 2013
|
next
[–]
We committed a regression test fix separately.
noselasd
on Nov 8, 2013
|
prev
[–]
That's the fun with C, it would be quite unlikely the malloc call in a unit test for this didn't happen to zero initialize the struct.
meowface
on Nov 8, 2013
|
parent
[–]
Yep. You may get different results based on the code path taken, the compiler, and (maybe?) the OS. Most of the time the value at that memory location will probably be a zero byte (or a zero word/dword), but sometimes it may not.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: