Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/compat/netbsd32

Module Name:    src
Committed By:   dsl
Date:           Sat Jan 26 09:07:01 UTC 2008

Modified Files:
        src/sys/compat/netbsd32: netbsd32_netbsd.c

Log Message:
Don't try to bound the return value for pread/pwrite/pathconf by casting
an 'ssize_t' or 'long' variable to 'register_t'.
If the sizes were different it would either overwrite stack or return
uninitialised stack.  On big-endian systems things would be worse!

To generate a diff of this commit:
cvs rdiff -r1.136 -r1.137 src/sys/compat/netbsd32/netbsd32_netbsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index