In file "ssl/ssl_ciph.c" static array ssl_cipher_methods declared as having
SSL_ENC_NUM_IDX elements.
SSL_ENC_NUM_IDX = 12, but only 11 elements initialized.

Although it may be not critical, it defenitely a bad practice.

Please find attached file: underinit_ssl_chip_array.patch
It add one more NULL to array initialization.

Patch created using this command:
diff -rupN openssl-1.0.0d/ openssl-1.0.0d-patched/ >
underinit_ssl_chip_array.patch

To apply pach use follwing command in current OpenSSL root dev. directory:

patch -p1 -l -u -b -i underinit_ssl_chip_array.patch


Patch created against 1.0.0d, but the same issue is in
1.0.1-stable-SNAP-20110321

Andrey.


In file "ssl/ssl_ciph.c" static array ssl_cipher_methods declared as having SSL_ENC_NUM_IDX elements.
SSL_ENC_NUM_IDX = 12, but only 11 elements initialized.

Although it may be not critical, it defenitely a bad practice.

Please find attached file: underinit_ssl_chip_array.patch
It add one more NULL to array initialization.

Patch created using this command:
diff -rupN openssl-1.0.0d/ openssl-1.0.0d-patched/ > underinit_ssl_chip_array.patch

To apply pach use follwing command in current OpenSSL root dev. directory:

patch -p1 -l -u -b -i underinit_ssl_chip_array.patch


Patch created against 1.0.0d, but the same issue is in 1.0.1-stable-SNAP-20110321

Andrey.

Attachment: underinit_ssl_chip_array.patch
Description: Binary data

Reply via email to