summaryrefslogtreecommitdiff
path: root/changes
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-03-03 14:52:15 -0500
committerNick Mathewson <nickm@torproject.org>2021-03-03 14:52:15 -0500
commit690c7be2537dc30be2d1f4978af7df77c46c2782 (patch)
tree1fd8e0ee410ae63932c3e515f16091dbbc6514c2 /changes
parent49ce31b2b6c0cfbcccb605ee58b612f73e2a228a (diff)
downloadtor-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/bug403155
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.