Re: Expanding the list of "Hardened Packages"

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

 



Richard W.M. Jones wrote:
> We also suffer this problem in reverse: passing a pointer between two
> C libraries is not possible in another non-C language.  eg.  Passing a
> libvirt virDomainPtr from (Perl) Sys::Virt to Sys::Guestfs.

Well, if the language supports sufficiently large integers and runs in 
process, you can abuse an integer as the handle.

"Sufficiently large" generally means sizeof(void*) bytes, i.e. 
sizeof(void*)<<3 bits, but you can get creative and get away with 
(sizeof(void*)<<3)-k-bit integers if your pointers are guaranteed to be 
aligned to 1<<k bits.

        Kevin Kofler

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux