Home GnuPG
Diffusion GPGME 119f27032b82

Fix one byte too short malloc.
119f27032b82Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix one byte too short malloc.

* src/engine-spawn.c (add_data): Fix malloc

Bummer. Why did I subtracted one from the size? Did I assume a
dynamically allocated structure with a string field which was not
going to be used? Very strange.

Not a real problem though because malloc will anyway round up the
allocation to at least the next word size.

Detected by Stack 0.3.

Details

Provenance
wernerAuthored on Mar 16 2015, 1:38 PM
Parents
rM428ea7696585: Switch to automake 1.14 and update build-aux files.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM119f27032b82: Fix one byte too short malloc. (authored by Werner Koch <wk@gnupg.org>).Mar 16 2015, 1:38 PM