Home GnuPG
Diffusion GnuPG 8e5ad9aabdd5

tests/gpgscm: Dynamically allocate string buffer.
8e5ad9aabdd5Unpublished

Unpublished Commit ยท Learn More

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

Description

tests/gpgscm: Dynamically allocate string buffer.

* tests/gpgscm/scheme-config.h (strbuff{,_size}): Make buffer dynamic.
* tests/gpgscm/scheme.c (expand_strbuff): New function.
(putcharacter): Adapt length test.
(readstrexp): Expand buffer if necessary.
(scheme_init_custom_alloc): Initialize buffer.
(scheme_deinit): Free buffer.

Patch from Thomas Munro,
https://sourceforge.net/p/tinyscheme/patches/11/

  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Mar 31 2016, 1:33 PM
Parents
rG3b100da9ada9: tests/gpgscm: Make exception value available.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG8e5ad9aabdd5: tests/gpgscm: Dynamically allocate string buffer. (authored by Justus Winter <justus@g10code.com>).Jun 17 2016, 11:38 AM