On Mon, Nov 06, 2023 at 10:28:37AM +0100, Michal Privoznik wrote: > Problem with HW_PHYSMEM sysctl on 64-bit macOS is that it > returns a 32-bit signed value. Thus it overflows. Switching to > HW_MEMSIZE is recommended as it's of an uint_64 type [1]. > > 1: https://github.com/apple-oss-distributions/xnu/blob/xnu-10002.1.13/bsd/sys/sysctl.h > > Reported-by: Jaroslav Suchanek <jsuchane@xxxxxxxxxx> > Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> > --- > src/util/virhostmem.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| _______________________________________________ Devel mailing list -- devel@xxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx