diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-03-03 14:52:15 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-03-03 14:52:15 -0500 |
commit | 690c7be2537dc30be2d1f4978af7df77c46c2782 (patch) | |
tree | 1fd8e0ee410ae63932c3e515f16091dbbc6514c2 /changes | |
parent | 49ce31b2b6c0cfbcccb605ee58b612f73e2a228a (diff) | |
download | tor-690c7be2537dc30be2d1f4978af7df77c46c2782.tar.gz tor-690c7be2537dc30be2d1f4978af7df77c46c2782.zip |
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.
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug40315 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug40315 b/changes/bug40315 new file mode 100644 index 0000000000..9e9c740d96 --- /dev/null +++ b/changes/bug40315 @@ -0,0 +1,5 @@ + 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. |