This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why is cld used?


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

H. J. Lu wrote:
> According to the i386 psABI, the direct flag should be set to zero
> before entry and upon exit from a function, why does glibc use
> "cld" in some functions where the direct flag won't be changed?

And what happens if some incorrect code (or some attacker) adds std and
leaves it this way before jumping into libc?  Nice way to open security
holes.  The clds are necessary.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/AN5y2ijCOnn/RHQRAr7zAJ9xSOODKpTIg6FjfZu0TPKrLoA1IACffcyc
T5ZXuefBPVXffFdJn7LvIJg=
=fY9U
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]