Home GnuPG
Diffusion GnuPG 22caa5c2d4b6

Fix possible sign extension problem with newer compilers.
22caa5c2d4b6Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix possible sign extension problem with newer compilers.

* cipher/des.c (READ_64BIT_DATA): Cast to u32 before shifting by 24.
* cipher/blowfish.c (do_encrypt_block): Ditto.
(do_decrypt_block): Ditto.
* cipher/camellia.c (CAMELLIA_RR8): Ditto.
* cipher/cast5.c (do_encrypt_block): Ditto.
(do_decrypt_block): Ditto.
(do_cast_setkey): Ditto.
* cipher/twofish.c (INPACK): Ditto.
* util/iobuf.c (block_filter): Ditto.

For cipher/des.c

See commit 57af33d9e7c9b20b413b96882e670e75a67a5e65 for details.

  • Reported-by: Balint Reczey <balint@balintreczey.hu>
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Feb 1 2016, 6:06 PM
Parents
rGaa4a3aa3e7a0: g10: Fix iobuf API of filter function for alignment.
Branches
Unknown
Tags
Unknown

Event Timeline