logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

cvs: pecl /hash hash_haval.c: msg#00169

php.pecl.cvs

Subject: cvs: pecl /hash hash_haval.c

mike Tue Nov 22 07:24:26 2005 EDT

Modified files:
/pecl/hash hash_haval.c
Log:
- avoid segvs

http://cvs.php.net/diff.php/pecl/hash/hash_haval.c?r1=1.2&r2=1.3&ty=u
Index: pecl/hash/hash_haval.c
diff -u pecl/hash/hash_haval.c:1.2 pecl/hash/hash_haval.c:1.3
--- pecl/hash/hash_haval.c:1.2 Mon Nov 21 10:09:57 2005
+++ pecl/hash/hash_haval.c Tue Nov 22 07:24:25 2005
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: hash_haval.c,v 1.2 2005/11/21 15:09:57 mike Exp $ */
+/* $Id: hash_haval.c,v 1.3 2005/11/22 12:24:25 mike Exp $ */

#include "php_hash.h"
#include "php_hash_haval.h"
@@ -321,7 +321,7 @@
*/
PHP_HASH_API void PHP_HAVAL128Final(unsigned char *digest, PHP_HAVAL_CTX *
context)
{
- unsigned char bits[8];
+ unsigned char bits[10];
unsigned int index, padLen;

/* Version, Passes, and Digest Length */
@@ -375,7 +375,7 @@
*/
PHP_HASH_API void PHP_HAVAL160Final(unsigned char *digest, PHP_HAVAL_CTX *
context)
{
- unsigned char bits[8];
+ unsigned char bits[10];
unsigned int index, padLen;

/* Version, Passes, and Digest Length */
@@ -429,7 +429,7 @@
*/
PHP_HASH_API void PHP_HAVAL192Final(unsigned char *digest, PHP_HAVAL_CTX *
context)
{
- unsigned char bits[8];
+ unsigned char bits[10];
unsigned int index, padLen;

/* Version, Passes, and Digest Length */
@@ -469,7 +469,7 @@
*/
PHP_HASH_API void PHP_HAVAL224Final(unsigned char *digest, PHP_HAVAL_CTX *
context)
{
- unsigned char bits[8];
+ unsigned char bits[10];
unsigned int index, padLen;

/* Version, Passes, and Digest Length */
@@ -510,7 +510,7 @@
*/
PHP_HASH_API void PHP_HAVAL256Final(unsigned char *digest, PHP_HAVAL_CTX *
context)
{
- unsigned char bits[8];
+ unsigned char bits[10];
unsigned int index, padLen;

/* Version, Passes, and Digest Length */






Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo