mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Stop invoking undefined behaviour by using tor_free() on an unaligned pointer
... in get_interface_addresses_ioctl(). This pointer alignment issue exists on x86_64 macOS, but is unlikely to exist elsewhere. (i386 macOS only requires 4-byte alignment, and other OSs have 8-byte ints.) Fixes bug 24733; not in any released version of tor.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
o Minor bugfixes (code correctness):
|
||||
- Stop invoking undefined behaviour by using tor_free() on an unaligned
|
||||
pointer in get_interface_addresses_ioctl(). This pointer alignment issue
|
||||
exists on x86_64 macOS, but is unlikely to exist elsewhere.
|
||||
Fixes bug 24733; bugfix on 0.3.0.0-alpha-dev;
|
||||
not in any released version of tor.
|
||||
Reference in New Issue
Block a user