Language: Python
Label: vulnerable
CWE: CWE-125 \u2014 Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.

Code:
  def testSnapshotRecoveryFailsWithBadSplitNames(self, bad_split_filename):
    cluster, _ = self.setup()
    write_file(os.path.join(self.source_dir(), bad_split_filename))
    with self.assertRaisesRegex(ValueError, "can't parse"):
      cluster.restart_dispatcher()