Thread (10 messages) flat view 10 messages, 6 authors, 2012-10-18

RE: [PATCH] SUNRPC: Prevent kernel stack corruption on long values of flush

From: David Laight <hidden>
Date: 2012-10-18 08:38:42
Also in: linux-nfs, lkml

...
long is always the same or bigger then a pointer
(A pointer must always fit in a long)
...
Linux may make that assumption, but it doesn't have
to be true. 64bit windows still has 32bit long.
C99 inttypes.h defines [u]intptr_t to be an integral type
that is large enough to hold a pointer to any data item.
(That in itself is problematic for implementations that
encode multiple characters into a machine word and need
to use 'fat' pointers in order to encode the offset.)

	David

��칻
�&�~�&���+-��ݶ��w��˛���m�b��g~ȧ���ܨ}���Ơz�&j:+v����n�r��6;靫3��\
nnX��f�z��2�ޙ���&�)ߡ�a����
�G���h��j:+v���w�٥
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help