mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Merge branch 'STABLE-BRANCH-2-2' into master
This commit is contained in:
commit
b38ca59bdb
7 changed files with 38 additions and 6 deletions
|
@ -3087,6 +3087,12 @@ parse_plaintext (IOBUF inp, int pkttype, unsigned long pktlen,
|
|||
else
|
||||
pt->name[i] = c;
|
||||
}
|
||||
/* Fill up NAME so that a check with valgrind won't complain about
|
||||
* reading from uninitalized memory. This case may be triggred by
|
||||
* corrupted packets. */
|
||||
for (; i < namelen; i++)
|
||||
pt->name[i] = 0;
|
||||
|
||||
pt->timestamp = read_32 (inp);
|
||||
if (pktlen)
|
||||
pktlen -= 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue