[openssl-dev] [openssl.org #3631] Bug in the binary search in OBJ_bsearch_ex_ in obj_dat.c (1.0.1j)

2015-05-28 Thread Richard Levitte via RT
I'm rejecting this ticket on the base that it's aged and that it seems to be a misunderstanding of what arguments OBJ_bsearch_ex_ should be called with. Since you aren't calling it directly but have made changes in the rest of the OpenSSL source, maybe you should have a look at those changes

Re: [openssl-dev] [openssl.org #3631] Bug in the binary search in OBJ_bsearch_ex_ in obj_dat.c (1.0.1j)

2014-12-19 Thread Matthias Mucha via RT
No, i commented out the RSA encrypt routines and several other things that i can't/don't use. This resulted in a smaller array to search, which led me to this problem. I know it's no problem if you use OpenSSL the normal way. I don't call it from my code. My code only calls methods available

[openssl-dev] [openssl.org #3631] Bug in the binary search in OBJ_bsearch_ex_ in obj_dat.c (1.0.1j)

2014-12-17 Thread Richard Levitte via RT
Are you using OBJ_bsearch_ex_ directly from your code? It seems to me that you have misunderstood how it works. size is the size of one element of your array, num is the number of elements. The actual size of the array (in bytes) should then be size*num, and you need to make sure that it is. I

[openssl-dev] [openssl.org #3631] Bug in the binary search in OBJ_bsearch_ex_ in obj_dat.c (1.0.1j)

2014-12-12 Thread Matthias Mucha via RT
Hello, I strapped down OpenSSL 1.0.1j to only the PEM to RSA, BIO and RSA public decrypt functions. So a bug in the binary search in appeared: Current code: const void *OBJ_bsearch_ex_(const void *key, const void *base_, int num, int size,