Home GnuPG

Avoid dereferencing pointer right after the end
79502e2c1982Unpublished

Unpublished Commit · Learn More

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

Description

Avoid dereferencing pointer right after the end

* mpi/mpicoder.c (do_get_buffer): Check the length before derefing P.

Christian Grothoff found this bug using Valgrind.

Details

Provenance
wernerAuthored on Nov 5 2012, 7:01 PM
Parents
rC66adf76e6344: Make ancient test program useful again.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC79502e2c1982: Avoid dereferencing pointer right after the end (authored by Werner Koch <wk@gnupg.org>).Nov 5 2012, 7:01 PM