Official MINIX sources - Automatically replicated from gerrit.minix3.org
copied into was the same size as the source string - it will keep on filling with zeroes forever. This was a signed/unsigned bug, fixed by making the kstrncpy argument ssize_t instead of size_t. This bug was triggered by Chris Young <teddga@earthlink.net>, by dazzling coincedence - changing OS_VERSION into something with one more character (exactly the same size as the buffer in the kinfo struct). Also noticed that the kstrncpy() call didn't null-terminate the strings if necessary, also fixed. |
||
|---|---|---|
| boot | ||
| commands | ||
| drivers | ||
| etc | ||
| include | ||
| kernel | ||
| lib | ||
| man | ||
| servers | ||
| test | ||
| tools | ||
| LICENSE | ||
| Makefile | ||