gnupg/sm
Werner Koch 2183683bd6 Use inline functions to convert buffer data to scalars.
* common/host2net.h (buf16_to_ulong, buf16_to_uint): New.
(buf16_to_ushort, buf16_to_u16): New.
(buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New.
--

Commit 91b826a388 was not enough to
avoid all sign extension on shift problems.  Hanno Böck found a case
with an invalid read due to this problem.  To fix that once and for
all almost all uses of "<< 24" and "<< 8" are changed by this patch to
use an inline function from host2net.h.

Signed-off-by: Werner Koch <wk@gnupg.org>
2015-02-11 10:28:25 +01:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am Remove use of gnulib (part 1) 2014-11-11 10:13:10 +01:00
base64.c Fix faulty gcc warnings 2011-03-03 12:40:54 +01:00
call-agent.c Add option --no-autostart. 2014-11-28 09:44:19 +01:00
call-dirmngr.c Add option --no-autostart. 2014-11-28 09:44:19 +01:00
certchain.c Use a unique capitalization for "Note:". 2014-10-10 15:29:42 +02:00
certcheck.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
certdump.c gpg: Fix buffering problem in --list-config. 2015-01-28 20:12:21 +01:00
certlist.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
certreqgen-ui.c sm: Silence compiler warnings. 2014-09-18 15:17:44 +02:00
certreqgen.c sm: Silence compiler warnings. 2014-09-18 15:17:44 +02:00
decrypt.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
delete.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
encrypt.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
export.c gpgsm: New commands --export-secret-key-{p8,raw} 2014-06-03 18:57:33 +02:00
fingerprint.c Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
gpgsm-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgsm.c Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
gpgsm.h Add option --no-autostart. 2014-11-28 09:44:19 +01:00
import.c Fix regression in gpg's mail address parsing. 2011-04-25 23:59:25 +02:00
keydb.c kbx: Let keydb_search skip unwanted blobs. 2014-10-31 12:15:34 +01:00
keydb.h gpgsm: Add a way to save a found state. 2014-06-02 15:55:00 +02:00
keylist.c Add new option --with-secret. 2014-06-03 21:35:59 +02:00
minip12.c sm: Simplify fix ed8383c6 2015-01-26 17:56:52 +01:00
minip12.h gpgsm: New commands --export-secret-key-{p8,raw} 2014-06-03 18:57:33 +02:00
misc.c sm,g13: Init local vars to avoid compiler warnings. 2015-01-05 15:15:37 +01:00
qualified.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
server.c Remove support for the GPG_AGENT_INFO envvar. 2014-10-03 11:58:58 +02:00
sign.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
verify.c gpg,sm: Remove unnecessary duplicated checks 2015-01-23 15:30:03 +01:00