projects
/
platform
/
upstream
/
gpg2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.2.11
[platform/upstream/gpg2.git]
/
common
/
iobuf.c
diff --git
a/common/iobuf.c
b/common/iobuf.c
index
5a9fd7c
..
8de46f4
100644
(file)
--- a/
common/iobuf.c
+++ b/
common/iobuf.c
@@
-856,9
+856,9
@@
block_filter (void *opaque, int control, iobuf_t chain, byte * buffer,
}
else if (c == 255)
{
}
else if (c == 255)
{
- a->size =
(size_t)iobuf_get
(chain) << 24;
- a->size |= iobuf_get (chain) << 16;
- a->size |= iobuf_get (chain) << 8;
+ a->size =
iobuf_get_noeof
(chain) << 24;
+ a->size |= iobuf_get
_noeof
(chain) << 16;
+ a->size |= iobuf_get
_noeof
(chain) << 8;
if ((c = iobuf_get (chain)) == -1)
{
log_error ("block_filter: invalid 4 byte length\n");
if ((c = iobuf_get (chain)) == -1)
{
log_error ("block_filter: invalid 4 byte length\n");