diff options
author | miod <> | 2015-07-16 02:18:58 +0000 |
---|---|---|
committer | miod <> | 2015-07-16 02:18:58 +0000 |
commit | 0f36cbbfbb33554482f86b90bbe673c9c4f917a3 (patch) | |
tree | 827008cb88ff12d6e0a6ae0c904cb4f8c93b2b3b /src/usr.bin/openssl/engine.c | |
parent | 207ad0ebbc1371cabc99dd9599f264886bba4d1a (diff) | |
download | openbsd-0f36cbbfbb33554482f86b90bbe673c9c4f917a3.tar.gz openbsd-0f36cbbfbb33554482f86b90bbe673c9c4f917a3.tar.bz2 openbsd-0f36cbbfbb33554482f86b90bbe673c9c4f917a3.zip |
Explicitely cast a char into unsigned long before shifting it left by 24, for
this would promote it to int for the shift, and then cast to unsigned long,
sign-extending it if sizeof(long) > sizeof(int).
This was not a problem because the computed value was explicitely range
checked afterwards, with an upper bound way smaller than 1U<<31, but it's
better practice to cast correctly.
ok beck@
Diffstat (limited to 'src/usr.bin/openssl/engine.c')
0 files changed, 0 insertions, 0 deletions