1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-09 21:28:51 +01:00
gnupg/kbx
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
kbxutil.c Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
keybox-blob.c kbx: Let keydb_search skip unwanted blobs. 2014-10-31 12:15:34 +01:00
keybox-defs.h kbx: Let keydb_search skip unwanted blobs. 2014-10-31 12:15:34 +01:00
keybox-dump.c Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
keybox-errors.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keybox-file.c gpg: Allow import of large keys. 2014-12-04 10:53:10 +01:00
keybox-init.c gpg: Take care to use pubring.kbx if it has ever been used. 2014-10-09 19:10:32 +02:00
keybox-openpgp.c Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
keybox-search-desc.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keybox-search.c Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
keybox-update.c Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
keybox-util.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
keybox.h kbx: Let keydb_search skip unwanted blobs. 2014-10-31 12:15:34 +01:00
Makefile.am Remove use of gnulib (part 1) 2014-11-11 10:13:10 +01:00
Manifest The keybox gets now compressed after 3 hours and ephemeral 2004-04-26 08:09:25 +00:00
mkerrors Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00