tor/changes/bug40315
Nick Mathewson 690c7be253 Fix parsing bug in linux get_total_system_memory().
Use find_str_at_start_of_line(), not strstr() here: we don't want
to match "MemTotal: " if it appears in the middle of a line.

Fixes #40315; bugfix on 0.2.5.4-alpha.
2021-03-03 14:52:15 -05:00

6 lines
283 B
Plaintext

o Minor bugfixes (Linux, relay):
- Fix a bug in determining total available system memory that would have
been triggered if the format of /proc/meminfo had ever changed
to include "MemTotal:" in the middle of a line. Fixes bug 40315;
bugfix on 0.2.5.4-alpha.