This prevents VS2022 from mis-identify an uninitialized local pointer
variable.
CLA: trivial
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17567)
* significant BIGNUM chunk, so we adapt parameters to transfer
* input bytes accordingly.
*/
- switch (endianess) {
- case LITTLE:
+ if (endianess == LITTLE) {
s2 = s + len - 1;
inc2 = -1;
inc = 1;
- break;
- case BIG:
+ } else {
s2 = s;
inc2 = 1;
inc = -1;
s += len - 1;
- break;
}
/* Take note of the signedness of the input bytes*/
* to most significant BIGNUM limb, so we adapt parameters to
* transfer output bytes accordingly.
*/
- switch (endianess) {
- case LITTLE:
+ if (endianess == LITTLE) {
inc = 1;
- break;
- case BIG:
+ } else {
inc = -1;
to += tolen - 1; /* Move to the last byte, not beyond */
- break;
}
lasti = atop - 1;