Home GnuPG

Avoid dereferencing pointer right after the end
d02014379201Unpublished

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
rC7a37ea4a4991: Add alignment tests for the cipher tests.
Branches
Unknown
Tags
Unknown

Event Timeline

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