mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +00:00
275d314d57
This does not cause a change in behavior (as evidenced by tests, at least on linux when built with gcc) but is more correct code, and less likely to be miscompiled. The condition (i < 256) in the following loop is always false since i is of type guchar, which is at most 255. guchar i; ... for (i = 1; i < 256; ++i) { ... } This patch changes i to a larger type gint. Also in the loop we have: gcry_md_write (md2, &i, 1); change it to use gcry_md_putc(). |
||
---|---|---|
.. | ||
tests | ||
egg-dh.c | ||
egg-dh.h | ||
egg-hex.c | ||
egg-hex.h | ||
egg-hkdf.c | ||
egg-hkdf.h | ||
egg-libgcrypt.c | ||
egg-libgcrypt.h | ||
egg-secure-memory.c | ||
egg-secure-memory.h | ||
egg-testing.c | ||
egg-testing.h | ||
Makefile.am |