diff options
author | teor <teor2345@gmail.com> | 2015-01-11 19:33:04 +1100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-11 11:05:00 -0500 |
commit | b08cfc65a78527cc97f4d0aeff3217d5f1c93e08 (patch) | |
tree | c3230af788dec3640932ebb33090067ac9019ba0 /changes | |
parent | 2b9d48791d0b5245e3ccfd267150dfa34541c87c (diff) | |
download | tor-b08cfc65a78527cc97f4d0aeff3217d5f1c93e08.tar.gz tor-b08cfc65a78527cc97f4d0aeff3217d5f1c93e08.zip |
Don't crash on torrc Vi[rtualAddrNetworkIPv[4|6]] with no option value
Check for a missing option value in parse_virtual_addr_network
before asserting on the NULL in tor_addr_parse_mask_ports.
This avoids crashing on torrc lines like Vi[rtualAddrNetworkIPv[4|6]]
when no value follows the option.
Bugfix on 0.2.3 (de4cc126cbb5 on 24 November 2012), fixes #14142.
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug14142-parse-virtual-addr | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/changes/bug14142-parse-virtual-addr b/changes/bug14142-parse-virtual-addr new file mode 100644 index 0000000000..f78b7c7d81 --- /dev/null +++ b/changes/bug14142-parse-virtual-addr @@ -0,0 +1,7 @@ + o Minor bugfixes (client): + - Check for a missing option value in parse_virtual_addr_network + before asserting on the NULL in tor_addr_parse_mask_ports. + This avoids crashing on torrc lines like + Vi[rtualAddrNetworkIPv[4|6]] when no value follows the option. + Bugfix on 0.2.3 (de4cc126cbb5 on 24 November 2012), fixes #14142. + Patch by "teor". |