1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
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 91b826a38880fd8a989318585eb502582636ddd8 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
..
2015-02-03 09:12:45 +01:00
2007-07-04 19:49:40 +00:00
2013-11-18 14:09:47 +01:00
2014-12-08 17:12:23 +01:00
2011-02-04 12:57:53 +01:00
2007-07-04 19:49:40 +00:00
2014-11-11 10:13:10 +01:00
2013-01-30 18:51:56 +01:00
2014-11-11 15:14:31 +01:00
2014-11-11 15:14:31 +01:00
2014-11-11 15:14:31 +01:00
2014-11-11 10:13:10 +01:00
2014-04-17 21:09:10 +02:00
2014-05-02 11:19:25 +02:00
2014-01-29 17:45:05 +01:00
2013-07-31 16:25:41 +02:00
2015-02-03 09:12:45 +01:00
2011-02-04 12:57:53 +01:00
2014-04-17 21:09:10 +02:00

Stuff used by several modules of GnuPG.

These directories use it:

gpg
sm
agent

These directories don't use it:

kbx