Repository navigation
Fix the signature of CRYPT_EX_dup - #2986
bernd-edlinger wants to merge 2 commits into
Conversation
3f735d4 to
ff8ff37
Compare
|
sigh. and if we don't fix the API, what's the risk? we really hate changing API's unless it's a serious bug being fixed. |
|
In theory the compiler can assume that *pptr in ui_dup_method_data |
|
As @levitte points out, it is an API change and therefore can't go in master now since that's going to be 1.1.1 So this will have to wait, likely until 2018. |
|
Not now, no. WE committed to our next release being 1.1.1 which is ABI compatible. |
|
Ok, I see, actually it is ok for the strict aliasing to cast a void ** |
|
Are you expecting all implementations to start casting |
|
aehm, maybe they read the documentation :-) |
|
I could write something like: |
ff8ff37 to
b94daeb
Compare
|
rebased, and waiting for 1.2.0 now... |
Reviewed-by: Rich Salz <[email protected]> MR: openssl#2986
By the way it is 2020 now. |
This fixes a strict aliasing issue in ui_dup_method_data. The parameter type of CRYPTO_EX_dup's from_d parameter is in fact void **, since it points to a pointer. This function is rarely used, therefore fix the param type although that may be considered an API breaking change.
b94daeb to
c563676
Compare
|
This is ok for master. Considering that the current documentation says that the passed argument should really be a |
|
When history section has been added, this should be approvable |
|
Just to be a bit extra explicit, I approve this for master only. |
|
24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually. |
This fixes a strict aliasing issue in ui_dup_method_data. The parameter type of CRYPTO_EX_dup's from_d parameter is in fact void **, since it points to a pointer. This function is rarely used, therefore fix the param type although that may be considered an API breaking change. Reviewed-by: Richard Levitte <[email protected]> (Merged from #2986)
|
Merged to master as 712e8de |
|
Of course, |
This fixes a strict aliasing issue in ui_dup_method_data.
And fix the error handling in CRYPTO_dup_ex_data.
I have split the error handling fix in an extra commit,
as the function signature can probably only be changed
in the master branch, while the error handling should
be fixed in 1.1.0 as well. I will need another PR for 1.0.2.
Checklist