libaacs | branch: master | npzacs <npz...@gmail.com> | Wed Nov  3 13:49:39 2010 
+0200| [652f37c4d0620cf6473045fa24b5c49d6bcb6776] | committer: npzacs 

Fixed pointer access

> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=652f37c4d0620cf6473045fa24b5c49d6bcb6776
---

 src/libaacs/crypto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libaacs/crypto.c b/src/libaacs/crypto.c
index 9a0c17b..b4bf035 100644
--- a/src/libaacs/crypto.c
+++ b/src/libaacs/crypto.c
@@ -197,7 +197,7 @@ void crypto_aacs_sign(const uint8_t *cert, const uint8_t 
*priv_key,
     /* Calculate the sha1 hash from the nonce and host key point and covert
      * the hash into an MPI.
      */
-    memcpy(&block, nonce, 20);
+    memcpy(&block[0], nonce, 20);
     memcpy(&block[20], point, 40);
     gcry_md_hash_buffer(GCRY_MD_SHA1, md, block, sizeof(block));
     gcry_mpi_scan(&mpi_md, GCRYMPI_FMT_USG, md, sizeof(md), NULL);

_______________________________________________
libaacs-devel mailing list
libaacs-devel@videolan.org
http://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to