NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/58775 CVS commit: src/sys/dev/acpi



The following reply was made to PR kern/58775; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/58775 CVS commit: src/sys/dev/acpi
Date: Sun, 27 Oct 2024 12:12:39 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Sun Oct 27 12:12:39 UTC 2024
 
 Modified Files:
 	src/sys/dev/acpi: apei_hest.c
 
 Log Message:
 apei(4): Paranoia: Clamp multiplication to SIZE_MAX too.
 
 This makes it clear that the result is guaranteed not to overflow
 size_t.  Previously it was only implied because on all NetBSD ports,
 SIZE_MAX > INT32_MAX, but let's make it clearer instead of relying on
 tacitly on that assumption.
 
 No functional change intended.
 
 Noticed while preparing for:
 
 PR kern/58775: apei(4) spamming console
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 src/sys/dev/acpi/apei_hest.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index