using off_t in talloc

Stefan (metze) Metzmacher metze at samba.org
Thu Jul 20 12:47:12 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

derrell at samba.org schrieb:
> It seems that others have decided that size_t is large enough for the
> foreseeable future.  On Linux, malloc() takes a size_t, so using size_t in
> talloc does seem reasonable.

we normally use size_t, but to not overflow,
when you calculate the total size of multple allocation,
so size_t will be enough to represent the size of one
allocation, but for the desired change we need to make sure
the total use allocation fits into size_t.

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEv3tQm70gjA5TCD8RAkW/AJ4gtfqdh72XEZMjZNuAV2Ddm3gybQCfRfCe
Lgjt5ApGYKb7dBPQG5wcyoQ=
=XMzt
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list