NetBSD-Bugs archive

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

PR/54053 CVS commit: src/sys/kern



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

From: "Robert Elz" <kre%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/54053 CVS commit: src/sys/kern
Date: Tue, 12 Mar 2019 00:25:44 +0000

 Module Name:	src
 Committed By:	kre
 Date:		Tue Mar 12 00:25:44 UTC 2019
 
 Modified Files:
 	src/sys/kern: subr_humanize.c
 
 Log Message:
 This had a similar problem to that reported in PR lib/54053
 for the userland (libc) version of humanize_number(),
 except in a much more limited, and less harmful, way ...
 
 If the value to be printed was > ~0/10 (eg ~0 itself) and
 the buffer given was big enough to hold it, "umax" would overflow,
 and the expected result was not produced (here at least the effect was
 simply to scale the result for huge values by one unnecessary step,
 rather than maximally scale all values usually generating 0E, but
 incorrect nonetheless.)
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/sys/kern/subr_humanize.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