• Roman Donchenko's avatar
    Fixed a bug in FLANN resulting in uninitialized accesses. · a9975b14
    Roman Donchenko authored
    This is fixed upstream in mariusmuja/flann@b615f26, but that fix
    would break binary compatibility, so I had to make a different one.
    
    Since the bug isn't quite obvious, here's an explanation. In the const
    version of any::cast, if policy is a small_any_policy, its get_value
    returns its input argument. So r becomes a pointer to obj, and the
    return value is a reference to a local variable, which is invalidated
    when the function exits.
    a9975b14
Name
Last commit
Last update
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
README.md Loading commit data...
index.rst Loading commit data...