NetBSD-Bugs archive

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

PR/60812 CVS commit: src/sys/arch/mips/mips



The following reply was made to PR port-evbmips/60812; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/60812 CVS commit: src/sys/arch/mips/mips
Date: Thu, 1 Oct 2026 21:58:53 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Thu Oct  1 21:58:53 UTC 2026
 
 Modified Files:
 	src/sys/arch/mips/mips: mips_machdep.c
 
 Log Message:
 mips: Avoid shifting into sign bit by using unsigned type instead.
 
 Maybe this loop should do arithmetic in the other direction?  But at
 least left shifts on unsigned t-bit types are reduced mod 2^t and not
 undefined, so this is a simpler change to avoid UB.
 
 PR port-evbmips/60812: UBSan: Undefined Behavior in [sys-src] member
 access within misaligned address [..] for type '[..]' which requires
 128 byte alignment
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.310 -r1.311 src/sys/arch/mips/mips/mips_machdep.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