1
0
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:
deraadt
2026-04-01 17:47:46 +00:00
parent dc8703adcd
commit 2092d1748e

View File

@@ -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;