1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00
Werner Koch 3627123dc8 Use inline functions to convert buffer data to scalars.
* include/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.
--

This fixes sign extension on shift problems.  Hanno Böck found a case
with an invalid read due to this problem.  To fix that almost all uses
of "<< 24" and "<< 8" are changed by this patch to use an inline
function from host2net.h.

(back ported from commit 2183683bd633818dd031b090b5530951de76f392)

Signed-off-by: Werner Koch <wk@gnupg.org>
2015-02-12 20:34:44 +01:00
..
2009-12-03 19:39:39 +00:00
2009-12-03 19:39:39 +00:00
2008-04-07 19:31:12 +00:00
2007-07-04 19:49:40 +00:00
2009-12-08 12:43:27 +00:00
2007-07-04 19:49:40 +00:00
2007-08-22 10:55:07 +00:00
2009-03-16 09:44:44 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2011-08-04 12:22:04 +02:00
2007-07-04 19:49:40 +00:00
2011-01-10 15:16:07 +01:00
2009-07-01 18:30:33 +00:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00
2012-01-31 15:14:20 +01:00
2013-07-03 13:29:47 +02:00
2013-07-03 13:29:47 +02:00
2011-08-04 14:42:31 +02:00
2007-08-23 08:40:11 +00:00
2014-06-03 08:53:31 +02:00
2007-07-04 19:49:40 +00:00
2014-06-03 08:53:31 +02:00

Stuff used by several modules of GnuPG.

These directories use it:

gpg
sm
agent

These directories don't use it:

kbx