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

Greetings,
I would like to report a bug in OpenSSL, present in versions 0.9.7e and
0.9.8. Specifically:

The BIO_eof(b) macro is defined as BIO_ctrl(b, BIO_CTRL_EOF, 0, NULL).

In the BIO-pair operation, the bio_ctrl() callback function, case
BIO_CTRL_EOF, *always* returns 1 if the fourth argument to the function
is null (as it always will be when called via BIO_eof()). Because the
BIO_eof() macro is general to all BIO types, it obviously cannot be
redefined. Therefore, obviously the bio_ctrl() callback for the BIO-pair
type needs to be modified to properly check EOF in the absence of a
nonnull fourth argument. Alternatively, at the very least, a prominent
warning notice could be placed in the documentation for both the
BIO_eof() function and the BIO_new_bio() function.

Now that I have discovered the exact cause of this problem, I can work
around it in my own code (simply by calling BIO_ctrl() directly and
passing the "other-half" BIO as the fourth argument). However, I still
believe the problem should be fixed, and have therefore brought it to
your attention.

Thank you for your time,
Christopher Head
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: GnuPT 2.7.2
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDRx7W6ZGQ8LKA8nwRArmbAJ40vW3ea8HRytktlTOuk7hikSgPsACdFV4i
/Qdlaul5GyV542iFi2q/WgE=
=grHy
-----END PGP SIGNATURE-----

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to