Skip to content

system-info: Avoid overflow in physical memory total on 32-bit systems. - #788

Merged
ximion merged 1 commit into
ximion:mainfrom
apteryks:fix-physical-memory-total-overflow-on-32bit
Sep 2, 2026
Merged

system-info: Avoid overflow in physical memory total on 32-bit systems.#788
ximion merged 1 commit into
ximion:mainfrom
apteryks:fix-physical-memory-total-overflow-on-32bit

Conversation

@apteryks

@apteryks apteryks commented Sep 2, 2026

Copy link
Copy Markdown
  • src/as-system-info.c (as_get_physical_memory_total): Add a guint64
    cast to ensure the multiplication is done using 64-bit arithmetic.

* src/as-system-info.c (as_get_physical_memory_total): Add a guint64
cast to ensure the multiplication is done using 64-bit arithmetic.

Fixes: ximion#784
@apteryks
apteryks force-pushed the fix-physical-memory-total-overflow-on-32bit branch from 6ef386e to 5df6b14 Compare September 2, 2026 12:34
@ximion

ximion commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Thank you! :-)

@ximion
ximion merged commit ea43267 into ximion:main Sep 2, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants