libsecret/egg
Xi Wang 275d314d57 Fix incorrect loop condition in egg_hkdf_perform()
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().
2012-10-23 21:41:38 +02:00
..
tests Implement gsecret_service_get_secrets_for_paths() and friends 2011-11-12 08:08:12 +01:00
egg-dh.c Fix license header issues 2012-03-31 15:33:25 +02:00
egg-dh.h Fix license header issues 2012-03-31 15:33:25 +02:00
egg-hex.c Fix license header issues 2012-03-31 15:33:25 +02:00
egg-hex.h Fix license header issues 2012-03-31 15:33:25 +02:00
egg-hkdf.c Fix incorrect loop condition in egg_hkdf_perform() 2012-10-23 21:41:38 +02:00
egg-hkdf.h Fix license header issues 2012-03-31 15:33:25 +02:00
egg-libgcrypt.c Fix license header issues 2012-03-31 15:33:25 +02:00
egg-libgcrypt.h Fix license header issues 2012-03-31 15:33:25 +02:00
egg-secure-memory.c Fix license header issues 2012-03-31 15:33:25 +02:00
egg-secure-memory.h Fix license header issues 2012-03-31 15:33:25 +02:00
egg-testing.c Fix license header issues 2012-03-31 15:33:25 +02:00
egg-testing.h Fix license header issues 2012-03-31 15:33:25 +02:00
Makefile.am Implement gsecret_service_get_secrets_for_paths() and friends 2011-11-12 08:08:12 +01:00