    def test_filename(self):
        with NamedTemporaryFile() as tmp:
            fp = memmap(tmp.name, dtype=self.dtype, mode='w+',
                        shape=self.shape)
            abspath = os.path.abspath(tmp.name)
            fp[:] = self.data[:]
            self.assertEqual(abspath, fp.filename)
            b = fp[:1]
            self.assertEqual(abspath, b.filename)
            del b
            del fp
The software attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.