mirror of
https://github.com/openbsd/src.git
synced 2026-04-16 02:04:12 +00:00
Use an unsigned sum value to provide deterministic overflow behaviour,
for input to the hash. from Renaud Allard
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: diffreg.c,v 1.95 2021/10/24 21:24:16 deraadt Exp $ */
|
||||
/* $OpenBSD: diffreg.c,v 1.96 2026/04/01 17:47:46 deraadt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) Caldera International Inc. 2001-2002.
|
||||
@@ -1177,7 +1177,7 @@ static int
|
||||
readhash(FILE *f, int flags)
|
||||
{
|
||||
int i, t, space;
|
||||
int sum;
|
||||
unsigned int sum;
|
||||
|
||||
sum = 1;
|
||||
space = 0;
|
||||
|
||||
Reference in New Issue
Block a user